SQL (71.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (150.4ms) CREATE TABLE "events" ("id" serial primary key, "title" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (6.5ms) CREATE TABLE "polygallery_galleries" ("id" serial primary key, "title" character varying(255) DEFAULT 'gallery', "default_photo_id" integer, "galleryable_id" integer, "galleryable_type" character varying(255), "class_name" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (3.8ms) CREATE TABLE "polygallery_photos" ("id" serial primary key, "gallery_id" integer, "photo_file_name" character varying(255), "photo_content_type" character varying(255), "photo_file_size" integer, "photo_updated_at" timestamp, "title" character varying(255), "caption" text, "class_name" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150320165705')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140803170839') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 11:16:22 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (26.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (41.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.8ms) Rendered events/_simple_form.html.haml (94.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.5ms) Rendered events/_form.html.haml (5.9ms) Rendered home/index.html.haml within layouts/application (149.5ms) Completed 200 OK in 960ms (Views: 800.9ms | ActiveRecord: 36.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 11:16:23 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 11:16:23 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 11:16:23 -0600  (2.8ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (12.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (32.8ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 11:17:19 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (18.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.7ms) Rendered events/_simple_form.html.haml (55.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.0ms) Rendered events/_form.html.haml (4.1ms) Rendered home/index.html.haml within layouts/application (76.9ms) Completed 200 OK in 169ms (Views: 105.8ms | ActiveRecord: 6.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 11:17:19 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 11:17:19 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 11:17:19 -0600  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.9ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.5ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 11:17:31 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (37.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (57.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.9ms) Rendered events/_simple_form.html.haml (91.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.9ms) Rendered events/_form.html.haml (3.9ms) Rendered home/index.html.haml within layouts/application (111.4ms) Completed 200 OK in 201ms (Views: 137.4ms | ActiveRecord: 7.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 11:17:32 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 11:17:32 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 11:17:32 -0600  (0.9ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (2.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (2.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (186.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 11:18:13 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (35.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (55.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.7ms) Rendered events/_simple_form.html.haml (88.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.1ms) Rendered home/index.html.haml within layouts/application (108.7ms) Completed 200 OK in 195ms (Views: 134.8ms | ActiveRecord: 7.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 11:18:14 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 11:18:14 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 11:18:14 -0600  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (11.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 11:19:56 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (39.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (61.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.6ms) Rendered events/_simple_form.html.haml (110.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.7ms) Rendered home/index.html.haml within layouts/application (135.9ms) Completed 200 OK in 277ms (Views: 191.4ms | ActiveRecord: 7.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 11:19:56 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 11:19:56 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 11:19:56 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 11:19:57 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Chicken Shankle Flank", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (16.0ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:19:57.487570"], ["title", "Chicken Shankle Flank"], ["updated_at", "2015-03-20 17:19:57.487570"]] SQL (0.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 17:19:57.516184"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 17:19:57.516184"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:19:57.518122"], ["gallery_id", 1], ["updated_at", "2015-03-20 17:19:57.518122"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 17:19:57.519723"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 17:19:57.519723"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:19:57.521676"], ["gallery_id", 2], ["updated_at", "2015-03-20 17:19:57.521676"]]  (0.6ms) COMMIT Redirected to http://localhost:3003/events/1 Completed 302 Found in 44ms (ActiveRecord: 18.6ms) Started GET "/events/1" for 127.0.0.1 at 2015-03-20 11:19:57 -0600 Processing by EventsController#show as HTML Parameters: {"id"=>"1"} Event Load (0.5ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 1]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 2]] Rendered events/show.html.haml within layouts/application (7.9ms) Completed 200 OK in 35ms (Views: 10.9ms | ActiveRecord: 5.8ms) Started GET "/images/large/missing.png" for 127.0.0.1 at 2015-03-20 11:19:57 -0600 Started GET "/images/original/missing.png" for 127.0.0.1 at 2015-03-20 11:19:57 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 11:21:46 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (39.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (62.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.3ms) Rendered events/_simple_form.html.haml (112.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.4ms) Rendered events/_form.html.haml (5.8ms) Rendered home/index.html.haml within layouts/application (140.4ms) Completed 200 OK in 274ms (Views: 193.8ms | ActiveRecord: 7.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 11:21:46 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 11:21:46 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 11:21:46 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 11:21:46 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Landjaeger Chicken Doner", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (27.2ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:21:47.005246"], ["title", "Landjaeger Chicken Doner"], ["updated_at", "2015-03-20 17:21:47.005246"]] SQL (1.1ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 17:21:47.037297"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 17:21:47.037297"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:21:47.039752"], ["gallery_id", 1], ["updated_at", "2015-03-20 17:21:47.039752"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 17:21:47.042367"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 17:21:47.042367"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:21:47.043817"], ["gallery_id", 2], ["updated_at", "2015-03-20 17:21:47.043817"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/events/1 Completed 302 Found in 49ms (ActiveRecord: 30.6ms) Started GET "/events/1" for 127.0.0.1 at 2015-03-20 11:21:47 -0600 Processing by EventsController#show as HTML Parameters: {"id"=>"1"} Event Load (0.5ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 1]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 2]] Rendered events/show.html.haml within layouts/application (8.1ms) Completed 200 OK in 33ms (Views: 10.6ms | ActiveRecord: 6.1ms) Started GET "/assets/images/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 11:21:47 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 11:23:32 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (52.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.0ms) Rendered events/_simple_form.html.haml (85.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.9ms) Rendered events/_form.html.haml (3.9ms) Rendered home/index.html.haml within layouts/application (105.7ms) Completed 200 OK in 195ms (Views: 130.5ms | ActiveRecord: 7.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 11:23:32 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 11:23:32 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 11:23:32 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 11:23:33 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Pork Chop Sausage Shank", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (17.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:23:33.369036"], ["title", "Pork Chop Sausage Shank"], ["updated_at", "2015-03-20 17:23:33.369036"]] SQL (15.7ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 17:23:33.392049"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 17:23:33.392049"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:23:33.409333"], ["gallery_id", 1], ["updated_at", "2015-03-20 17:23:33.409333"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 17:23:33.411659"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 17:23:33.411659"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:23:33.412987"], ["gallery_id", 2], ["updated_at", "2015-03-20 17:23:33.412987"]]  (0.6ms) COMMIT Redirected to http://localhost:3003/events/1 Completed 302 Found in 53ms (ActiveRecord: 35.7ms) Started GET "/events/1" for 127.0.0.1 at 2015-03-20 11:23:33 -0600 Processing by EventsController#show as HTML Parameters: {"id"=>"1"} Event Load (0.5ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.5ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 1]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 2]] Rendered events/show.html.haml within layouts/application (8.0ms) Completed 200 OK in 38ms (Views: 11.7ms | ActiveRecord: 6.5ms)  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 11:25:13 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (34.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (56.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.1ms) Rendered events/_simple_form.html.haml (103.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (5.5ms) Rendered home/index.html.haml within layouts/application (129.1ms) Completed 200 OK in 266ms (Views: 180.3ms | ActiveRecord: 7.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 11:25:13 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 11:25:13 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 11:25:13 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 11:25:14 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Pork Loin Shankle Frankfurter", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (16.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:25:14.369811"], ["title", "Pork Loin Shankle Frankfurter"], ["updated_at", "2015-03-20 17:25:14.369811"]] SQL (14.9ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 17:25:14.392041"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 17:25:14.392041"]] SQL (0.7ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:25:14.408456"], ["gallery_id", 1], ["updated_at", "2015-03-20 17:25:14.408456"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 17:25:14.410697"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 17:25:14.410697"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:25:14.412073"], ["gallery_id", 2], ["updated_at", "2015-03-20 17:25:14.412073"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/events/1 Completed 302 Found in 51ms (ActiveRecord: 33.5ms) Started GET "/events/1" for 127.0.0.1 at 2015-03-20 11:25:14 -0600 Processing by EventsController#show as HTML Parameters: {"id"=>"1"} Event Load (0.6ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.5ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 1]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 2]] Rendered events/show.html.haml within layouts/application (8.0ms) Completed 200 OK in 35ms (Views: 11.8ms | ActiveRecord: 6.4ms)  (0.5ms) SELECT COUNT(*) FROM "events"  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 11:30:22 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (35.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (56.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.4ms) Rendered events/_simple_form.html.haml (91.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.8ms) Rendered home/index.html.haml within layouts/application (113.5ms) Completed 200 OK in 205ms (Views: 137.8ms | ActiveRecord: 7.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 11:30:22 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 11:30:22 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 11:30:22 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (42.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 11:30:38 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (3.4ms) Rendered events/_simple_form.html.haml (11.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (48.1ms) Completed 200 OK in 58ms (Views: 49.6ms | ActiveRecord: 2.9ms) Started POST "/events" for 127.0.0.1 at 2015-03-20 11:30:38 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Biltong Cow Pork Loin", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (15.8ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:30:38.822099"], ["title", "Biltong Cow Pork Loin"], ["updated_at", "2015-03-20 17:30:38.822099"]] SQL (14.7ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 17:30:38.842745"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 17:30:38.842745"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:30:38.858947"], ["gallery_id", 1], ["updated_at", "2015-03-20 17:30:38.858947"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 17:30:38.860799"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 17:30:38.860799"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:30:38.861974"], ["gallery_id", 2], ["updated_at", "2015-03-20 17:30:38.861974"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/events/1 Completed 302 Found in 54ms (ActiveRecord: 35.9ms) Started GET "/events/1" for 127.0.0.1 at 2015-03-20 11:30:38 -0600 Processing by EventsController#show as HTML Parameters: {"id"=>"1"} Event Load (0.5ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.5ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 1]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 2]] Rendered events/show.html.haml within layouts/application (8.7ms) Completed 200 OK in 35ms (Views: 12.5ms | ActiveRecord: 4.8ms)  (0.5ms) SELECT COUNT(*) FROM "events"  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (38.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 11:32:17 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (48.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.2ms) Rendered events/_simple_form.html.haml (105.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (5.0ms) Rendered home/index.html.haml within layouts/application (132.8ms) Completed 500 Internal Server Error in 251ms LoadError - cannot load such file -- sass (in /Users/smit1625/.rvm/gems/ruby-2.1.0/gems/simple_form_fileinput-0.0.6/vendor/assets/stylesheets/simple_form_fileinput/enhancements.css.scss): activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' tilt (1.4.1) lib/tilt/template.rb:144:in `require_template_library' sprockets (2.12.2) lib/sprockets/sass_template.rb:20:in `initialize_engine' tilt (1.4.1) lib/tilt/template.rb:56:in `initialize' sprockets (2.12.2) lib/sprockets/context.rb:196:in `block in evaluate' sprockets (2.12.2) lib/sprockets/context.rb:194:in `evaluate' sprockets (2.12.2) lib/sprockets/processed_asset.rb:12:in `initialize' sprockets (2.12.2) lib/sprockets/base.rb:374:in `block in build_asset' sprockets (2.12.2) lib/sprockets/base.rb:395:in `circular_call_protection' sprockets (2.12.2) lib/sprockets/base.rb:373:in `build_asset' sprockets (2.12.2) lib/sprockets/index.rb:94:in `block in build_asset' sprockets (2.12.2) lib/sprockets/caching.rb:58:in `cache_asset' sprockets (2.12.2) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.2) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.2) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.2) lib/sprockets/processed_asset.rb:111:in `block in resolve_dependencies' sprockets (2.12.2) lib/sprockets/processed_asset.rb:105:in `resolve_dependencies' sprockets (2.12.2) lib/sprockets/processed_asset.rb:97:in `build_required_assets' sprockets (2.12.2) lib/sprockets/processed_asset.rb:16:in `initialize' sprockets (2.12.2) lib/sprockets/base.rb:374:in `block in build_asset' sprockets (2.12.2) lib/sprockets/base.rb:395:in `circular_call_protection' sprockets (2.12.2) lib/sprockets/base.rb:373:in `build_asset' sprockets (2.12.2) lib/sprockets/index.rb:94:in `block in build_asset' sprockets (2.12.2) lib/sprockets/caching.rb:58:in `cache_asset' sprockets (2.12.2) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.2) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.2) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.2) lib/sprockets/bundled_asset.rb:37:in `init_with' sprockets (2.12.2) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.2) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.2) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.2) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.2) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.2) lib/sprockets/environment.rb:75:in `find_asset' sprockets (2.12.2) lib/sprockets/base.rb:295:in `[]' sprockets-rails (2.2.0) lib/sprockets/rails/helper.rb:123:in `asset_digest_path' sprockets-rails (2.2.0) lib/sprockets/rails/helper.rb:76:in `compute_asset_path' actionview (4.1.4) lib/action_view/helpers/asset_url_helper.rb:132:in `asset_path' sprockets-rails (2.2.0) lib/sprockets/rails/helper.rb:91:in `asset_path' actionview (4.1.4) lib/action_view/helpers/asset_url_helper.rb:256:in `stylesheet_path' actionview (4.1.4) lib/action_view/helpers/asset_tag_helper.rb:100:in `block in stylesheet_link_tag' actionview (4.1.4) lib/action_view/helpers/asset_tag_helper.rb:96:in `stylesheet_link_tag' sprockets-rails (2.2.0) lib/sprockets/rails/helper.rb:170:in `stylesheet_link_tag' app/views/layouts/application.html.haml:9:in `_app_views_layouts_application_html_haml___93919631742078199_70093462150400' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:67:in `render_with_layout' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.4) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.4) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.4) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.4) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.4) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70093420957220/variables" for 127.0.0.1 at 2015-03-20 11:32:17 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (12.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 11:32:33 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (3.2ms) Rendered events/_simple_form.html.haml (11.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.2ms) Rendered home/index.html.haml within layouts/application (13.4ms) Completed 500 Internal Server Error in 34ms LoadError - cannot load such file -- sass (in /Users/smit1625/.rvm/gems/ruby-2.1.0/gems/simple_form_fileinput-0.0.6/vendor/assets/stylesheets/simple_form_fileinput/enhancements.css.scss): activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' tilt (1.4.1) lib/tilt/template.rb:144:in `require_template_library' sprockets (2.12.2) lib/sprockets/sass_template.rb:20:in `initialize_engine' tilt (1.4.1) lib/tilt/template.rb:56:in `initialize' sprockets (2.12.2) lib/sprockets/context.rb:196:in `block in evaluate' sprockets (2.12.2) lib/sprockets/context.rb:194:in `evaluate' sprockets (2.12.2) lib/sprockets/processed_asset.rb:12:in `initialize' sprockets (2.12.2) lib/sprockets/base.rb:374:in `block in build_asset' sprockets (2.12.2) lib/sprockets/base.rb:395:in `circular_call_protection' sprockets (2.12.2) lib/sprockets/base.rb:373:in `build_asset' sprockets (2.12.2) lib/sprockets/index.rb:94:in `block in build_asset' sprockets (2.12.2) lib/sprockets/caching.rb:58:in `cache_asset' sprockets (2.12.2) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.2) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.2) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.2) lib/sprockets/processed_asset.rb:111:in `block in resolve_dependencies' sprockets (2.12.2) lib/sprockets/processed_asset.rb:105:in `resolve_dependencies' sprockets (2.12.2) lib/sprockets/processed_asset.rb:97:in `build_required_assets' sprockets (2.12.2) lib/sprockets/processed_asset.rb:16:in `initialize' sprockets (2.12.2) lib/sprockets/base.rb:374:in `block in build_asset' sprockets (2.12.2) lib/sprockets/base.rb:395:in `circular_call_protection' sprockets (2.12.2) lib/sprockets/base.rb:373:in `build_asset' sprockets (2.12.2) lib/sprockets/index.rb:94:in `block in build_asset' sprockets (2.12.2) lib/sprockets/caching.rb:58:in `cache_asset' sprockets (2.12.2) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.2) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.2) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.2) lib/sprockets/bundled_asset.rb:37:in `init_with' sprockets (2.12.2) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.2) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.2) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.2) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.2) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.2) lib/sprockets/environment.rb:75:in `find_asset' sprockets (2.12.2) lib/sprockets/base.rb:295:in `[]' sprockets-rails (2.2.0) lib/sprockets/rails/helper.rb:123:in `asset_digest_path' sprockets-rails (2.2.0) lib/sprockets/rails/helper.rb:76:in `compute_asset_path' actionview (4.1.4) lib/action_view/helpers/asset_url_helper.rb:132:in `asset_path' sprockets-rails (2.2.0) lib/sprockets/rails/helper.rb:91:in `asset_path' actionview (4.1.4) lib/action_view/helpers/asset_url_helper.rb:256:in `stylesheet_path' actionview (4.1.4) lib/action_view/helpers/asset_tag_helper.rb:100:in `block in stylesheet_link_tag' actionview (4.1.4) lib/action_view/helpers/asset_tag_helper.rb:96:in `stylesheet_link_tag' sprockets-rails (2.2.0) lib/sprockets/rails/helper.rb:170:in `stylesheet_link_tag' app/views/layouts/application.html.haml:9:in `_app_views_layouts_application_html_haml___93919631742078199_70093462150400' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:67:in `render_with_layout' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.4) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.4) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.4) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.4) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.4) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70093462803800/variables" for 127.0.0.1 at 2015-03-20 11:32:33 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.2ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.5ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 11:33:39 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (5.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (60.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.3ms) Rendered events/_simple_form.html.haml (118.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (5.4ms) Rendered home/index.html.haml within layouts/application (148.0ms) Completed 200 OK in 945ms (Views: 855.9ms | ActiveRecord: 8.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 11:33:40 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 11:33:40 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 11:33:40 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 11:33:41 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Spare Ribs Doner Landjaeger", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (16.3ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:33:41.606449"], ["title", "Spare Ribs Doner Landjaeger"], ["updated_at", "2015-03-20 17:33:41.606449"]] SQL (13.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 17:33:41.628575"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 17:33:41.628575"]] SQL (0.6ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:33:41.643913"], ["gallery_id", 1], ["updated_at", "2015-03-20 17:33:41.643913"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 17:33:41.646110"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 17:33:41.646110"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:33:41.647715"], ["gallery_id", 2], ["updated_at", "2015-03-20 17:33:41.647715"]]  (0.6ms) COMMIT Redirected to http://localhost:3003/events/1 Completed 302 Found in 51ms (ActiveRecord: 31.7ms) Started GET "/events/1" for 127.0.0.1 at 2015-03-20 11:33:41 -0600 Processing by EventsController#show as HTML Parameters: {"id"=>"1"} Event Load (0.6ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Load (0.2ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 1]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.2ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 2]] Rendered events/show.html.haml within layouts/application (11.1ms) Completed 200 OK in 41ms (Views: 15.2ms | ActiveRecord: 6.5ms)  (0.5ms) SELECT COUNT(*) FROM "events"  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (38.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 11:33:42 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (3.8ms) Rendered events/_simple_form.html.haml (13.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (15.3ms) Completed 200 OK in 20ms (Views: 16.5ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-20 11:33:42 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Short Ribs Shoulder Chuck", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51310-6b4gbp.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51310-1sgxkhw.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51310-1sgxkhw.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51310-1sgxkhw.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51310-1sgxkhw20150320-51310-1q1tcva' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51310-1sgxkhw20150320-51310-1q1tcva' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51310-1sgxkhw.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51310-1sgxkhw.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51310-1sgxkhw.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51310-1sgxkhw20150320-51310-1izpdcb' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51310-1sgxkhw20150320-51310-1izpdcb'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51310-78uwmx.png' SQL (15.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:33:42.998627"], ["title", "Short Ribs Shoulder Chuck"], ["updated_at", "2015-03-20 17:33:42.998627"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 17:33:43.016499"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 17:33:43.016499"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:33:43.018384"], ["gallery_id", 1], ["updated_at", "2015-03-20 17:33:43.018384"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 17:33:43.020113"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 17:33:43.020113"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", ""], ["created_at", "2015-03-20 17:33:43.021533"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 17:33:42.643928"], ["updated_at", "2015-03-20 17:33:43.021533"]]  (16.3ms) COMMIT Redirected to http://localhost:3003/events/1 Completed 302 Found in 488ms (ActiveRecord: 33.7ms) Started GET "/events/1" for 127.0.0.1 at 2015-03-20 11:33:43 -0600 Processing by EventsController#show as HTML Parameters: {"id"=>"1"} Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Load (0.2ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 1]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.2ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 2]] Rendered events/show.html.haml within layouts/application (4.8ms) Completed 200 OK in 18ms (Views: 6.8ms | ActiveRecord: 4.1ms) Started GET "/system/polygallery/photos/photos/000/000/002/large/logo_placeholder_medium.png?1426872822" for 127.0.0.1 at 2015-03-20 11:33:43 -0600  (0.9ms) SELECT COUNT(*) FROM "events"  (0.7ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.9ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.5ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.5ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 11:35:37 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (17.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.1ms) Rendered events/_simple_form.html.haml (53.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (4.7ms) Rendered home/index.html.haml within layouts/application (75.6ms) Completed 200 OK in 171ms (Views: 103.6ms | ActiveRecord: 7.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 11:35:37 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 11:35:37 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 11:35:37 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 11:35:38 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Jerky Shank Capicola", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:35:38.486330"], ["title", "Jerky Shank Capicola"], ["updated_at", "2015-03-20 17:35:38.486330"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 17:35:38.492791"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 17:35:38.492791"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:35:38.494648"], ["gallery_id", 1], ["updated_at", "2015-03-20 17:35:38.494648"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 17:35:38.496963"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 17:35:38.496963"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:35:38.498851"], ["gallery_id", 2], ["updated_at", "2015-03-20 17:35:38.498851"]]  (0.8ms) COMMIT Redirected to http://localhost:3003/events/1 Completed 302 Found in 24ms (ActiveRecord: 3.4ms) Started GET "/events/1" for 127.0.0.1 at 2015-03-20 11:35:38 -0600 Processing by EventsController#show as HTML Parameters: {"id"=>"1"} Event Load (0.5ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.5ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 1]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 2]] Rendered events/show.html.haml within layouts/application (10.6ms) Completed 200 OK in 38ms (Views: 14.3ms | ActiveRecord: 6.8ms)  (0.6ms) SELECT COUNT(*) FROM "events"  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 11:35:38 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.0ms) Rendered events/_simple_form.html.haml (14.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.2ms) Rendered home/index.html.haml within layouts/application (16.4ms) Completed 200 OK in 31ms (Views: 27.1ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-20 11:35:39 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Fatback Turducken Bacon", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51376-1qljqyh.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51376-1prqnjj.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51376-1prqnjj.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51376-1prqnjj.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51376-1prqnjj20150320-51376-1yyazkb' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51376-1prqnjj20150320-51376-1yyazkb' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51376-1prqnjj.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51376-1prqnjj.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51376-1prqnjj.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51376-1prqnjj20150320-51376-1qof1ue' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51376-1prqnjj20150320-51376-1qof1ue'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51376-2rpyo7.png' SQL (15.8ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:35:39.751570"], ["title", "Fatback Turducken Bacon"], ["updated_at", "2015-03-20 17:35:39.751570"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 17:35:39.769717"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 17:35:39.769717"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:35:39.771790"], ["gallery_id", 1], ["updated_at", "2015-03-20 17:35:39.771790"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 17:35:39.773620"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 17:35:39.773620"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", ""], ["created_at", "2015-03-20 17:35:39.775279"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 17:35:39.447139"], ["updated_at", "2015-03-20 17:35:39.775279"]]  (16.2ms) COMMIT Redirected to http://localhost:3003/events/1 Completed 302 Found in 422ms (ActiveRecord: 33.7ms) Started GET "/events/1" for 127.0.0.1 at 2015-03-20 11:35:39 -0600 Processing by EventsController#show as HTML Parameters: {"id"=>"1"} Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Load (0.2ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 1]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.2ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 2]] Rendered events/show.html.haml within layouts/application (5.2ms) Completed 200 OK in 18ms (Views: 7.2ms | ActiveRecord: 3.6ms) Started GET "/system/polygallery/photos/photos/000/000/002/large/logo_placeholder_medium.png?1426872939" for 127.0.0.1 at 2015-03-20 11:35:39 -0600  (0.9ms) SELECT COUNT(*) FROM "events"  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.9ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (2.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 11:41:43 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (5.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (19.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.3ms) Rendered events/_simple_form.html.haml (72.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.5ms) Rendered events/_form.html.haml (5.8ms) Rendered home/index.html.haml within layouts/application (99.8ms) Completed 200 OK in 338ms (Views: 219.0ms | ActiveRecord: 7.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 11:41:43 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 11:41:43 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 11:41:43 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 11:41:44 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Jerky Beef Meatloaf", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51556-ktw08w.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51556-fdken.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51556-fdken.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51556-fdken.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51556-fdken20150320-51556-1d0u07p' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51556-fdken20150320-51556-1d0u07p' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51556-fdken.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51556-fdken.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51556-fdken.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51556-fdken20150320-51556-y7isz9' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51556-fdken20150320-51556-y7isz9'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51556-9z3gu6.png' SQL (33.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:41:45.486207"], ["title", "Jerky Beef Meatloaf"], ["updated_at", "2015-03-20 17:41:45.486207"]] SQL (47.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 17:41:45.526404"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 17:41:45.526404"]] SQL (30.6ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:41:45.575738"], ["gallery_id", 1], ["updated_at", "2015-03-20 17:41:45.575738"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 17:41:45.608034"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 17:41:45.608034"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", ""], ["created_at", "2015-03-20 17:41:45.609667"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 17:41:44.643387"], ["updated_at", "2015-03-20 17:41:45.609667"]]  (16.2ms) COMMIT Redirected to http://localhost:3003/events/1 Completed 302 Found in 1062ms (ActiveRecord: 128.9ms) Started GET "/events/1" for 127.0.0.1 at 2015-03-20 11:41:45 -0600 Processing by EventsController#show as HTML Parameters: {"id"=>"1"} Event Load (0.5ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Load (0.2ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 1]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.2ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 2]] Rendered events/show.html.haml within layouts/application (7.8ms) Completed 200 OK in 34ms (Views: 11.6ms | ActiveRecord: 5.6ms) Started GET "/system/polygallery/photos/photos/000/000/002/large/logo_placeholder_medium.png?1426873304" for 127.0.0.1 at 2015-03-20 11:41:45 -0600  (0.5ms) SELECT COUNT(*) FROM "events"  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (38.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 11:41:45 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.2ms) Rendered events/_simple_form.html.haml (12.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (15.1ms) Completed 200 OK in 20ms (Views: 16.6ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-20 11:41:46 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"T Bone Pork Filet Mignon", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.4ms) BEGIN SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:41:46.328759"], ["title", "T Bone Pork Filet Mignon"], ["updated_at", "2015-03-20 17:41:46.328759"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 17:41:46.331183"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 17:41:46.331183"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:41:46.332767"], ["gallery_id", 1], ["updated_at", "2015-03-20 17:41:46.332767"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 17:41:46.334238"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 17:41:46.334238"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:41:46.335540"], ["gallery_id", 2], ["updated_at", "2015-03-20 17:41:46.335540"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/events/1 Completed 302 Found in 20ms (ActiveRecord: 6.6ms) Started GET "/events/1" for 127.0.0.1 at 2015-03-20 11:41:46 -0600 Processing by EventsController#show as HTML Parameters: {"id"=>"1"} Event Load (0.4ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Load (0.2ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 1]] CACHE (0.0ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.2ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 2]] Rendered events/show.html.haml within layouts/application (4.8ms) Completed 200 OK in 17ms (Views: 6.6ms | ActiveRecord: 3.5ms)  (0.5ms) SELECT COUNT(*) FROM "events"  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 11:48:04 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (19.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.8ms) Rendered events/_simple_form.html.haml (70.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.4ms) Rendered events/_form.html.haml (6.1ms) Rendered home/index.html.haml within layouts/application (99.0ms) Completed 200 OK in 274ms (Views: 182.0ms | ActiveRecord: 8.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 11:48:04 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 11:48:04 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 11:48:04 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 11:48:05 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Cow Pork Hamburger", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (18.1ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:48:05.409565"], ["title", "Cow Pork Hamburger"], ["updated_at", "2015-03-20 17:48:05.409565"]] SQL (30.9ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 17:48:05.432662"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 17:48:05.432662"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:48:05.465335"], ["gallery_id", 1], ["updated_at", "2015-03-20 17:48:05.465335"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 17:48:05.468193"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 17:48:05.468193"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:48:05.470155"], ["gallery_id", 2], ["updated_at", "2015-03-20 17:48:05.470155"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 70ms (ActiveRecord: 51.3ms) Started GET "/" for 127.0.0.1 at 2015-03-20 11:48:05 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.4ms) Rendered events/_simple_form.html.haml (12.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.8ms) Rendered home/index.html.haml within layouts/application (15.8ms) Completed 200 OK in 27ms (Views: 18.3ms | ActiveRecord: 3.4ms)  (0.6ms) SELECT COUNT(*) FROM "events"  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (14.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 11:48:05 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.0ms) Rendered events/_simple_form.html.haml (13.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (16.0ms) Completed 200 OK in 30ms (Views: 26.2ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-20 11:48:06 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Capicola Biltong Doner", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51708-11h35oj.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51708-1812r6t.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51708-1812r6t.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51708-1812r6t.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51708-1812r6t20150320-51708-1py7b7p' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51708-1812r6t20150320-51708-1py7b7p' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51708-1812r6t.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51708-1812r6t.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51708-1812r6t.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51708-1812r6t20150320-51708-lkx6qw' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51708-1812r6t20150320-51708-lkx6qw'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51708-wgxktk.png' SQL (15.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:48:06.808225"], ["title", "Capicola Biltong Doner"], ["updated_at", "2015-03-20 17:48:06.808225"]] SQL (0.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 17:48:06.826347"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 17:48:06.826347"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:48:06.828376"], ["gallery_id", 1], ["updated_at", "2015-03-20 17:48:06.828376"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 17:48:06.830199"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 17:48:06.830199"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", ""], ["created_at", "2015-03-20 17:48:06.831771"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 17:48:06.475757"], ["updated_at", "2015-03-20 17:48:06.831771"]]  (15.9ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 447ms (ActiveRecord: 33.6ms) Started GET "/" for 127.0.0.1 at 2015-03-20 11:48:06 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (3.6ms) Rendered events/_simple_form.html.haml (11.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (14.4ms) Completed 200 OK in 22ms (Views: 16.0ms | ActiveRecord: 1.3ms)  (0.8ms) SELECT COUNT(*) FROM "events"  (0.7ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.8ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.6ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 11:58:38 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (5.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (20.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.8ms) Rendered events/_simple_form.html.haml (69.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (5.3ms) Rendered home/index.html.haml within layouts/application (96.1ms) Completed 200 OK in 255ms (Views: 167.1ms | ActiveRecord: 7.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 11:58:39 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 11:58:39 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 11:58:39 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 11:58:40 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Meatloaf Prosciutto Turducken", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51894-13t15xh.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51894-8ipadn.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51894-8ipadn.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51894-8ipadn.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51894-8ipadn20150320-51894-1tv6fqn' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51894-8ipadn20150320-51894-1tv6fqn' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51894-8ipadn.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51894-8ipadn.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51894-8ipadn.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51894-8ipadn20150320-51894-ueabkl' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51894-8ipadn20150320-51894-ueabkl'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51894-1h2kfx0.png' SQL (33.9ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:58:40.613086"], ["title", "Meatloaf Prosciutto Turducken"], ["updated_at", "2015-03-20 17:58:40.613086"]] SQL (0.8ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 17:58:40.652568"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 17:58:40.652568"]] SQL (0.8ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:58:40.654828"], ["gallery_id", 1], ["updated_at", "2015-03-20 17:58:40.654828"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 17:58:40.657027"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 17:58:40.657027"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", ""], ["created_at", "2015-03-20 17:58:40.659059"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 17:58:40.299373"], ["updated_at", "2015-03-20 17:58:40.659059"]]  (16.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 428ms (ActiveRecord: 52.8ms) Started GET "/" for 127.0.0.1 at 2015-03-20 11:58:40 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (3.5ms) Rendered events/_simple_form.html.haml (12.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (14.6ms) Completed 200 OK in 24ms (Views: 16.2ms | ActiveRecord: 3.0ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.5ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (21.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 11:58:57 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (16.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.4ms) Rendered events/_simple_form.html.haml (53.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.6ms) Rendered home/index.html.haml within layouts/application (75.9ms) Completed 200 OK in 174ms (Views: 105.0ms | ActiveRecord: 7.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 11:58:57 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 11:58:57 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 11:58:57 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 11:58:58 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Kevin Pancetta Capicola", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51938-1wd9km1.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51938-ma6rvp.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51938-ma6rvp.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51938-ma6rvp.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51938-ma6rvp20150320-51938-1rblrzp' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51938-ma6rvp20150320-51938-1rblrzp' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51938-ma6rvp.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51938-ma6rvp.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51938-ma6rvp.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51938-ma6rvp20150320-51938-sr86ve' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51938-ma6rvp20150320-51938-sr86ve'  (0.3ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51938-106zknk.png' SQL (212.2ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:58:58.695106"], ["title", "Kevin Pancetta Capicola"], ["updated_at", "2015-03-20 17:58:58.695106"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 17:58:58.912634"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 17:58:58.912634"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:58:58.914666"], ["gallery_id", 1], ["updated_at", "2015-03-20 17:58:58.914666"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 17:58:58.916356"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 17:58:58.916356"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", ""], ["created_at", "2015-03-20 17:58:58.918028"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 17:58:58.450624"], ["updated_at", "2015-03-20 17:58:58.918028"]]  (16.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 566ms (ActiveRecord: 230.7ms) Started GET "/" for 127.0.0.1 at 2015-03-20 11:58:58 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.1ms) Rendered events/_simple_form.html.haml (14.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.8ms) Rendered home/index.html.haml within layouts/application (17.9ms) Completed 200 OK in 28ms (Views: 20.2ms | ActiveRecord: 2.8ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (1.0ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (21.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 11:59:30 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (16.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.1ms) Rendered events/_simple_form.html.haml (52.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.7ms) Rendered home/index.html.haml within layouts/application (73.4ms) Completed 200 OK in 170ms (Views: 102.3ms | ActiveRecord: 7.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 11:59:30 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 11:59:30 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 11:59:30 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 11:59:31 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Venison Flank Tri Tip", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51984-1rg31gr.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51984-w71lzk.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51984-w71lzk.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51984-w71lzk.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51984-w71lzk20150320-51984-b2yvb8' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51984-w71lzk20150320-51984-b2yvb8' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51984-w71lzk.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51984-w71lzk.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51984-w71lzk.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51984-w71lzk20150320-51984-keoffa' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51984-w71lzk20150320-51984-keoffa'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-51984-9glv2v.png' SQL (15.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:59:31.882165"], ["title", "Venison Flank Tri Tip"], ["updated_at", "2015-03-20 17:59:31.882165"]] SQL (0.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 17:59:31.903604"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 17:59:31.903604"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:59:31.905781"], ["gallery_id", 1], ["updated_at", "2015-03-20 17:59:31.905781"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 17:59:31.907670"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 17:59:31.907670"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", ""], ["created_at", "2015-03-20 17:59:31.909222"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 17:59:31.634813"], ["updated_at", "2015-03-20 17:59:31.909222"]]  (16.4ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 372ms (ActiveRecord: 34.0ms) Started GET "/" for 127.0.0.1 at 2015-03-20 11:59:31 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (3.8ms) Rendered events/_simple_form.html.haml (12.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (15.4ms) Completed 200 OK in 25ms (Views: 17.1ms | ActiveRecord: 3.0ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.5ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 11:59:44 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (14.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.4ms) Rendered events/_simple_form.html.haml (84.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.2ms) Rendered home/index.html.haml within layouts/application (105.0ms) Completed 200 OK in 201ms (Views: 130.4ms | ActiveRecord: 7.9ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 11:59:45 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 11:59:45 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 11:59:45 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 11:59:46 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Drumstick Tri Tip Venison", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52025-1itfh9o.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52025-17uvnga.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52025-17uvnga.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52025-17uvnga.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52025-17uvnga20150320-52025-ssw5ti' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52025-17uvnga20150320-52025-ssw5ti' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52025-17uvnga.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52025-17uvnga.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52025-17uvnga.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52025-17uvnga20150320-52025-vbtn81' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52025-17uvnga20150320-52025-vbtn81'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52025-94vkpi.png' SQL (15.3ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:59:46.381039"], ["title", "Drumstick Tri Tip Venison"], ["updated_at", "2015-03-20 17:59:46.381039"]] SQL (1.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 17:59:46.402917"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 17:59:46.402917"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 17:59:46.406772"], ["gallery_id", 1], ["updated_at", "2015-03-20 17:59:46.406772"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 17:59:46.408774"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 17:59:46.408774"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", ""], ["created_at", "2015-03-20 17:59:46.410316"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 17:59:46.047685"], ["updated_at", "2015-03-20 17:59:46.410316"]]  (15.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 434ms (ActiveRecord: 33.7ms) Started GET "/" for 127.0.0.1 at 2015-03-20 11:59:46 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.0ms) Rendered events/_simple_form.html.haml (13.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (16.3ms) Completed 200 OK in 26ms (Views: 17.9ms | ActiveRecord: 3.1ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 12:00:02 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (16.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (10.8ms) Rendered events/_simple_form.html.haml (54.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (5.5ms) Rendered home/index.html.haml within layouts/application (76.7ms) Completed 200 OK in 173ms (Views: 106.5ms | ActiveRecord: 6.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 12:00:02 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 12:00:02 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 12:00:02 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 12:00:03 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Strip Steak Ball Tip Shoulder", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52067-1ds72lz.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52067-1grauo9.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52067-1grauo9.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52067-1grauo9.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52067-1grauo920150320-52067-8xlqx2' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52067-1grauo920150320-52067-8xlqx2' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52067-1grauo9.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52067-1grauo9.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52067-1grauo9.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52067-1grauo920150320-52067-6gzjfn' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52067-1grauo920150320-52067-6gzjfn'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52067-qgk36c.png' SQL (15.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 18:00:03.495595"], ["title", "Strip Steak Ball Tip Shoulder"], ["updated_at", "2015-03-20 18:00:03.495595"]] SQL (0.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 18:00:03.516814"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 18:00:03.516814"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 18:00:03.518883"], ["gallery_id", 1], ["updated_at", "2015-03-20 18:00:03.518883"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 18:00:03.520582"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 18:00:03.520582"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", ""], ["created_at", "2015-03-20 18:00:03.522077"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 18:00:03.244360"], ["updated_at", "2015-03-20 18:00:03.522077"]]  (16.2ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 373ms (ActiveRecord: 33.8ms) Started GET "/" for 127.0.0.1 at 2015-03-20 12:00:03 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.0ms) Rendered events/_simple_form.html.haml (13.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (16.3ms) Completed 200 OK in 25ms (Views: 18.0ms | ActiveRecord: 2.8ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 12:01:00 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (16.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.8ms) Rendered events/_simple_form.html.haml (53.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (4.5ms) Rendered home/index.html.haml within layouts/application (76.2ms) Completed 200 OK in 172ms (Views: 104.4ms | ActiveRecord: 7.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 12:01:00 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 12:01:00 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 12:01:00 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 12:01:01 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Tenderloin Ham Short Loin", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52116-62k6ab.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52116-1f9na70.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52116-1f9na70.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52116-1f9na70.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52116-1f9na7020150320-52116-1uasb9o' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52116-1f9na7020150320-52116-1uasb9o' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52116-1f9na70.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52116-1f9na70.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52116-1f9na70.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52116-1f9na7020150320-52116-n7ulrv' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52116-1f9na7020150320-52116-n7ulrv'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52116-xpaj1t.png' SQL (15.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 18:01:01.822228"], ["title", "Tenderloin Ham Short Loin"], ["updated_at", "2015-03-20 18:01:01.822228"]] SQL (0.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 18:01:01.843097"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 18:01:01.843097"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 18:01:01.845188"], ["gallery_id", 1], ["updated_at", "2015-03-20 18:01:01.845188"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 18:01:01.846970"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 18:01:01.846970"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", ""], ["created_at", "2015-03-20 18:01:01.848464"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 18:01:01.571748"], ["updated_at", "2015-03-20 18:01:01.848464"]]  (16.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 372ms (ActiveRecord: 34.0ms) Started GET "/" for 127.0.0.1 at 2015-03-20 12:01:01 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.0ms) Rendered events/_simple_form.html.haml (13.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (16.1ms) Completed 200 OK in 26ms (Views: 17.7ms | ActiveRecord: 3.4ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 12:06:11 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (21.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.6ms) Rendered events/_simple_form.html.haml (74.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.4ms) Rendered events/_form.html.haml (6.0ms) Rendered home/index.html.haml within layouts/application (101.6ms) Completed 200 OK in 254ms (Views: 166.9ms | ActiveRecord: 7.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 12:06:11 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 12:06:11 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 12:06:11 -0600  (0.7ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.7ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (56.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 12:07:27 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (19.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (15.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (86.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (35.5ms) Rendered events/_simple_form.html.haml (236.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (3.8ms) Rendered events/_form.html.haml (16.7ms) Rendered home/index.html.haml within layouts/application (321.1ms) Completed 200 OK in 692ms (Views: 464.9ms | ActiveRecord: 24.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 12:07:28 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 12:07:28 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 12:07:28 -0600  (3.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (6.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (4.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (64.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (1.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (1.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 12:07:57 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (17.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (11.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (67.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (5.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (33.4ms) Rendered events/_simple_form.html.haml (219.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (4.1ms) Rendered events/_form.html.haml (15.7ms) Rendered home/index.html.haml within layouts/application (300.6ms) Completed 200 OK in 682ms (Views: 432.2ms | ActiveRecord: 23.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 12:07:58 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 12:07:58 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 12:07:58 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 12:08:01 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Fatback Shank Spare Ribs", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52368-18ppg44.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52368-1bndjz7.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52368-1bndjz7.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52368-1bndjz7.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52368-1bndjz720150320-52368-7jp8cg' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52368-1bndjz720150320-52368-7jp8cg' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52368-1bndjz7.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52368-1bndjz7.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52368-1bndjz7.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52368-1bndjz720150320-52368-129p472' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52368-1bndjz720150320-52368-129p472'  (0.6ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-52368-1ilomc8.png' SQL (32.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 18:08:02.718746"], ["title", "Fatback Shank Spare Ribs"], ["updated_at", "2015-03-20 18:08:02.718746"]] SQL (2.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 18:08:02.772031"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 18:08:02.772031"]] SQL (2.1ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 18:08:02.779519"], ["gallery_id", 1], ["updated_at", "2015-03-20 18:08:02.779519"]] SQL (0.9ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 18:08:02.786605"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 18:08:02.786605"]] SQL (0.8ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", ""], ["created_at", "2015-03-20 18:08:02.792992"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 18:08:01.685077"], ["updated_at", "2015-03-20 18:08:02.792992"]]  (16.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1393ms (ActiveRecord: 56.7ms) Started GET "/" for 127.0.0.1 at 2015-03-20 12:08:02 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (14.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (12.8ms) Rendered events/_simple_form.html.haml (41.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.8ms) Rendered events/_form.html.haml (5.0ms) Rendered home/index.html.haml within layouts/application (50.5ms) Completed 200 OK in 81ms (Views: 55.9ms | ActiveRecord: 9.3ms)  (2.0ms) SELECT COUNT(*) FROM "events" Event Load (2.9ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (2.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (1.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.9ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.7ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (1.1ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (1.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (1.2ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (6.5ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (5.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (21.5ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.9ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 12:09:42 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (15.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (10.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (58.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (36.9ms) Rendered events/_simple_form.html.haml (210.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (5.3ms) Rendered events/_form.html.haml (20.9ms) Rendered home/index.html.haml within layouts/application (309.1ms) Completed 200 OK in 611ms (Views: 409.1ms | ActiveRecord: 22.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 12:09:42 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 12:09:42 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 12:09:42 -0600  (1.2ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (5.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (6.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (40.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.9ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 12:10:40 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (14.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (9.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (56.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (25.7ms) Rendered events/_simple_form.html.haml (184.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (3.5ms) Rendered events/_form.html.haml (14.1ms) Rendered home/index.html.haml within layouts/application (255.7ms) Completed 200 OK in 540ms (Views: 346.9ms | ActiveRecord: 24.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 12:10:41 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 12:10:41 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 12:10:41 -0600  (1.2ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (4.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (3.9ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (19.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.9ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 12:12:26 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (14.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (10.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (60.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (31.6ms) Rendered events/_simple_form.html.haml (209.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (4.4ms) Rendered events/_form.html.haml (17.9ms) Rendered home/index.html.haml within layouts/application (306.7ms) Completed 200 OK in 656ms (Views: 441.6ms | ActiveRecord: 21.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 12:12:27 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 12:12:27 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 12:12:27 -0600  (1.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (4.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (5.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (87.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.9ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (16.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 13:36:20 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 5ms NoMethodError - undefined method `image_path' for ActionView::Helpers::AssetUrlHelper:Module: /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:23:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:2:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:22:in `has_polygallery' app/models/event.rb:3:in `' app/models/event.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70270734600880/variables" for 127.0.0.1 at 2015-03-20 13:36:20 -0600  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.5ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (186.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 13:36:36 -0600 Processing by HomeController#index as HTML Rendered events/_simple_form.html.haml (43.8ms) Rendered home/index.html.haml within layouts/application (64.6ms) Completed 500 Internal Server Error in 78ms NoMethodError - undefined method `gallery' for #: activemodel (4.1.4) lib/active_model/attribute_methods.rb:435:in `method_missing' activerecord (4.1.4) lib/active_record/attribute_methods.rb:208:in `method_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/view_helpers.rb:16:in `simple_fields_for_polygallery' app/views/events/_simple_form.html.haml:4:in `block in _app_views_events__simple_form_html_haml__1475032898254250190_70270716446600' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_with_haml' haml (4.0.5) lib/haml/helpers.rb:278:in `with_tabs' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block in form_for_with_haml' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:434:in `form_for' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:26:in `block in simple_form_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:45:in `with_simple_form_field_error_proc' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:25:in `simple_form_for' app/views/events/_simple_form.html.haml:1:in `_app_views_events__simple_form_html_haml__1475032898254250190_70270716446600' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:35:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' app/views/home/index.html.haml:17:in `_app_views_home_index_html_haml__3023307374287032735_70270725386200' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.4) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.4) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.4) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.4) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.4) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70270771135400/variables" for 127.0.0.1 at 2015-03-20 13:36:36 -0600  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 13:36:47 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 5ms NameError - uninitialized constant Polygallery::Gallery::DEFAULTS: activesupport (4.1.4) lib/active_support/dependencies.rb:518:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:22:in `has_polygallery' app/models/event.rb:3:in `' app/models/event.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70186762124260/variables" for 127.0.0.1 at 2015-03-20 13:36:47 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 13:37:02 -0600 Processing by HomeController#index as HTML Rendered events/_simple_form.html.haml (47.4ms) Rendered home/index.html.haml within layouts/application (67.8ms) Completed 500 Internal Server Error in 81ms NoMethodError - undefined method `gallery' for #: activemodel (4.1.4) lib/active_model/attribute_methods.rb:435:in `method_missing' activerecord (4.1.4) lib/active_record/attribute_methods.rb:208:in `method_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/view_helpers.rb:16:in `simple_fields_for_polygallery' app/views/events/_simple_form.html.haml:4:in `block in _app_views_events__simple_form_html_haml___1345701089056533609_70186709117940' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_with_haml' haml (4.0.5) lib/haml/helpers.rb:278:in `with_tabs' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block in form_for_with_haml' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:434:in `form_for' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:26:in `block in simple_form_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:45:in `with_simple_form_field_error_proc' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:25:in `simple_form_for' app/views/events/_simple_form.html.haml:1:in `_app_views_events__simple_form_html_haml___1345701089056533609_70186709117940' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:35:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' app/views/home/index.html.haml:17:in `_app_views_home_index_html_haml__3860540881082344044_70186705286560' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.4) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.4) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.4) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.4) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.4) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70186703628300/variables" for 127.0.0.1 at 2015-03-20 13:37:02 -0600  (0.6ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.8ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.5ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 13:37:46 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 3ms NoMethodError - undefined method `asset_path' for ActionView::Helpers::AssetUrlHelper:Module: /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:23:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:2:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:22:in `has_polygallery' app/models/event.rb:3:in `' app/models/event.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70309116513180/variables" for 127.0.0.1 at 2015-03-20 13:37:46 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.5ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 13:38:01 -0600 Processing by HomeController#index as HTML Rendered events/_simple_form.html.haml (44.2ms) Rendered home/index.html.haml within layouts/application (65.3ms) Completed 500 Internal Server Error in 79ms NoMethodError - undefined method `gallery' for #: activemodel (4.1.4) lib/active_model/attribute_methods.rb:435:in `method_missing' activerecord (4.1.4) lib/active_record/attribute_methods.rb:208:in `method_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/view_helpers.rb:16:in `simple_fields_for_polygallery' app/views/events/_simple_form.html.haml:4:in `block in _app_views_events__simple_form_html_haml___2256847896695074037_70309123741900' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_with_haml' haml (4.0.5) lib/haml/helpers.rb:278:in `with_tabs' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block in form_for_with_haml' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:434:in `form_for' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:26:in `block in simple_form_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:45:in `with_simple_form_field_error_proc' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:25:in `simple_form_for' app/views/events/_simple_form.html.haml:1:in `_app_views_events__simple_form_html_haml___2256847896695074037_70309123741900' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:35:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' app/views/home/index.html.haml:17:in `_app_views_home_index_html_haml___965852658425546285_70309112234960' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.4) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.4) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.4) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.4) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.4) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70309160974400/variables" for 127.0.0.1 at 2015-03-20 13:38:01 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.6ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (42.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 13:39:19 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (10.3ms) Rendered events/_simple_form.html.haml (75.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (5.7ms) Rendered home/index.html.haml within layouts/application (102.2ms) Completed 200 OK in 213ms (Views: 157.9ms | ActiveRecord: 6.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 13:39:19 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 13:39:19 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 13:39:19 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 13:39:21 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.9ms) Rendered events/_simple_form.html.haml (14.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (16.2ms) Completed 200 OK in 28ms (Views: 17.5ms | ActiveRecord: 3.2ms) Started POST "/events" for 127.0.0.1 at 2015-03-20 13:39:22 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Hamburger Pork Biltong", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (16.3ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:39:22.182173"], ["title", "Hamburger Pork Biltong"], ["updated_at", "2015-03-20 19:39:22.182173"]] SQL (15.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 19:39:22.203851"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 19:39:22.203851"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:39:22.220946"], ["gallery_id", 1], ["updated_at", "2015-03-20 19:39:22.220946"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 19:39:22.222813"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 19:39:22.222813"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:39:22.224095"], ["gallery_id", 2], ["updated_at", "2015-03-20 19:39:22.224095"]]  (0.4ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 56ms (ActiveRecord: 34.5ms) Started GET "/" for 127.0.0.1 at 2015-03-20 13:39:22 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.9ms) Rendered events/_simple_form.html.haml (17.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (20.5ms) Completed 200 OK in 28ms (Views: 22.2ms | ActiveRecord: 0.0ms)  (0.6ms) SELECT COUNT(*) FROM "events"  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 13:40:05 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (19.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.9ms) Rendered events/_simple_form.html.haml (56.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.6ms) Rendered home/index.html.haml within layouts/application (78.1ms) Completed 200 OK in 182ms (Views: 107.2ms | ActiveRecord: 7.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 13:40:05 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 13:40:05 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 13:40:05 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 13:40:05 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Turkey Biltong Tail", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:40:05.931090"], ["title", "Turkey Biltong Tail"], ["updated_at", "2015-03-20 19:40:05.931090"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 19:40:05.936495"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 19:40:05.936495"]] SQL (0.6ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:40:05.938370"], ["gallery_id", 1], ["updated_at", "2015-03-20 19:40:05.938370"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 19:40:05.940573"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 19:40:05.940573"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:40:05.942279"], ["gallery_id", 2], ["updated_at", "2015-03-20 19:40:05.942279"]]  (0.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 25ms (ActiveRecord: 3.2ms) Started GET "/" for 127.0.0.1 at 2015-03-20 13:40:05 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.2ms) Rendered events/_simple_form.html.haml (16.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (19.6ms) Completed 200 OK in 32ms (Views: 21.5ms | ActiveRecord: 3.5ms)  (0.6ms) SELECT COUNT(*) FROM "events"  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.5ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 13:40:06 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered events/_simple_form.html.haml (16.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.4ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (18.9ms) Completed 200 OK in 26ms (Views: 20.2ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-20 13:40:09 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Pork Loin Meatball Sirloin", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}, "1426880406935"=>{"caption"=>"", "_destroy"=>"false"}, "1426880408047"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"photos_attributes"=>{"1426880406943"=>{"caption"=>"Flank corned beef jerky Kevin chuck venison. Capicola filet mignon turkey cow venison. Swine meatball spare ribs porchetta ball tip chicken prosciutto Kevin short ribs. Salami turkey tongue pork chop flank pancetta tenderloin. Cow bacon landjaeger tail tenderloin.", "_destroy"=>"false", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][1426880406943][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">}, "1426880408053"=>{"caption"=>"Porchetta ham hock meatball bacon bresaola. Andouille tail ham hock short ribs biltong pork belly boudin hamburger. Shankle sausage rump doner frankfurter flank ground round beef. Fatback spare ribs tongue frankfurter bacon turkey ground round venison. Meatball corned beef meatloaf shank swine hamburger.", "_destroy"=>"false", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][1426880408053][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">}, "0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"", "_destroy"=>"false"}}, "title"=>"custom_gallery"}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1ugkjee.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-r11pj0.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-r11pj0.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-r11pj0.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-r11pj020150320-54982-1kyc8jf' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-r11pj020150320-54982-1kyc8jf' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-r11pj0.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-r11pj0.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-r11pj0.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-r11pj020150320-54982-5a9cza' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-r11pj020150320-54982-5a9cza' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-ott0ma.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1jf16un.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1jf16un.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1jf16un.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1jf16un20150320-54982-1mmuxol' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1jf16un20150320-54982-1mmuxol' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1jf16un.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1jf16un.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1jf16un.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1jf16un20150320-54982-10pw6rc' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1jf16un20150320-54982-10pw6rc' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-16np0l5.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-mgdio9.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-mgdio9.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-mgdio9.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-mgdio920150320-54982-9jyeyv' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-mgdio920150320-54982-9jyeyv' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-mgdio9.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-mgdio9.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-mgdio9.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-mgdio920150320-54982-c6fpw8' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-mgdio920150320-54982-c6fpw8'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-14i293e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-t48z7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-kcp7q1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1wj5y76.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-vkcajt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1u6dxkq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-wpysnw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-kzmpai.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-jutsnd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-o68tg5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1o5wzhw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-5q24at.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-id7l0p.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-2frm2b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-10bagcq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-14d5w6r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1461gnu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-xxlvgp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-zh5u6j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1udlta5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-p6av7h.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-130j569.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1fzrujr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-lgnpur.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-ilsu25.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-aj9xwg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1jt9y6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-cfd9u7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1qj3i9p.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-s5rh3b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-126guxy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-imwauk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-37b5lt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1ywcian.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-fxsdhn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-14v7d35.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1a2itdd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-78t1s1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1198vhl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-10omu7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-11uipk3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1mr4rx9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-pcbeho.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-ifh0wz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-v530h5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-if360c.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-82x9me.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-ayh3uf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1027k7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1ftucm2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-tl6gqn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-w5lv94.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-17bhiwv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-9qqoko.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-l33i7m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-3ffddf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-yggbls.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1f1r5dr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1wpzkce.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-pwp4jp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-q58d88.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-1d7voj1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-54982-jxqpqt.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:40:11.069672"], ["title", "Pork Loin Meatball Sirloin"], ["updated_at", "2015-03-20 19:40:11.069672"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 19:40:11.072588"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 19:40:11.072588"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:40:11.074578"], ["gallery_id", 1], ["updated_at", "2015-03-20 19:40:11.074578"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 19:40:11.076351"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 19:40:11.076351"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Flank corned beef jerky Kevin chuck venison. Capicola filet mignon turkey cow venison. Swine meatball spare ribs porchetta ball tip chicken prosciutto Kevin short ribs. Salami turkey tongue pork chop flank pancetta tenderloin. Cow bacon landjaeger tail tenderloin."], ["created_at", "2015-03-20 19:40:11.077844"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 19:40:09.433391"], ["updated_at", "2015-03-20 19:40:11.077844"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Porchetta ham hock meatball bacon bresaola. Andouille tail ham hock short ribs biltong pork belly boudin hamburger. Shankle sausage rump doner frankfurter flank ground round beef. Fatback spare ribs tongue frankfurter bacon turkey ground round venison. Meatball corned beef meatloaf shank swine hamburger."], ["created_at", "2015-03-20 19:40:11.109481"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 19:40:09.861241"], ["updated_at", "2015-03-20 19:40:11.109481"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", ""], ["created_at", "2015-03-20 19:40:11.131553"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 19:40:10.129915"], ["updated_at", "2015-03-20 19:40:11.131553"]]  (16.2ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1793ms (ActiveRecord: 19.1ms) Started GET "/" for 127.0.0.1 at 2015-03-20 13:40:11 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered events/_simple_form.html.haml (18.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.4ms) Rendered events/_form.html.haml (1.8ms) Rendered home/index.html.haml within layouts/application (21.9ms) Completed 200 OK in 33ms (Views: 24.3ms | ActiveRecord: 1.1ms)  (0.9ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 13:40:36 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (21.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.5ms) Rendered events/_simple_form.html.haml (58.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.7ms) Rendered events/_form.html.haml (5.5ms) Rendered home/index.html.haml within layouts/application (83.5ms) Completed 200 OK in 154ms (Views: 111.8ms | ActiveRecord: 6.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 13:40:37 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 13:40:37 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 13:40:37 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 13:40:39 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Tenderloin Kevin Strip Steak", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}, "1426880437902"=>{"caption"=>"", "_destroy"=>"false"}, "1426880439085"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"photos_attributes"=>{"1426880437913"=>{"caption"=>"Turkey corned beef ground round doner meatloaf. Kielbasa pig drumstick beef ribs tongue salami ham. Kielbasa ham hock turkey venison pork t-bone. Shank tail meatloaf pork loin filet mignon jowl tri-tip meatball. Fatback sirloin ball tip tenderloin pancetta short ribs Kevin doner porchetta.", "_destroy"=>"false", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][1426880437913][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">}, "1426880439091"=>{"caption"=>"", "_destroy"=>"false", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][1426880439091][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">}, "0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"", "_destroy"=>"false"}}, "title"=>"custom_gallery"}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-7nr0ex.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-17y6kig.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-17y6kig.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-17y6kig.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-17y6kig20150320-55111-1ozetw3' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-17y6kig20150320-55111-1ozetw3' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-17y6kig.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-17y6kig.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-17y6kig.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-17y6kig20150320-55111-10ulbo5' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-17y6kig20150320-55111-10ulbo5' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1rgd31v.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-4affni.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-4affni.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-4affni.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-4affni20150320-55111-1gft3u' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-4affni20150320-55111-1gft3u' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-4affni.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-4affni.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-4affni.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-4affni20150320-55111-h26ivc' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-4affni20150320-55111-h26ivc' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-59whgl.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1o78uc7.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1o78uc7.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1o78uc7.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1o78uc720150320-55111-1clmfc4' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1o78uc720150320-55111-1clmfc4' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1o78uc7.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1o78uc7.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1o78uc7.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1o78uc720150320-55111-1mk00gx' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1o78uc720150320-55111-1mk00gx'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-33z3ws.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1ftprwv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1wnnd4j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-f2mt6n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-v1c2iw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-pqq996.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-10nkps7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1qfe236.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-vc2ywj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1yyz7e1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-gsd90.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1u47gez.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-kb52ol.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-oyc5p2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1772gs5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1yrfh2p.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1kq76hg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1xqxohz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1mhlldd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-xyy8pa.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1952pya.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1695aai.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-11rjsdk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-i7n65j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1gzyeg4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-5pukdr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1nds0bz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-vf2a56.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-lqdd2g.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1avtt65.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-1o5pofu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-fpw9lg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55111-149c8ky.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:40:40.684545"], ["title", "Tenderloin Kevin Strip Steak"], ["updated_at", "2015-03-20 19:40:40.684545"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 19:40:40.690068"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 19:40:40.690068"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:40:40.692000"], ["gallery_id", 1], ["updated_at", "2015-03-20 19:40:40.692000"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 19:40:40.693693"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 19:40:40.693693"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Turkey corned beef ground round doner meatloaf. Kielbasa pig drumstick beef ribs tongue salami ham. Kielbasa ham hock turkey venison pork t-bone. Shank tail meatloaf pork loin filet mignon jowl tri-tip meatball. Fatback sirloin ball tip tenderloin pancetta short ribs Kevin doner porchetta."], ["created_at", "2015-03-20 19:40:40.695060"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 19:40:39.497814"], ["updated_at", "2015-03-20 19:40:40.695060"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", ""], ["created_at", "2015-03-20 19:40:40.709305"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 19:40:39.766585"], ["updated_at", "2015-03-20 19:40:40.709305"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", ""], ["created_at", "2015-03-20 19:40:40.722594"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 19:40:40.028751"], ["updated_at", "2015-03-20 19:40:40.722594"]]  (15.4ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1327ms (ActiveRecord: 18.5ms) Started GET "/" for 127.0.0.1 at 2015-03-20 13:40:40 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (17.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.5ms) Rendered events/_form.html.haml (1.9ms) Rendered home/index.html.haml within layouts/application (20.6ms) Completed 200 OK in 33ms (Views: 22.7ms | ActiveRecord: 2.9ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] CustomPhoto Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_photos"."class_name" IN ('CustomPhoto') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 13:40:41 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.4ms) Rendered events/_simple_form.html.haml (18.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.9ms) Rendered home/index.html.haml within layouts/application (20.9ms) Completed 200 OK in 29ms (Views: 22.4ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-20 13:40:41 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Porchetta Swine Pork Loin", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (1.0ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:40:41.750891"], ["title", "Porchetta Swine Pork Loin"], ["updated_at", "2015-03-20 19:40:41.750891"]] SQL (0.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 19:40:41.753804"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 19:40:41.753804"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:40:41.755983"], ["gallery_id", 1], ["updated_at", "2015-03-20 19:40:41.755983"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 19:40:41.758013"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 19:40:41.758013"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:40:41.760103"], ["gallery_id", 2], ["updated_at", "2015-03-20 19:40:41.760103"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 27ms (ActiveRecord: 3.7ms) Started GET "/" for 127.0.0.1 at 2015-03-20 13:40:41 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.0ms) Rendered events/_simple_form.html.haml (18.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.9ms) Rendered home/index.html.haml within layouts/application (21.9ms) Completed 200 OK in 31ms (Views: 23.6ms | ActiveRecord: 0.0ms)  (0.8ms) SELECT COUNT(*) FROM "events"  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.6ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (21.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 13:41:08 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (21.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (10.0ms) Rendered events/_simple_form.html.haml (60.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (4.7ms) Rendered home/index.html.haml within layouts/application (82.8ms) Completed 200 OK in 158ms (Views: 111.5ms | ActiveRecord: 6.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 13:41:08 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 13:41:08 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 13:41:08 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 13:41:11 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Pancetta Cow Porchetta", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}, "1426880469815"=>{"caption"=>"", "_destroy"=>"false"}, "1426880471028"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"photos_attributes"=>{"1426880469823"=>{"caption"=>"Pork chop ham hock sirloin corned beef cow swine. Meatloaf Kevin pig drumstick filet mignon. Landjaeger brisket fatback pork chop cow spare ribs filet mignon porchetta meatloaf. Landjaeger sirloin pastrami short ribs Kevin. Meatloaf ball tip rump hamburger short ribs sirloin chicken bresaola chuck.", "_destroy"=>"false", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][1426880469823][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">}, "1426880471034"=>{"caption"=>"", "_destroy"=>"false", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][1426880471034][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">}, "0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Kevin sirloin short ribs chuck landjaeger. Hamburger frankfurter bacon shank spare ribs chicken shoulder ham hock ground round. Short ribs Kevin tail venison tri-tip.", "_destroy"=>"false"}}, "title"=>"custom_gallery"}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-18xbi8j.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-vjrpad.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-vjrpad.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-vjrpad.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-vjrpad20150320-55210-1i19fme' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-vjrpad20150320-55210-1i19fme' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-vjrpad.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-vjrpad.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-vjrpad.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-vjrpad20150320-55210-coawfs' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-vjrpad20150320-55210-coawfs' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-ix3zbk.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-ycy5uc.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-ycy5uc.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-ycy5uc.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-ycy5uc20150320-55210-11eju57' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-ycy5uc20150320-55210-11eju57' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-ycy5uc.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-ycy5uc.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-ycy5uc.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-ycy5uc20150320-55210-69r0n5' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-ycy5uc20150320-55210-69r0n5' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-xj2vur.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1fmxpni.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1fmxpni.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1fmxpni.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1fmxpni20150320-55210-1s7tk62' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1fmxpni20150320-55210-1s7tk62' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1fmxpni.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1fmxpni.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1fmxpni.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1fmxpni20150320-55210-1sedvk1' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1fmxpni20150320-55210-1sedvk1'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1x4v0df.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-flksws.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1hxb3wg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-7lz9fz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1r8kpq0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1vri0lz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-za0wu0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-19phwnb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1383xd6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1eqblie.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1q7jeib.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-jtgan.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-sw2769.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-3ik3c9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1duzyip.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-6tr6c0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-106q99g.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1uhs3a6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-gxurce.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1fs3he4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-wgnyth.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1npcho6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1h2h3eo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-2bzza9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-ylt42f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-b43jo3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-kyssuf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-u2fuo1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1mhbcgw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-kuow6q.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-ipqga3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1txlvwt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-55210-1iyftml.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:41:12.551565"], ["title", "Pancetta Cow Porchetta"], ["updated_at", "2015-03-20 19:41:12.551565"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 19:41:12.558412"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 19:41:12.558412"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:41:12.560450"], ["gallery_id", 1], ["updated_at", "2015-03-20 19:41:12.560450"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 19:41:12.562187"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 19:41:12.562187"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Pork chop ham hock sirloin corned beef cow swine. Meatloaf Kevin pig drumstick filet mignon. Landjaeger brisket fatback pork chop cow spare ribs filet mignon porchetta meatloaf. Landjaeger sirloin pastrami short ribs Kevin. Meatloaf ball tip rump hamburger short ribs sirloin chicken bresaola chuck."], ["created_at", "2015-03-20 19:41:12.563571"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 19:41:11.432411"], ["updated_at", "2015-03-20 19:41:12.563571"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", ""], ["created_at", "2015-03-20 19:41:12.580291"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 19:41:11.710338"], ["updated_at", "2015-03-20 19:41:12.580291"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Kevin sirloin short ribs chuck landjaeger. Hamburger frankfurter bacon shank spare ribs chicken shoulder ham hock ground round. Short ribs Kevin tail venison tri-tip."], ["created_at", "2015-03-20 19:41:12.597005"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 19:41:11.969841"], ["updated_at", "2015-03-20 19:41:12.597005"]]  (16.4ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1270ms (ActiveRecord: 19.7ms) Started GET "/" for 127.0.0.1 at 2015-03-20 13:41:12 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.7ms) Rendered events/_simple_form.html.haml (19.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (22.9ms) Completed 200 OK in 36ms (Views: 24.8ms | ActiveRecord: 3.1ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.5ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_photos"."class_name" IN ('CustomPhoto') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 13:41:13 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.4ms) Rendered events/_simple_form.html.haml (19.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.4ms) Rendered events/_form.html.haml (1.8ms) Rendered home/index.html.haml within layouts/application (22.2ms) Completed 200 OK in 31ms (Views: 23.6ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-20 13:41:13 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Ham Hock Corned Beef Strip Steak", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:41:13.727744"], ["title", "Ham Hock Corned Beef Strip Steak"], ["updated_at", "2015-03-20 19:41:13.727744"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 19:41:13.730386"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 19:41:13.730386"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:41:13.732286"], ["gallery_id", 1], ["updated_at", "2015-03-20 19:41:13.732286"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 19:41:13.734375"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 19:41:13.734375"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:41:13.736375"], ["gallery_id", 2], ["updated_at", "2015-03-20 19:41:13.736375"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 26ms (ActiveRecord: 3.1ms) Started GET "/" for 127.0.0.1 at 2015-03-20 13:41:13 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.4ms) Rendered events/_simple_form.html.haml (19.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (21.7ms) Completed 200 OK in 31ms (Views: 23.5ms | ActiveRecord: 0.0ms)  (0.9ms) SELECT COUNT(*) FROM "events"  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.6ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 13:43:50 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (19.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.0ms) Rendered events/_simple_form.html.haml (53.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.4ms) Rendered home/index.html.haml within layouts/application (74.5ms) Completed 200 OK in 170ms (Views: 101.2ms | ActiveRecord: 7.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 13:43:50 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 13:43:50 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 13:43:50 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 13:43:51 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Corned Beef Salami Jerky", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: photos_attributes  (0.2ms) BEGIN SQL (0.9ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:43:51.052220"], ["title", "Corned Beef Salami Jerky"], ["updated_at", "2015-03-20 19:43:51.052220"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 19:43:51.057977"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 19:43:51.057977"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:43:51.059915"], ["gallery_id", 1], ["updated_at", "2015-03-20 19:43:51.059915"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 19:43:51.061683"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 19:43:51.061683"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:43:51.063381"], ["gallery_id", 2], ["updated_at", "2015-03-20 19:43:51.063381"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 25ms (ActiveRecord: 3.3ms) Started GET "/" for 127.0.0.1 at 2015-03-20 13:43:51 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.2ms) Rendered events/_simple_form.html.haml (16.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (18.7ms) Completed 200 OK in 31ms (Views: 20.2ms | ActiveRecord: 3.0ms)  (0.6ms) SELECT COUNT(*) FROM "events"  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.8ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 13:43:51 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.8ms) Rendered events/_simple_form.html.haml (15.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (17.2ms) Completed 200 OK in 24ms (Views: 18.5ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-20 13:43:54 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Swine Pancetta Bacon", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}, "1426880632031"=>{"caption"=>"", "_destroy"=>"false"}, "1426880633279"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"photos_attributes"=>{"1426880632040"=>{"caption"=>"T-bone pork jowl frankfurter pork chop venison. Pastrami beef ribs ball tip bacon bresaola tri-tip sausage. Meatloaf tri-tip chicken landjaeger tenderloin. Beef ribs t-bone rump short ribs ball tip hamburger. Pork loin leberkas frankfurter strip steak doner capicola corned beef tri-tip short ribs.", "_destroy"=>"false", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][1426880632040][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">}, "1426880633285"=>{"caption"=>"Chicken rump flank ham hock porchetta beef brisket capicola. Shank jerky t-bone beef pig. Porchetta fatback andouille sirloin drumstick ball tip.", "_destroy"=>"false", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][1426880633285][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">}, "0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"", "_destroy"=>"false"}}, "title"=>"custom_gallery"}}, "commit"=>"Create Event"} Unpermitted parameters: photos_attributes  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:43:54.115609"], ["title", "Swine Pancetta Bacon"], ["updated_at", "2015-03-20 19:43:54.115609"]] SQL (0.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 19:43:54.117940"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 19:43:54.117940"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:43:54.120330"], ["gallery_id", 1], ["updated_at", "2015-03-20 19:43:54.120330"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 19:43:54.122335"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 19:43:54.122335"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:43:54.123667"], ["gallery_id", 2], ["updated_at", "2015-03-20 19:43:54.123667"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 22ms (ActiveRecord: 3.1ms) Started GET "/" for 127.0.0.1 at 2015-03-20 13:43:54 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.9ms) Rendered events/_simple_form.html.haml (18.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.8ms) Rendered home/index.html.haml within layouts/application (21.4ms) Completed 200 OK in 32ms (Views: 23.5ms | ActiveRecord: 1.4ms)  (0.8ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_photos"."class_name" IN ('CustomPhoto') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 13:50:07 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (18.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.7ms) Rendered events/_simple_form.html.haml (55.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.3ms) Rendered home/index.html.haml within layouts/application (77.1ms) Completed 200 OK in 147ms (Views: 103.6ms | ActiveRecord: 6.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 13:50:08 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 13:50:08 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 13:50:08 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 13:50:09 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Meatloaf Rump Ham", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}, "1426881008929"=>{"caption"=>"", "_destroy"=>"false"}, "1426881009279"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"photos_attributes"=>{"1426881008941"=>{"caption"=>"", "_destroy"=>"false", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][1426881008941][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">}, "1426881009285"=>{"caption"=>"", "_destroy"=>"false", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][1426881009285][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">}, "0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"", "_destroy"=>"false"}}, "title"=>"custom_gallery"}}, "commit"=>"Create Event"} Unpermitted parameters: photos_attributes  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:50:09.643206"], ["title", "Meatloaf Rump Ham"], ["updated_at", "2015-03-20 19:50:09.643206"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 19:50:09.648235"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 19:50:09.648235"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:50:09.649911"], ["gallery_id", 1], ["updated_at", "2015-03-20 19:50:09.649911"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 19:50:09.651488"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 19:50:09.651488"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:50:09.653288"], ["gallery_id", 2], ["updated_at", "2015-03-20 19:50:09.653288"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 24ms (ActiveRecord: 2.9ms) Started GET "/" for 127.0.0.1 at 2015-03-20 13:50:09 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered events/_simple_form.html.haml (18.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.9ms) Rendered home/index.html.haml within layouts/application (21.6ms) Completed 200 OK in 33ms (Views: 23.3ms | ActiveRecord: 3.2ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_photos"."class_name" IN ('CustomPhoto') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.9ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 13:50:10 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.1ms) Rendered events/_simple_form.html.haml (15.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (17.7ms) Completed 200 OK in 25ms (Views: 19.1ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-20 13:50:10 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Pancetta Shank Capicola", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: photos_attributes  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:50:10.384742"], ["title", "Pancetta Shank Capicola"], ["updated_at", "2015-03-20 19:50:10.384742"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 19:50:10.387319"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 19:50:10.387319"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:50:10.389355"], ["gallery_id", 1], ["updated_at", "2015-03-20 19:50:10.389355"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 19:50:10.391089"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 19:50:10.391089"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:50:10.392487"], ["gallery_id", 2], ["updated_at", "2015-03-20 19:50:10.392487"]]  (0.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 23ms (ActiveRecord: 3.0ms) Started GET "/" for 127.0.0.1 at 2015-03-20 13:50:10 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.5ms) Rendered events/_simple_form.html.haml (18.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (22.0ms) Completed 200 OK in 31ms (Views: 23.6ms | ActiveRecord: 0.0ms)  (0.8ms) SELECT COUNT(*) FROM "events"  (0.6ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.8ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.5ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 13:51:07 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (5.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (18.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.8ms) Rendered events/_simple_form.html.haml (54.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.0ms) Rendered events/_form.html.haml (4.3ms) Rendered home/index.html.haml within layouts/application (75.9ms) Completed 200 OK in 148ms (Views: 102.6ms | ActiveRecord: 6.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 13:51:07 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 13:51:07 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 13:51:07 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 13:51:09 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Pancetta Chuck Porchetta", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}, "1426881069272"=>{"caption"=>"", "_destroy"=>"false"}, "1426881069616"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"photos_attributes"=>{"1426881069281"=>{"caption"=>"", "_destroy"=>"false", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][1426881069281][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">}, "1426881069622"=>{"caption"=>"", "_destroy"=>"false", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][1426881069622][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">}, "0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Pastrami ham hock capicola boudin meatball. Ball tip prosciutto sausage shank jerky ribeye chuck ham. Sausage bacon pastrami cow pork brisket ball tip. Kielbasa shoulder beef ribs beef turducken meatball bacon prosciutto ribeye.", "_destroy"=>"false"}}, "title"=>"custom_gallery"}}, "commit"=>"Create Event"} Unpermitted parameters: photos_attributes  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:51:09.978723"], ["title", "Pancetta Chuck Porchetta"], ["updated_at", "2015-03-20 19:51:09.978723"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 19:51:09.983673"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 19:51:09.983673"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:51:09.985707"], ["gallery_id", 1], ["updated_at", "2015-03-20 19:51:09.985707"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 19:51:09.987796"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 19:51:09.987796"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:51:09.989352"], ["gallery_id", 2], ["updated_at", "2015-03-20 19:51:09.989352"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 24ms (ActiveRecord: 3.0ms) Started GET "/" for 127.0.0.1 at 2015-03-20 13:51:09 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered events/_simple_form.html.haml (15.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (18.7ms) Completed 200 OK in 31ms (Views: 20.4ms | ActiveRecord: 3.4ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (1.2ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] CustomGallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_photos"."class_name" IN ('CustomPhoto') AND "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."class_name" IN ('CustomGallery') AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 13:51:10 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered events/_simple_form.html.haml (17.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (20.1ms) Completed 200 OK in 28ms (Views: 21.4ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-20 13:51:10 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Tenderloin Shankle Pork Belly", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: photos_attributes  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:51:10.765264"], ["title", "Tenderloin Shankle Pork Belly"], ["updated_at", "2015-03-20 19:51:10.765264"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 19:51:10.767457"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 19:51:10.767457"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:51:10.769271"], ["gallery_id", 1], ["updated_at", "2015-03-20 19:51:10.769271"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("class_name", "created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["class_name", "CustomGallery"], ["created_at", "2015-03-20 19:51:10.771320"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 19:51:10.771320"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 19:51:10.772865"], ["gallery_id", 2], ["updated_at", "2015-03-20 19:51:10.772865"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 22ms (ActiveRecord: 2.9ms) Started GET "/" for 127.0.0.1 at 2015-03-20 13:51:10 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.8ms) Rendered events/_simple_form.html.haml (18.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.4ms) Rendered events/_form.html.haml (2.1ms) Rendered home/index.html.haml within layouts/application (21.4ms) Completed 200 OK in 30ms (Views: 23.2ms | ActiveRecord: 0.0ms)  (0.8ms) SELECT COUNT(*) FROM "events"  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.8ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.7ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (21.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 14:03:33 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (12.3ms) Rendered events/_simple_form.html.haml (53.9ms) Rendered home/index.html.haml within layouts/application (74.5ms) Completed 500 Internal Server Error in 125ms NoMethodError - undefined method `settings' for #: activemodel (4.1.4) lib/active_model/attribute_methods.rb:435:in `method_missing' activerecord (4.1.4) lib/active_record/attribute_methods.rb:208:in `method_missing' /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml:6:in `block in ___sers_smit______ites_polygallery_app_views_polygallery_galleries__simple_fields_for_html_haml__2791884969136476086_70302918321340' haml (4.0.5) lib/haml/helpers.rb:368:in `block in capture_haml' haml (4.0.5) lib/haml/helpers.rb:608:in `with_haml_buffer' haml (4.0.5) lib/haml/helpers.rb:364:in `capture_haml' haml (4.0.5) lib/haml/helpers/xss_mods.rb:61:in `capture_haml_with_haml_xss' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:45:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1860:in `block in fields_for_nested_model' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:699:in `fields_for' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1859:in `fields_for_nested_model' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1849:in `fields_for_with_nested_attributes' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1517:in `fields_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/builder.rb:27:in `simple_fields_for' /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml:1:in `___sers_smit______ites_polygallery_app_views_polygallery_galleries__simple_fields_for_html_haml__2791884969136476086_70302918321340' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/renderer/renderer.rb:21:in `render' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:32:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' /Users/smit1625/Sites/polygallery/lib/polygallery/view_helpers.rb:17:in `simple_fields_for_polygallery' app/views/events/_simple_form.html.haml:4:in `block in _app_views_events__simple_form_html_haml___3704389051711237409_70302917709840' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_with_haml' haml (4.0.5) lib/haml/helpers.rb:278:in `with_tabs' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block in form_for_with_haml' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:434:in `form_for' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:26:in `block in simple_form_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:45:in `with_simple_form_field_error_proc' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:25:in `simple_form_for' app/views/events/_simple_form.html.haml:1:in `_app_views_events__simple_form_html_haml___3704389051711237409_70302917709840' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:35:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' app/views/home/index.html.haml:17:in `_app_views_home_index_html_haml__27578153729267296_70302882743040' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.4) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.4) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.4) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.4) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.4) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70302897812960/variables" for 127.0.0.1 at 2015-03-20 14:03:33 -0600  (0.2ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (5.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:04:13 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 12ms RuntimeError - boom: /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:20:in `has_polyphotos' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:28:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:2:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:22:in `has_polygallery' app/models/event.rb:3:in `' app/models/event.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70115549219520/variables" for 127.0.0.1 at 2015-03-20 14:04:14 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 14:04:29 -0600 Processing by HomeController#index as HTML Rendered events/_simple_form.html.haml (28.2ms) Rendered home/index.html.haml within layouts/application (46.7ms) Completed 500 Internal Server Error in 56ms NoMethodError - undefined method `gallery' for #: activemodel (4.1.4) lib/active_model/attribute_methods.rb:435:in `method_missing' activerecord (4.1.4) lib/active_record/attribute_methods.rb:208:in `method_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/view_helpers.rb:16:in `simple_fields_for_polygallery' app/views/events/_simple_form.html.haml:4:in `block in _app_views_events__simple_form_html_haml___3976796469624449792_70115567066360' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_with_haml' haml (4.0.5) lib/haml/helpers.rb:278:in `with_tabs' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block in form_for_with_haml' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:434:in `form_for' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:26:in `block in simple_form_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:45:in `with_simple_form_field_error_proc' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:25:in `simple_form_for' app/views/events/_simple_form.html.haml:1:in `_app_views_events__simple_form_html_haml___3976796469624449792_70115567066360' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:35:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' app/views/home/index.html.haml:17:in `_app_views_home_index_html_haml___2656972481747638657_70115509653440' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.4) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.4) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.4) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.4) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.4) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70115516997140/variables" for 127.0.0.1 at 2015-03-20 14:04:29 -0600  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:04:47 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 16ms NoMethodError - undefined method `to_hash' for #: /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:19:in `has_polyphotos' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:28:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:2:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:22:in `has_polygallery' app/models/event.rb:3:in `' app/models/event.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70340352648760/variables" for 127.0.0.1 at 2015-03-20 14:04:47 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (5.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 14:05:03 -0600 Processing by HomeController#index as HTML Rendered events/_simple_form.html.haml (31.4ms) Rendered home/index.html.haml within layouts/application (49.3ms) Completed 500 Internal Server Error in 59ms NoMethodError - undefined method `gallery' for #: activemodel (4.1.4) lib/active_model/attribute_methods.rb:435:in `method_missing' activerecord (4.1.4) lib/active_record/attribute_methods.rb:208:in `method_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/view_helpers.rb:16:in `simple_fields_for_polygallery' app/views/events/_simple_form.html.haml:4:in `block in _app_views_events__simple_form_html_haml__423796867147615853_70340351685040' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_with_haml' haml (4.0.5) lib/haml/helpers.rb:278:in `with_tabs' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block in form_for_with_haml' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:434:in `form_for' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:26:in `block in simple_form_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:45:in `with_simple_form_field_error_proc' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:25:in `simple_form_for' app/views/events/_simple_form.html.haml:1:in `_app_views_events__simple_form_html_haml__423796867147615853_70340351685040' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:35:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' app/views/home/index.html.haml:17:in `_app_views_home_index_html_haml__971347107401003557_70340370968680' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.4) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.4) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.4) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.4) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.4) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70340370295860/variables" for 127.0.0.1 at 2015-03-20 14:05:03 -0600  (0.2ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (10.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:05:30 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 13ms RuntimeError - boom: /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:20:in `has_polyphotos' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:28:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:2:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:22:in `has_polygallery' app/models/event.rb:3:in `' app/models/event.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70176996944620/variables" for 127.0.0.1 at 2015-03-20 14:05:30 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 14:05:45 -0600 Processing by HomeController#index as HTML Rendered events/_simple_form.html.haml (27.4ms) Rendered home/index.html.haml within layouts/application (45.3ms) Completed 500 Internal Server Error in 54ms NoMethodError - undefined method `gallery' for #: activemodel (4.1.4) lib/active_model/attribute_methods.rb:435:in `method_missing' activerecord (4.1.4) lib/active_record/attribute_methods.rb:208:in `method_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/view_helpers.rb:16:in `simple_fields_for_polygallery' app/views/events/_simple_form.html.haml:4:in `block in _app_views_events__simple_form_html_haml___3970995033981612048_70176951815720' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_with_haml' haml (4.0.5) lib/haml/helpers.rb:278:in `with_tabs' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block in form_for_with_haml' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:434:in `form_for' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:26:in `block in simple_form_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:45:in `with_simple_form_field_error_proc' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:25:in `simple_form_for' app/views/events/_simple_form.html.haml:1:in `_app_views_events__simple_form_html_haml___3970995033981612048_70176951815720' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:35:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' app/views/home/index.html.haml:17:in `_app_views_home_index_html_haml___3178453547637646606_70176960522540' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.4) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.4) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.4) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.4) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.4) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70176962983460/variables" for 127.0.0.1 at 2015-03-20 14:05:45 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (52.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (28.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:07:37 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 10ms RuntimeError - boom: /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:20:in `has_polyphotos' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:28:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:2:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:22:in `has_polygallery' app/models/event.rb:3:in `' app/models/event.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70117456866600/variables" for 127.0.0.1 at 2015-03-20 14:07:38 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:08:15 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 9ms RuntimeError - boom: /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:20:in `has_polyphotos' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:28:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:2:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:22:in `has_polygallery' app/models/event.rb:3:in `' app/models/event.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70318772381820/variables" for 127.0.0.1 at 2015-03-20 14:08:15 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:08:46 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 9ms RuntimeError - boom: /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:20:in `has_polyphotos' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:28:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:2:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:22:in `has_polygallery' app/models/event.rb:3:in `' app/models/event.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70152591026220/variables" for 127.0.0.1 at 2015-03-20 14:08:46 -0600  (0.6ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:09:22 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 11ms RuntimeError - boom: /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:20:in `has_polyphotos' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:28:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:2:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:22:in `has_polygallery' app/models/event.rb:3:in `' app/models/event.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70282192120280/variables" for 127.0.0.1 at 2015-03-20 14:09:22 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.5ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:09:48 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 14ms NoMethodError - undefined method `debug' for #: activerecord (4.1.4) lib/active_record/dynamic_matchers.rb:26:in `method_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:19:in `has_polyphotos' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:28:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:2:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:22:in `has_polygallery' app/models/event.rb:3:in `' app/models/event.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70168966244620/variables" for 127.0.0.1 at 2015-03-20 14:09:48 -0600 Started POST "/__better_errors/70168966244620/eval" for 127.0.0.1 at 2015-03-20 14:09:55 -0600 Started POST "/__better_errors/70168966244620/eval" for 127.0.0.1 at 2015-03-20 14:09:58 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (36.5ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:10:59 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 21ms NameError - uninitialized constant Polygallery::Gallery::Galleryable: activerecord (4.1.4) lib/active_record/inheritance.rb:133:in `compute_type' activerecord (4.1.4) lib/active_record/reflection.rb:221:in `klass' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:19:in `block in has_polyphotos' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:19:in `has_polyphotos' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:28:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:2:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:22:in `has_polygallery' app/models/event.rb:3:in `' app/models/event.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70310098079820/variables" for 127.0.0.1 at 2015-03-20 14:10:59 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (25.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:11:34 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 17ms NameError - uninitialized constant Polygallery::Gallery::Galleryable: activerecord (4.1.4) lib/active_record/inheritance.rb:133:in `compute_type' activerecord (4.1.4) lib/active_record/reflection.rb:221:in `klass' activerecord (4.1.4) lib/active_record/reflection.rb:247:in `table_name' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:19:in `block in has_polyphotos' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:19:in `has_polyphotos' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:28:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:2:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:22:in `has_polygallery' app/models/event.rb:3:in `' app/models/event.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70362894241660/variables" for 127.0.0.1 at 2015-03-20 14:11:34 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (36.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:13:39 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 9ms NoMethodError - undefined method `[]' for nil:NilClass: /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:21:in `has_polyphotos' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:28:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:2:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:22:in `has_polygallery' app/models/event.rb:3:in `' app/models/event.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70236200895980/variables" for 127.0.0.1 at 2015-03-20 14:13:39 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 14:13:54 -0600 Processing by HomeController#index as HTML Rendered events/_simple_form.html.haml (54.2ms) Rendered home/index.html.haml within layouts/application (77.5ms) Completed 500 Internal Server Error in 89ms NoMethodError - undefined method `gallery' for #: activemodel (4.1.4) lib/active_model/attribute_methods.rb:435:in `method_missing' activerecord (4.1.4) lib/active_record/attribute_methods.rb:208:in `method_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/view_helpers.rb:16:in `simple_fields_for_polygallery' app/views/events/_simple_form.html.haml:4:in `block in _app_views_events__simple_form_html_haml__1451090680839564312_70236185097520' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_with_haml' haml (4.0.5) lib/haml/helpers.rb:278:in `with_tabs' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block in form_for_with_haml' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:434:in `form_for' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:26:in `block in simple_form_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:45:in `with_simple_form_field_error_proc' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:25:in `simple_form_for' app/views/events/_simple_form.html.haml:1:in `_app_views_events__simple_form_html_haml__1451090680839564312_70236185097520' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:35:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' app/views/home/index.html.haml:17:in `_app_views_home_index_html_haml___3083444621107736078_70236185913500' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.4) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.4) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.4) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.4) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.4) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70236142752900/variables" for 127.0.0.1 at 2015-03-20 14:13:54 -0600  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (53.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:14:16 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 12ms NoMethodError - undefined method `[]' for nil:NilClass: /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:21:in `has_polyphotos' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:28:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:2:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:22:in `has_polygallery' app/models/event.rb:3:in `' app/models/event.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70200252392840/variables" for 127.0.0.1 at 2015-03-20 14:14:17 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:14:52 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 80ms RuntimeError - boom: /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:50:in `do_something' activesupport (4.1.4) lib/active_support/callbacks.rb:424:in `block in make_lambda' activesupport (4.1.4) lib/active_support/callbacks.rb:221:in `block in halting_and_conditional' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' activerecord (4.1.4) lib/active_record/core.rb:201:in `initialize' activerecord (4.1.4) lib/active_record/inheritance.rb:30:in `new' activerecord (4.1.4) lib/active_record/reflection.rb:239:in `build_association' activerecord (4.1.4) lib/active_record/associations/association.rb:247:in `build_record' activerecord (4.1.4) lib/active_record/associations/singular_association.rb:29:in `build' activerecord (4.1.4) lib/active_record/associations/builder/singular_association.rb:18:in `build_gallery' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:37:in `block in has_polygallery' activesupport (4.1.4) lib/active_support/callbacks.rb:438:in `block in make_lambda' activesupport (4.1.4) lib/active_support/callbacks.rb:221:in `block in halting_and_conditional' activesupport (4.1.4) lib/active_support/callbacks.rb:215:in `block in halting_and_conditional' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' activerecord (4.1.4) lib/active_record/core.rb:201:in `initialize' activerecord (4.1.4) lib/active_record/inheritance.rb:30:in `new' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70188663043180/variables" for 127.0.0.1 at 2015-03-20 14:14:52 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:15:54 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 66ms RuntimeError - boom: /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:50:in `do_something' activesupport (4.1.4) lib/active_support/callbacks.rb:424:in `block in make_lambda' activesupport (4.1.4) lib/active_support/callbacks.rb:221:in `block in halting_and_conditional' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' activerecord (4.1.4) lib/active_record/core.rb:201:in `initialize' activerecord (4.1.4) lib/active_record/inheritance.rb:30:in `new' activerecord (4.1.4) lib/active_record/reflection.rb:239:in `build_association' activerecord (4.1.4) lib/active_record/associations/association.rb:247:in `build_record' activerecord (4.1.4) lib/active_record/associations/singular_association.rb:29:in `build' activerecord (4.1.4) lib/active_record/associations/builder/singular_association.rb:18:in `build_gallery' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:37:in `block in has_polygallery' activesupport (4.1.4) lib/active_support/callbacks.rb:438:in `block in make_lambda' activesupport (4.1.4) lib/active_support/callbacks.rb:221:in `block in halting_and_conditional' activesupport (4.1.4) lib/active_support/callbacks.rb:215:in `block in halting_and_conditional' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' activerecord (4.1.4) lib/active_record/core.rb:201:in `initialize' activerecord (4.1.4) lib/active_record/inheritance.rb:30:in `new' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70142103821200/variables" for 127.0.0.1 at 2015-03-20 14:15:54 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.5ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:16:40 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 68ms RuntimeError - NilClass: /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:50:in `do_something' activesupport (4.1.4) lib/active_support/callbacks.rb:424:in `block in make_lambda' activesupport (4.1.4) lib/active_support/callbacks.rb:221:in `block in halting_and_conditional' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' activerecord (4.1.4) lib/active_record/core.rb:201:in `initialize' activerecord (4.1.4) lib/active_record/inheritance.rb:30:in `new' activerecord (4.1.4) lib/active_record/reflection.rb:239:in `build_association' activerecord (4.1.4) lib/active_record/associations/association.rb:247:in `build_record' activerecord (4.1.4) lib/active_record/associations/singular_association.rb:29:in `build' activerecord (4.1.4) lib/active_record/associations/builder/singular_association.rb:18:in `build_gallery' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:37:in `block in has_polygallery' activesupport (4.1.4) lib/active_support/callbacks.rb:438:in `block in make_lambda' activesupport (4.1.4) lib/active_support/callbacks.rb:221:in `block in halting_and_conditional' activesupport (4.1.4) lib/active_support/callbacks.rb:215:in `block in halting_and_conditional' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' activerecord (4.1.4) lib/active_record/core.rb:201:in `initialize' activerecord (4.1.4) lib/active_record/inheritance.rb:30:in `new' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70246297106820/variables" for 127.0.0.1 at 2015-03-20 14:16:40 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:17:07 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 19ms NoMethodError - undefined method `after_build' for #: activerecord (4.1.4) lib/active_record/dynamic_matchers.rb:26:in `method_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:31:in `has_polyphotos' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:28:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:2:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:22:in `has_polygallery' app/models/event.rb:3:in `' app/models/event.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70277477630800/variables" for 127.0.0.1 at 2015-03-20 14:17:07 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.5ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:17:34 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 75ms RuntimeError - Event: /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:50:in `do_something' activesupport (4.1.4) lib/active_support/callbacks.rb:424:in `block in make_lambda' activesupport (4.1.4) lib/active_support/callbacks.rb:221:in `block in halting_and_conditional' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' activerecord (4.1.4) lib/active_record/core.rb:201:in `initialize' activerecord (4.1.4) lib/active_record/inheritance.rb:30:in `new' activerecord (4.1.4) lib/active_record/reflection.rb:239:in `build_association' activerecord (4.1.4) lib/active_record/associations/association.rb:247:in `build_record' activerecord (4.1.4) lib/active_record/associations/singular_association.rb:29:in `build' activerecord (4.1.4) lib/active_record/associations/builder/singular_association.rb:18:in `build_gallery' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:37:in `block in has_polygallery' activesupport (4.1.4) lib/active_support/callbacks.rb:438:in `block in make_lambda' activesupport (4.1.4) lib/active_support/callbacks.rb:221:in `block in halting_and_conditional' activesupport (4.1.4) lib/active_support/callbacks.rb:215:in `block in halting_and_conditional' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' activerecord (4.1.4) lib/active_record/core.rb:201:in `initialize' activerecord (4.1.4) lib/active_record/inheritance.rb:30:in `new' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70224357661780/variables" for 127.0.0.1 at 2015-03-20 14:17:34 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:19:40 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (13.8ms) Rendered events/_simple_form.html.haml (62.6ms) Rendered home/index.html.haml within layouts/application (82.2ms) Completed 500 Internal Server Error in 160ms RuntimeError - Association Polygallery::Photo doesn't exist on Polygallery::Gallery: cocoon (1.2.6) lib/cocoon/view_helpers.rb:122:in `create_object_on_non_association' cocoon (1.2.6) lib/cocoon/view_helpers.rb:110:in `create_object' cocoon (1.2.6) lib/cocoon/view_helpers.rb:92:in `link_to_add_association' /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml:6:in `block in ___sers_smit______ites_polygallery_app_views_polygallery_galleries__simple_fields_for_html_haml__1376359777549195727_70244797912720' haml (4.0.5) lib/haml/helpers.rb:368:in `block in capture_haml' haml (4.0.5) lib/haml/helpers.rb:608:in `with_haml_buffer' haml (4.0.5) lib/haml/helpers.rb:364:in `capture_haml' haml (4.0.5) lib/haml/helpers/xss_mods.rb:61:in `capture_haml_with_haml_xss' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:45:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1860:in `block in fields_for_nested_model' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:699:in `fields_for' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1859:in `fields_for_nested_model' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1849:in `fields_for_with_nested_attributes' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1517:in `fields_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/builder.rb:27:in `simple_fields_for' /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml:1:in `___sers_smit______ites_polygallery_app_views_polygallery_galleries__simple_fields_for_html_haml__1376359777549195727_70244797912720' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/renderer/renderer.rb:21:in `render' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:32:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' /Users/smit1625/Sites/polygallery/lib/polygallery/view_helpers.rb:17:in `simple_fields_for_polygallery' app/views/events/_simple_form.html.haml:4:in `block in _app_views_events__simple_form_html_haml__2227000479833826713_70244816230780' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_with_haml' haml (4.0.5) lib/haml/helpers.rb:278:in `with_tabs' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block in form_for_with_haml' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:434:in `form_for' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:26:in `block in simple_form_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:45:in `with_simple_form_field_error_proc' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:25:in `simple_form_for' app/views/events/_simple_form.html.haml:1:in `_app_views_events__simple_form_html_haml__2227000479833826713_70244816230780' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:35:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' app/views/home/index.html.haml:17:in `_app_views_home_index_html_haml___2811757985473349866_70244815900620' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.4) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.4) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.4) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.4) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.4) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70244819308200/variables" for 127.0.0.1 at 2015-03-20 14:19:40 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (21.8ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (8.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:21:31 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (12.8ms) Rendered events/_simple_form.html.haml (55.2ms) Rendered home/index.html.haml within layouts/application (75.9ms) Completed 500 Internal Server Error in 183ms RuntimeError - Association Polygallery::Photo doesn't exist on Polygallery::Gallery: cocoon (1.2.6) lib/cocoon/view_helpers.rb:122:in `create_object_on_non_association' cocoon (1.2.6) lib/cocoon/view_helpers.rb:110:in `create_object' cocoon (1.2.6) lib/cocoon/view_helpers.rb:92:in `link_to_add_association' /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml:6:in `block in ___sers_smit______ites_polygallery_app_views_polygallery_galleries__simple_fields_for_html_haml__925481607423401261_70115041588860' haml (4.0.5) lib/haml/helpers.rb:368:in `block in capture_haml' haml (4.0.5) lib/haml/helpers.rb:608:in `with_haml_buffer' haml (4.0.5) lib/haml/helpers.rb:364:in `capture_haml' haml (4.0.5) lib/haml/helpers/xss_mods.rb:61:in `capture_haml_with_haml_xss' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:45:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1860:in `block in fields_for_nested_model' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:699:in `fields_for' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1859:in `fields_for_nested_model' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1849:in `fields_for_with_nested_attributes' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1517:in `fields_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/builder.rb:27:in `simple_fields_for' /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml:1:in `___sers_smit______ites_polygallery_app_views_polygallery_galleries__simple_fields_for_html_haml__925481607423401261_70115041588860' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/renderer/renderer.rb:21:in `render' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:32:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' /Users/smit1625/Sites/polygallery/lib/polygallery/view_helpers.rb:17:in `simple_fields_for_polygallery' app/views/events/_simple_form.html.haml:4:in `block in _app_views_events__simple_form_html_haml__2163041336401186875_70114990479660' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_with_haml' haml (4.0.5) lib/haml/helpers.rb:278:in `with_tabs' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block in form_for_with_haml' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:434:in `form_for' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:26:in `block in simple_form_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:45:in `with_simple_form_field_error_proc' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:25:in `simple_form_for' app/views/events/_simple_form.html.haml:1:in `_app_views_events__simple_form_html_haml__2163041336401186875_70114990479660' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:35:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' app/views/home/index.html.haml:17:in `_app_views_home_index_html_haml__4283446492600670911_70115040579360' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.4) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.4) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.4) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.4) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.4) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70115041963680/variables" for 127.0.0.1 at 2015-03-20 14:21:31 -0600 Started POST "/__better_errors/70115041963680/variables" for 127.0.0.1 at 2015-03-20 14:21:46 -0600  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:22:01 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (12.3ms) Rendered events/_simple_form.html.haml (53.2ms) Rendered home/index.html.haml within layouts/application (72.2ms) Completed 500 Internal Server Error in 165ms NoMethodError - undefined method `polygallery_settings' for #: activemodel (4.1.4) lib/active_model/attribute_methods.rb:435:in `method_missing' activerecord (4.1.4) lib/active_record/attribute_methods.rb:208:in `method_missing' /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml:6:in `block in ___sers_smit______ites_polygallery_app_views_polygallery_galleries__simple_fields_for_html_haml___4422551690065886601_70276075410360' haml (4.0.5) lib/haml/helpers.rb:368:in `block in capture_haml' haml (4.0.5) lib/haml/helpers.rb:608:in `with_haml_buffer' haml (4.0.5) lib/haml/helpers.rb:364:in `capture_haml' haml (4.0.5) lib/haml/helpers/xss_mods.rb:61:in `capture_haml_with_haml_xss' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:45:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1860:in `block in fields_for_nested_model' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:699:in `fields_for' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1859:in `fields_for_nested_model' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1849:in `fields_for_with_nested_attributes' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1517:in `fields_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/builder.rb:27:in `simple_fields_for' /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml:1:in `___sers_smit______ites_polygallery_app_views_polygallery_galleries__simple_fields_for_html_haml___4422551690065886601_70276075410360' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/renderer/renderer.rb:21:in `render' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:32:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' /Users/smit1625/Sites/polygallery/lib/polygallery/view_helpers.rb:17:in `simple_fields_for_polygallery' app/views/events/_simple_form.html.haml:4:in `block in _app_views_events__simple_form_html_haml__2843556488909593947_70276027636440' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_with_haml' haml (4.0.5) lib/haml/helpers.rb:278:in `with_tabs' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block in form_for_with_haml' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:434:in `form_for' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:26:in `block in simple_form_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:45:in `with_simple_form_field_error_proc' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:25:in `simple_form_for' app/views/events/_simple_form.html.haml:1:in `_app_views_events__simple_form_html_haml__2843556488909593947_70276027636440' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:35:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' app/views/home/index.html.haml:17:in `_app_views_home_index_html_haml__1898194945924001667_70276062014300' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.4) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.4) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.4) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.4) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.4) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70276075594500/variables" for 127.0.0.1 at 2015-03-20 14:22:02 -0600  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:22:28 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (13.3ms) Rendered events/_simple_form.html.haml (44.0ms) Rendered home/index.html.haml within layouts/application (62.4ms) Completed 500 Internal Server Error in 144ms RuntimeError - Association Polygallery::Photo doesn't exist on Polygallery::Gallery: cocoon (1.2.6) lib/cocoon/view_helpers.rb:122:in `create_object_on_non_association' cocoon (1.2.6) lib/cocoon/view_helpers.rb:110:in `create_object' cocoon (1.2.6) lib/cocoon/view_helpers.rb:92:in `link_to_add_association' /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml:6:in `block in ___sers_smit______ites_polygallery_app_views_polygallery_galleries__simple_fields_for_html_haml___3769873713409913740_70283196462600' haml (4.0.5) lib/haml/helpers.rb:368:in `block in capture_haml' haml (4.0.5) lib/haml/helpers.rb:608:in `with_haml_buffer' haml (4.0.5) lib/haml/helpers.rb:364:in `capture_haml' haml (4.0.5) lib/haml/helpers/xss_mods.rb:61:in `capture_haml_with_haml_xss' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:45:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1860:in `block in fields_for_nested_model' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:699:in `fields_for' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1859:in `fields_for_nested_model' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1849:in `fields_for_with_nested_attributes' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1517:in `fields_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/builder.rb:27:in `simple_fields_for' /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml:1:in `___sers_smit______ites_polygallery_app_views_polygallery_galleries__simple_fields_for_html_haml___3769873713409913740_70283196462600' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/renderer/renderer.rb:21:in `render' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:32:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' /Users/smit1625/Sites/polygallery/lib/polygallery/view_helpers.rb:17:in `simple_fields_for_polygallery' app/views/events/_simple_form.html.haml:4:in `block in _app_views_events__simple_form_html_haml___1553248420718814146_70283215886520' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_with_haml' haml (4.0.5) lib/haml/helpers.rb:278:in `with_tabs' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block in form_for_with_haml' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:434:in `form_for' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:26:in `block in simple_form_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:45:in `with_simple_form_field_error_proc' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:25:in `simple_form_for' app/views/events/_simple_form.html.haml:1:in `_app_views_events__simple_form_html_haml___1553248420718814146_70283215886520' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:35:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' app/views/home/index.html.haml:17:in `_app_views_home_index_html_haml__2239959134426335264_70283256565340' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.4) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.4) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.4) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.4) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.4) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70283216112820/variables" for 127.0.0.1 at 2015-03-20 14:22:28 -0600 Started POST "/__better_errors/70283216112820/variables" for 127.0.0.1 at 2015-03-20 14:22:42 -0600  (0.6ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.8ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.7ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (193.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:23:29 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (13.3ms) Rendered events/_simple_form.html.haml (90.9ms) Rendered home/index.html.haml within layouts/application (110.3ms) Completed 500 Internal Server Error in 200ms RuntimeError - Association Polygallery::Photo doesn't exist on Polygallery::Gallery: cocoon (1.2.6) lib/cocoon/view_helpers.rb:122:in `create_object_on_non_association' cocoon (1.2.6) lib/cocoon/view_helpers.rb:110:in `create_object' cocoon (1.2.6) lib/cocoon/view_helpers.rb:92:in `link_to_add_association' /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml:6:in `block in ___sers_smit______ites_polygallery_app_views_polygallery_galleries__simple_fields_for_html_haml___689673090916280797_70224108200920' haml (4.0.5) lib/haml/helpers.rb:368:in `block in capture_haml' haml (4.0.5) lib/haml/helpers.rb:608:in `with_haml_buffer' haml (4.0.5) lib/haml/helpers.rb:364:in `capture_haml' haml (4.0.5) lib/haml/helpers/xss_mods.rb:61:in `capture_haml_with_haml_xss' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:45:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1860:in `block in fields_for_nested_model' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:699:in `fields_for' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1859:in `fields_for_nested_model' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1849:in `fields_for_with_nested_attributes' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1517:in `fields_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/builder.rb:27:in `simple_fields_for' /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml:1:in `___sers_smit______ites_polygallery_app_views_polygallery_galleries__simple_fields_for_html_haml___689673090916280797_70224108200920' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/renderer/renderer.rb:21:in `render' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:32:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' /Users/smit1625/Sites/polygallery/lib/polygallery/view_helpers.rb:17:in `simple_fields_for_polygallery' app/views/events/_simple_form.html.haml:4:in `block in _app_views_events__simple_form_html_haml___4466649186330782216_70224150770440' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_with_haml' haml (4.0.5) lib/haml/helpers.rb:278:in `with_tabs' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block in form_for_with_haml' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:434:in `form_for' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:26:in `block in simple_form_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:45:in `with_simple_form_field_error_proc' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:25:in `simple_form_for' app/views/events/_simple_form.html.haml:1:in `_app_views_events__simple_form_html_haml___4466649186330782216_70224150770440' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:35:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' app/views/home/index.html.haml:17:in `_app_views_home_index_html_haml___4576768919995799943_70224151787780' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.4) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.4) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.4) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.4) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.4) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70224084516960/variables" for 127.0.0.1 at 2015-03-20 14:23:29 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:24:29 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 11ms ArgumentError - Unknown key: :association_name. Valid keys are: :class_name, :class, :foreign_key, :validate, :autosave, :table_name, :before_add, :after_add, :before_remove, :after_remove, :extend, :primary_key, :dependent, :as, :through, :source, :source_type, :inverse_of, :counter_cache, :join_table: activesupport (4.1.4) lib/active_support/core_ext/hash/keys.rb:71:in `block in assert_valid_keys' activesupport (4.1.4) lib/active_support/core_ext/hash/keys.rb:69:in `assert_valid_keys' activerecord (4.1.4) lib/active_record/associations/builder/association.rb:81:in `validate_options' activerecord (4.1.4) lib/active_record/associations/builder/association.rb:61:in `initialize' activerecord (4.1.4) lib/active_record/associations/builder/collection_association.rb:18:in `initialize' activerecord (4.1.4) lib/active_record/associations/builder/association.rb:46:in `create_builder' activerecord (4.1.4) lib/active_record/associations/builder/association.rb:35:in `build' activerecord (4.1.4) lib/active_record/associations.rb:1215:in `has_many' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:21:in `has_polyphotos' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:29:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:2:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:22:in `has_polygallery' app/models/event.rb:3:in `' app/models/event.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70338029204180/variables" for 127.0.0.1 at 2015-03-20 14:24:29 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:25:32 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 10ms ArgumentError - Unknown key: :association_name. Valid keys are: :class_name, :class, :foreign_key, :validate, :autosave, :table_name, :before_add, :after_add, :before_remove, :after_remove, :extend, :primary_key, :dependent, :as, :through, :source, :source_type, :inverse_of, :counter_cache, :join_table: activesupport (4.1.4) lib/active_support/core_ext/hash/keys.rb:71:in `block in assert_valid_keys' activesupport (4.1.4) lib/active_support/core_ext/hash/keys.rb:69:in `assert_valid_keys' activerecord (4.1.4) lib/active_record/associations/builder/association.rb:81:in `validate_options' activerecord (4.1.4) lib/active_record/associations/builder/association.rb:61:in `initialize' activerecord (4.1.4) lib/active_record/associations/builder/collection_association.rb:18:in `initialize' activerecord (4.1.4) lib/active_record/associations/builder/association.rb:46:in `create_builder' activerecord (4.1.4) lib/active_record/associations/builder/association.rb:35:in `build' activerecord (4.1.4) lib/active_record/associations.rb:1215:in `has_many' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:21:in `has_polyphotos' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:30:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:2:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:22:in `has_polygallery' app/models/event.rb:3:in `' app/models/event.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70106587181820/variables" for 127.0.0.1 at 2015-03-20 14:25:32 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:26:31 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 11ms ArgumentError - Unknown key: :association_name. Valid keys are: :class_name, :class, :foreign_key, :validate, :autosave, :table_name, :before_add, :after_add, :before_remove, :after_remove, :extend, :primary_key, :dependent, :as, :through, :source, :source_type, :inverse_of, :counter_cache, :join_table: activesupport (4.1.4) lib/active_support/core_ext/hash/keys.rb:71:in `block in assert_valid_keys' activesupport (4.1.4) lib/active_support/core_ext/hash/keys.rb:69:in `assert_valid_keys' activerecord (4.1.4) lib/active_record/associations/builder/association.rb:81:in `validate_options' activerecord (4.1.4) lib/active_record/associations/builder/association.rb:61:in `initialize' activerecord (4.1.4) lib/active_record/associations/builder/collection_association.rb:18:in `initialize' activerecord (4.1.4) lib/active_record/associations/builder/association.rb:46:in `create_builder' activerecord (4.1.4) lib/active_record/associations/builder/association.rb:35:in `build' activerecord (4.1.4) lib/active_record/associations.rb:1215:in `has_many' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polyphotos.rb:21:in `has_polyphotos' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:30:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:2:in `' /Users/smit1625/Sites/polygallery/app/models/polygallery/gallery.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' /Users/smit1625/Sites/polygallery/lib/polygallery/has_polygallery.rb:22:in `has_polygallery' app/models/event.rb:3:in `' app/models/event.rb:1:in `' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `block in require' activesupport (4.1.4) lib/active_support/dependencies.rb:232:in `load_dependency' activesupport (4.1.4) lib/active_support/dependencies.rb:247:in `require' activesupport (4.1.4) lib/active_support/dependencies.rb:348:in `require_or_load' activesupport (4.1.4) lib/active_support/dependencies.rb:480:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' activesupport (4.1.4) lib/active_support/dependencies.rb:512:in `load_missing_constant' activesupport (4.1.4) lib/active_support/dependencies.rb:180:in `const_missing' app/controllers/home_controller.rb:4:in `index' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70192728675060/variables" for 127.0.0.1 at 2015-03-20 14:26:31 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:27:02 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (12.4ms) Rendered events/_simple_form.html.haml (54.5ms) Rendered home/index.html.haml within layouts/application (73.6ms) Completed 500 Internal Server Error in 161ms RuntimeError - Association doesn't exist on Polygallery::Gallery: cocoon (1.2.6) lib/cocoon/view_helpers.rb:122:in `create_object_on_non_association' cocoon (1.2.6) lib/cocoon/view_helpers.rb:110:in `create_object' cocoon (1.2.6) lib/cocoon/view_helpers.rb:92:in `link_to_add_association' /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml:6:in `block in ___sers_smit______ites_polygallery_app_views_polygallery_galleries__simple_fields_for_html_haml__1839631687379022678_70255887684700' haml (4.0.5) lib/haml/helpers.rb:368:in `block in capture_haml' haml (4.0.5) lib/haml/helpers.rb:608:in `with_haml_buffer' haml (4.0.5) lib/haml/helpers.rb:364:in `capture_haml' haml (4.0.5) lib/haml/helpers/xss_mods.rb:61:in `capture_haml_with_haml_xss' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:45:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1860:in `block in fields_for_nested_model' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:699:in `fields_for' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1859:in `fields_for_nested_model' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1849:in `fields_for_with_nested_attributes' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1517:in `fields_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/builder.rb:27:in `simple_fields_for' /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml:1:in `___sers_smit______ites_polygallery_app_views_polygallery_galleries__simple_fields_for_html_haml__1839631687379022678_70255887684700' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/renderer/renderer.rb:21:in `render' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:32:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' /Users/smit1625/Sites/polygallery/lib/polygallery/view_helpers.rb:17:in `simple_fields_for_polygallery' app/views/events/_simple_form.html.haml:4:in `block in _app_views_events__simple_form_html_haml___2996126187728626925_70255907805080' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_with_haml' haml (4.0.5) lib/haml/helpers.rb:278:in `with_tabs' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block in form_for_with_haml' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:434:in `form_for' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:26:in `block in simple_form_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:45:in `with_simple_form_field_error_proc' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:25:in `simple_form_for' app/views/events/_simple_form.html.haml:1:in `_app_views_events__simple_form_html_haml___2996126187728626925_70255907805080' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:35:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' app/views/home/index.html.haml:17:in `_app_views_home_index_html_haml___4421275760717003784_70255887060240' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.4) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.4) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.4) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.4) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.4) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70255895664200/variables" for 127.0.0.1 at 2015-03-20 14:27:03 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.5ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:27:28 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (25.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.2ms) Rendered events/_simple_form.html.haml (75.7ms) Rendered home/index.html.haml within layouts/application (95.0ms) Completed 500 Internal Server Error in 183ms NoMethodError - undefined method `[]' for nil:NilClass: /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml:6:in `block in ___sers_smit______ites_polygallery_app_views_polygallery_galleries__simple_fields_for_html_haml___709372467687221650_70274379453160' haml (4.0.5) lib/haml/helpers.rb:368:in `block in capture_haml' haml (4.0.5) lib/haml/helpers.rb:608:in `with_haml_buffer' haml (4.0.5) lib/haml/helpers.rb:364:in `capture_haml' haml (4.0.5) lib/haml/helpers/xss_mods.rb:61:in `capture_haml_with_haml_xss' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:45:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1860:in `block in fields_for_nested_model' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:699:in `fields_for' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1859:in `fields_for_nested_model' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1849:in `fields_for_with_nested_attributes' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:1517:in `fields_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/builder.rb:27:in `simple_fields_for' /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml:1:in `___sers_smit______ites_polygallery_app_views_polygallery_galleries__simple_fields_for_html_haml___709372467687221650_70274379453160' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/renderer/renderer.rb:21:in `render' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:32:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' /Users/smit1625/Sites/polygallery/lib/polygallery/view_helpers.rb:17:in `simple_fields_for_polygallery' app/views/events/_simple_form.html.haml:5:in `block in _app_views_events__simple_form_html_haml__4249142500133650725_70274415146600' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_with_haml' haml (4.0.5) lib/haml/helpers.rb:278:in `with_tabs' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:137:in `block in form_for_with_haml' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml' actionview (4.1.4) lib/action_view/helpers/form_helper.rb:434:in `form_for' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml' haml (4.0.5) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:26:in `block in simple_form_for' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:45:in `with_simple_form_field_error_proc' simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:25:in `simple_form_for' app/views/events/_simple_form.html.haml:1:in `_app_views_events__simple_form_html_haml__4249142500133650725_70274415146600' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:35:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' app/views/home/index.html.haml:17:in `_app_views_home_index_html_haml___4470287489115152078_70274422836220' actionview (4.1.4) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.4) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.4) lib/action_view/template.rb:339:in `instrument' actionview (4.1.4) lib/action_view/template.rb:143:in `render' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.4) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.4) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.4) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.4) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.4) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.4) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.4) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.4) lib/rails/engine.rb:514:in `call' railties (4.1.4) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/builder.rb:138:in `call' rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' rack (1.5.2) lib/rack/urlmap.rb:50:in `call' capybara (2.4.4) lib/capybara/server.rb:19:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /Users/smit1625/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Started POST "/__better_errors/70274416063820/variables" for 127.0.0.1 at 2015-03-20 14:27:28 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:29:30 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (22.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (10.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (71.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (28.7ms) Rendered events/_simple_form.html.haml (222.7ms) Rendered home/index.html.haml within layouts/application (286.4ms) Completed 500 Internal Server Error in 624ms  (1.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (5.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (5.6ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (241.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (2.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:31:03 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (22.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.1ms) Rendered events/_simple_form.html.haml (71.8ms) Rendered home/index.html.haml within layouts/application (119.0ms) Completed 500 Internal Server Error in 285ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:31:49 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (27.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.1ms) Rendered events/_simple_form.html.haml (147.7ms) Rendered home/index.html.haml within layouts/application (168.8ms) Completed 500 Internal Server Error in 259ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:46:32 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 46ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:47:58 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 10ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:49:25 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 3ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:49:56 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 45ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:50:15 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 42ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:50:43 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 40ms  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:51:18 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 41ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.5ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:51:51 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 46ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:52:23 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 3ms  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:52:52 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 4ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:53:28 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 56ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:54:25 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (10.0ms) Rendered events/_simple_form.html.haml (89.2ms) Rendered home/index.html.haml within layouts/application (109.7ms) Completed 500 Internal Server Error in 190ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:56:03 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.5ms) Rendered events/_simple_form.html.haml (51.3ms) Rendered home/index.html.haml within layouts/application (72.0ms) Completed 500 Internal Server Error in 150ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.5ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:56:30 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (22.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered events/_simple_form.html.haml (91.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.6ms) Rendered events/_form.html.haml (6.1ms) Rendered home/index.html.haml within layouts/application (116.7ms) Completed 200 OK in 233ms (Views: 170.4ms | ActiveRecord: 7.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 14:56:30 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 14:56:30 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 14:56:30 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 14:56:31 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Short Loin Meatloaf Boudin", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: photos_attributes  (0.2ms) BEGIN SQL (30.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 20:56:31.857950"], ["title", "Short Loin Meatloaf Boudin"], ["updated_at", "2015-03-20 20:56:31.857950"]] SQL (1.1ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 20:56:31.893791"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 20:56:31.893791"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 20:56:31.896461"], ["gallery_id", 1], ["updated_at", "2015-03-20 20:56:31.896461"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-20 20:56:31.898581"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 20:56:31.898581"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 20:56:31.899834"], ["gallery_id", 2], ["updated_at", "2015-03-20 20:56:31.899834"]]  (0.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 53ms (ActiveRecord: 34.1ms) Started GET "/" for 127.0.0.1 at 2015-03-20 14:56:31 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.1ms) Rendered events/_simple_form.html.haml (15.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.9ms) Rendered home/index.html.haml within layouts/application (18.4ms) Completed 200 OK in 30ms (Views: 20.1ms | ActiveRecord: 3.0ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (57.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:57:08 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (19.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.0ms) Rendered events/_simple_form.html.haml (86.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.4ms) Rendered events/_form.html.haml (5.8ms) Rendered home/index.html.haml within layouts/application (111.8ms) Completed 200 OK in 202ms (Views: 139.4ms | ActiveRecord: 7.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 14:57:08 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 14:57:08 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 14:57:08 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 14:57:19 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Flank Pancetta Capicola", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: photos_attributes  (0.2ms) BEGIN SQL (17.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 20:57:19.232177"], ["title", "Flank Pancetta Capicola"], ["updated_at", "2015-03-20 20:57:19.232177"]] SQL (15.8ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 20:57:19.255254"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 20:57:19.255254"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 20:57:19.272755"], ["gallery_id", 1], ["updated_at", "2015-03-20 20:57:19.272755"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-20 20:57:19.275088"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 20:57:19.275088"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 20:57:19.276503"], ["gallery_id", 2], ["updated_at", "2015-03-20 20:57:19.276503"]]  (0.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 56ms (ActiveRecord: 35.8ms) Started GET "/" for 127.0.0.1 at 2015-03-20 14:57:19 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.6ms) Rendered events/_simple_form.html.haml (16.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (18.7ms) Completed 200 OK in 30ms (Views: 20.2ms | ActiveRecord: 3.5ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.5ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 14:58:42 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (22.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.5ms) Rendered events/_simple_form.html.haml (107.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.4ms) Rendered events/_form.html.haml (5.2ms) Rendered home/index.html.haml within layouts/application (134.5ms) Completed 200 OK in 263ms (Views: 188.8ms | ActiveRecord: 7.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 14:58:42 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 14:58:42 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 14:58:42 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 14:58:53 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Landjaeger Pancetta Hamburger", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: photos_attributes  (0.2ms) BEGIN SQL (30.8ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 20:58:53.271842"], ["title", "Landjaeger Pancetta Hamburger"], ["updated_at", "2015-03-20 20:58:53.271842"]] SQL (1.1ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 20:58:53.307697"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 20:58:53.307697"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 20:58:53.310264"], ["gallery_id", 1], ["updated_at", "2015-03-20 20:58:53.310264"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-20 20:58:53.312761"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 20:58:53.312761"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 20:58:53.313934"], ["gallery_id", 2], ["updated_at", "2015-03-20 20:58:53.313934"]]  (0.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 54ms (ActiveRecord: 34.3ms) Started GET "/" for 127.0.0.1 at 2015-03-20 14:58:53 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.5ms) Rendered events/_simple_form.html.haml (15.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (17.9ms) Completed 200 OK in 29ms (Views: 19.3ms | ActiveRecord: 3.3ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.2ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 15:01:51 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (20.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.6ms) Rendered events/_simple_form.html.haml (53.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.6ms) Rendered home/index.html.haml within layouts/application (75.8ms) Completed 200 OK in 165ms (Views: 104.1ms | ActiveRecord: 7.9ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 15:01:52 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 15:01:52 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 15:01:52 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 15:02:03 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Fatback Pancetta Venison", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: photos_attributes  (0.2ms) BEGIN SQL (31.8ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 21:02:03.136225"], ["title", "Fatback Pancetta Venison"], ["updated_at", "2015-03-20 21:02:03.136225"]] SQL (1.1ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 21:02:03.173751"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 21:02:03.173751"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 21:02:03.176341"], ["gallery_id", 1], ["updated_at", "2015-03-20 21:02:03.176341"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-20 21:02:03.178720"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 21:02:03.178720"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 21:02:03.180162"], ["gallery_id", 2], ["updated_at", "2015-03-20 21:02:03.180162"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 57ms (ActiveRecord: 35.2ms) Started GET "/" for 127.0.0.1 at 2015-03-20 15:02:03 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.0ms) Rendered events/_simple_form.html.haml (17.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (19.4ms) Completed 200 OK in 31ms (Views: 20.8ms | ActiveRecord: 3.5ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.2ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (36.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 15:03:00 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.8ms) Rendered events/_simple_form.html.haml (105.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (5.2ms) Rendered home/index.html.haml within layouts/application (132.5ms) Completed 200 OK in 262ms (Views: 186.2ms | ActiveRecord: 7.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 15:03:00 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 15:03:00 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 15:03:00 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 15:03:01 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Filet Mignon Ground Round Chicken", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: photos_attributes  (0.2ms) BEGIN SQL (17.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 21:03:01.589425"], ["title", "Filet Mignon Ground Round Chicken"], ["updated_at", "2015-03-20 21:03:01.589425"]] SQL (16.0ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 21:03:01.611858"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 21:03:01.611858"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 21:03:01.629920"], ["gallery_id", 1], ["updated_at", "2015-03-20 21:03:01.629920"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-20 21:03:01.632261"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 21:03:01.632261"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 21:03:01.633501"], ["gallery_id", 2], ["updated_at", "2015-03-20 21:03:01.633501"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 61ms (ActiveRecord: 39.5ms) Started GET "/" for 127.0.0.1 at 2015-03-20 15:03:01 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.3ms) Rendered events/_simple_form.html.haml (15.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (18.0ms) Completed 200 OK in 26ms (Views: 19.8ms | ActiveRecord: 0.0ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.8ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (36.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 15:03:20 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (18.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.0ms) Rendered events/_simple_form.html.haml (49.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.0ms) Rendered events/_form.html.haml (4.2ms) Rendered home/index.html.haml within layouts/application (70.2ms) Completed 200 OK in 160ms (Views: 98.0ms | ActiveRecord: 7.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 15:03:20 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 15:03:20 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 15:03:20 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 15:03:21 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Pork Loin Meatball Cow", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: photos_attributes  (0.2ms) BEGIN SQL (0.9ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 21:03:21.213510"], ["title", "Pork Loin Meatball Cow"], ["updated_at", "2015-03-20 21:03:21.213510"]] SQL (0.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 21:03:21.219174"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 21:03:21.219174"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 21:03:21.221467"], ["gallery_id", 1], ["updated_at", "2015-03-20 21:03:21.221467"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-20 21:03:21.223443"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 21:03:21.223443"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 21:03:21.224772"], ["gallery_id", 2], ["updated_at", "2015-03-20 21:03:21.224772"]]  (0.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 25ms (ActiveRecord: 3.5ms) Started GET "/" for 127.0.0.1 at 2015-03-20 15:03:21 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.1ms) Rendered events/_simple_form.html.haml (15.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.2ms) Rendered home/index.html.haml within layouts/application (17.4ms) Completed 200 OK in 31ms (Views: 18.8ms | ActiveRecord: 3.7ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.7ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 15:03:56 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (20.7ms) Rendered events/_simple_form.html.haml (87.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (5.9ms) Rendered home/index.html.haml within layouts/application (114.9ms) Completed 200 OK in 245ms (Views: 172.0ms | ActiveRecord: 7.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 15:03:57 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 15:03:57 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 15:03:57 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 15:03:58 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Chicken Flank Leberkas", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-57966-1gw2hkq.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-57966-9fwob0.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-57966-9fwob0.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-57966-9fwob0.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-57966-9fwob020150320-57966-lpntfs' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-57966-9fwob020150320-57966-lpntfs' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-57966-9fwob0.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-57966-9fwob0.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-57966-9fwob0.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-57966-9fwob020150320-57966-1b56tzw' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-57966-9fwob020150320-57966-1b56tzw'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-57966-18pluka.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-57966-1d3ji9o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-57966-kuy0g3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-57966-cvo8i3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-57966-1j7xqvo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-57966-1uyrw2k.png' SQL (17.9ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 21:03:58.596128"], ["title", "Chicken Flank Leberkas"], ["updated_at", "2015-03-20 21:03:58.596128"]] SQL (11.1ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 21:03:58.620722"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 21:03:58.620722"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 21:03:58.633621"], ["gallery_id", 1], ["updated_at", "2015-03-20 21:03:58.633621"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-20 21:03:58.636265"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 21:03:58.636265"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-20 21:03:58.637546"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 21:03:58.081800"], ["updated_at", "2015-03-20 21:03:58.637546"]]  (15.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 647ms (ActiveRecord: 46.5ms) Started GET "/" for 127.0.0.1 at 2015-03-20 15:03:58 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (17.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (20.4ms) Completed 200 OK in 32ms (Views: 22.2ms | ActiveRecord: 2.9ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (36.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-20 15:04:10 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (18.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.8ms) Rendered events/_simple_form.html.haml (84.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.4ms) Rendered home/index.html.haml within layouts/application (105.4ms) Completed 200 OK in 189ms (Views: 130.6ms | ActiveRecord: 7.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-20 15:04:10 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-20 15:04:10 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-20 15:04:10 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-20 15:04:11 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Beef Ribs Shoulder Biltong", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 21:04:11.417668"], ["title", "Beef Ribs Shoulder Biltong"], ["updated_at", "2015-03-20 21:04:11.417668"]] SQL (0.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 21:04:11.422639"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 21:04:11.422639"]] SQL (0.6ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 21:04:11.424901"], ["gallery_id", 1], ["updated_at", "2015-03-20 21:04:11.424901"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-20 21:04:11.426933"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 21:04:11.426933"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 21:04:11.428290"], ["gallery_id", 2], ["updated_at", "2015-03-20 21:04:11.428290"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 22ms (ActiveRecord: 3.2ms) Started GET "/" for 127.0.0.1 at 2015-03-20 15:04:11 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (16.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (18.9ms) Completed 200 OK in 31ms (Views: 20.5ms | ActiveRecord: 3.4ms)  (0.6ms) SELECT COUNT(*) FROM "events"  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (8.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-20 15:04:11 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.3ms) Rendered events/_simple_form.html.haml (15.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (17.0ms) Completed 200 OK in 23ms (Views: 18.2ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-20 15:04:12 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Jerky Salami Flank", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-1di9ye5.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-29tujd.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-29tujd.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-29tujd.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-29tujd20150320-58013-2hy8tb' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-29tujd20150320-58013-2hy8tb' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-29tujd.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-29tujd.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-29tujd.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-29tujd20150320-58013-1il4yx3' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-29tujd20150320-58013-1il4yx3'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-1trnz64.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-1rwdwmh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-1sgg5n8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-b5weye.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-h96rrb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-fc3dpz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-yhzyxc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-xcacji.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-1n4za9p.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-ugg1n9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-1dc4xwz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-1ychwe3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-16xn6au.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-1601bmx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-q7jh4f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150320-58013-np6my7.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 21:04:12.834498"], ["title", "Jerky Salami Flank"], ["updated_at", "2015-03-20 21:04:12.834498"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-20 21:04:12.837696"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-20 21:04:12.837696"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-20 21:04:12.839716"], ["gallery_id", 1], ["updated_at", "2015-03-20 21:04:12.839716"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-20 21:04:12.841535"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-20 21:04:12.841535"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-20 21:04:12.842750"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-20 21:04:12.461372"], ["updated_at", "2015-03-20 21:04:12.842750"]]  (15.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 454ms (ActiveRecord: 18.1ms) Started GET "/" for 127.0.0.1 at 2015-03-20 15:04:12 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (13.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (18.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.7ms) Rendered events/_simple_form.html.haml (28.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (31.0ms) Completed 200 OK in 40ms (Views: 32.7ms | ActiveRecord: 1.2ms)  (0.9ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (29.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (16.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 10:55:33 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (9.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (26.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.9ms) Rendered events/_simple_form.html.haml (83.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (5.4ms) Rendered home/index.html.haml within layouts/application (112.4ms) Completed 200 OK in 272ms (Views: 169.8ms | ActiveRecord: 7.9ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 10:55:34 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 10:55:34 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 10:55:34 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 10:55:35 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Beef Pancetta Drumstick", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66726-1a8bv0z.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66726-173cveb.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66726-173cveb.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66726-173cveb.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66726-173cveb20150321-66726-6iyaaf' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66726-173cveb20150321-66726-6iyaaf' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66726-173cveb.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66726-173cveb.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66726-173cveb.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66726-173cveb20150321-66726-ckw2yq' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66726-173cveb20150321-66726-ckw2yq'  (15.9ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66726-1c3wo92.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66726-r71ghy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66726-arak3c.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66726-9qxgdc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66726-f8n8pv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66726-tqmgbl.png' SQL (45.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 16:55:35.745131"], ["title", "Beef Pancetta Drumstick"], ["updated_at", "2015-03-21 16:55:35.745131"]] SQL (1.0ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 16:55:35.796818"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 16:55:35.796818"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 16:55:35.799436"], ["gallery_id", 1], ["updated_at", "2015-03-21 16:55:35.799436"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 16:55:35.801775"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 16:55:35.801775"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 16:55:35.803055"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 16:55:35.242468"], ["updated_at", "2015-03-21 16:55:35.803055"]]  (16.3ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 637ms (ActiveRecord: 80.6ms) Started GET "/" for 127.0.0.1 at 2015-03-21 10:55:35 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered events/_simple_form.html.haml (17.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (20.2ms) Completed 200 OK in 34ms (Views: 21.9ms | ActiveRecord: 3.3ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (16.6ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (16.1ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (16.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (3.0ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (25.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (2.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (9.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 10:59:08 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.3ms) Rendered events/_simple_form.html.haml (72.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (5.3ms) Rendered home/index.html.haml within layouts/application (98.8ms) Completed 200 OK in 226ms (Views: 153.5ms | ActiveRecord: 7.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 10:59:09 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 10:59:09 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 10:59:09 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-21 10:59:09 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.6ms) Rendered events/_simple_form.html.haml (13.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (15.6ms) Completed 200 OK in 26ms (Views: 16.8ms | ActiveRecord: 3.1ms) Started POST "/events" for 127.0.0.1 at 2015-03-21 10:59:10 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Turducken Jowl Ham", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (16.3ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 16:59:10.263824"], ["title", "Turducken Jowl Ham"], ["updated_at", "2015-03-21 16:59:10.263824"]] SQL (15.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 16:59:10.285415"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 16:59:10.285415"]] SQL (0.6ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 16:59:10.302497"], ["gallery_id", 1], ["updated_at", "2015-03-21 16:59:10.302497"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 16:59:10.304685"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 16:59:10.304685"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 16:59:10.305965"], ["gallery_id", 2], ["updated_at", "2015-03-21 16:59:10.305965"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 59ms (ActiveRecord: 37.2ms) Started GET "/" for 127.0.0.1 at 2015-03-21 10:59:10 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.5ms) Rendered events/_simple_form.html.haml (15.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.4ms) Rendered events/_form.html.haml (1.8ms) Rendered home/index.html.haml within layouts/application (18.4ms) Completed 200 OK in 28ms (Views: 20.1ms | ActiveRecord: 1.3ms)  (0.8ms) SELECT COUNT(*) FROM "events"  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-21 10:59:10 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.8ms) Rendered events/_simple_form.html.haml (14.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (16.8ms) Completed 200 OK in 23ms (Views: 17.9ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-21 10:59:11 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Pork Loin Jerky Swine", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-74j9jr.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-q159hc.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-q159hc.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-q159hc.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-q159hc20150321-66820-8pnino' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-q159hc20150321-66820-8pnino' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-q159hc.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-q159hc.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-q159hc.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-q159hc20150321-66820-1dzjwka' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-q159hc20150321-66820-1dzjwka'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-eiie64.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-c37vhp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-1mzzz0h.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-1p6z4pw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-r925u0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-x75bq4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-1qsrym4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-1v8isf5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-pria5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-1vptf4i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-1akxcfp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-itqnbh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-1ovogbp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-1ot8iek.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-10d2c7y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-1tqvpb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-km9ez.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-nl3p3v.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-1ltnvpn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66820-10mt504.png' SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 16:59:11.885225"], ["title", "Pork Loin Jerky Swine"], ["updated_at", "2015-03-21 16:59:11.885225"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 16:59:11.888140"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 16:59:11.888140"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 16:59:11.889944"], ["gallery_id", 1], ["updated_at", "2015-03-21 16:59:11.889944"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 16:59:11.891904"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 16:59:11.891904"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 16:59:11.893154"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 16:59:11.417755"], ["updated_at", "2015-03-21 16:59:11.893154"]]  (16.4ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 548ms (ActiveRecord: 18.8ms) Started GET "/" for 127.0.0.1 at 2015-03-21 10:59:11 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.5ms) Rendered events/_simple_form.html.haml (16.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (19.1ms) Completed 200 OK in 27ms (Views: 20.7ms | ActiveRecord: 0.0ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.5ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (38.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 11:04:11 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (22.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (70.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (5.1ms) Rendered home/index.html.haml within layouts/application (97.3ms) Completed 200 OK in 224ms (Views: 152.2ms | ActiveRecord: 7.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 11:04:12 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 11:04:12 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 11:04:12 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 11:04:12 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Swine Kevin Pancetta", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (39.1ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 17:04:12.920244"], ["title", "Swine Kevin Pancetta"], ["updated_at", "2015-03-21 17:04:12.920244"]] SQL (41.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 17:04:12.974673"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 17:04:12.974673"]] SQL (8.7ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 17:04:13.017723"], ["gallery_id", 1], ["updated_at", "2015-03-21 17:04:13.017723"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 17:04:13.028075"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 17:04:13.028075"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 17:04:13.029637"], ["gallery_id", 2], ["updated_at", "2015-03-21 17:04:13.029637"]]  (6.1ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 129ms (ActiveRecord: 95.7ms) Started GET "/" for 127.0.0.1 at 2015-03-21 11:04:13 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.8ms) Rendered events/_simple_form.html.haml (15.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (17.6ms) Completed 200 OK in 29ms (Views: 19.1ms | ActiveRecord: 3.4ms)  (0.6ms) SELECT COUNT(*) FROM "events"  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.7ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-21 11:04:13 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.8ms) Rendered events/_simple_form.html.haml (15.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.8ms) Rendered home/index.html.haml within layouts/application (17.5ms) Completed 200 OK in 24ms (Views: 19.0ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-21 11:04:14 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Pork Meatball Jerky", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-1kf08rg.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-16u660l.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-16u660l.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-16u660l.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-16u660l20150321-66956-bt94b' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-16u660l20150321-66956-bt94b' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-16u660l.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-16u660l.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-16u660l.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-16u660l20150321-66956-1icdy34' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-16u660l20150321-66956-1icdy34'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-1hrvnit.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-2h7x8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-97x6zn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-11e68bx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-1wqg01d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-x7hpt1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-37anue.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-1c065eg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-g6sw5h.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-d8vpvd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-cq9olx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-ekqf6j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-u8ctey.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-xl0irz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-b2li0q.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-66956-tk3si.png' SQL (0.8ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 17:04:14.607430"], ["title", "Pork Meatball Jerky"], ["updated_at", "2015-03-21 17:04:14.607430"]] SQL (0.7ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 17:04:14.632512"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 17:04:14.632512"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 17:04:14.635766"], ["gallery_id", 1], ["updated_at", "2015-03-21 17:04:14.635766"]] SQL (21.0ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 17:04:14.638393"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 17:04:14.638393"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 17:04:14.660795"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 17:04:14.141177"], ["updated_at", "2015-03-21 17:04:14.660795"]]  (16.2ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 590ms (ActiveRecord: 61.1ms) Started GET "/" for 127.0.0.1 at 2015-03-21 11:04:14 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.8ms) Rendered events/_simple_form.html.haml (15.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (18.0ms) Completed 200 OK in 28ms (Views: 19.8ms | ActiveRecord: 1.3ms)  (0.9ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.7ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (36.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-21 11:04:16 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.4ms) Rendered events/_simple_form.html.haml (18.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.5ms) Rendered events/_form.html.haml (2.6ms) Rendered home/index.html.haml within layouts/application (21.8ms) Completed 200 OK in 30ms (Views: 23.4ms | ActiveRecord: 0.0ms)  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (64.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 11:05:33 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (18.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.0ms) Rendered events/_simple_form.html.haml (50.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.4ms) Rendered home/index.html.haml within layouts/application (73.3ms) Completed 200 OK in 160ms (Views: 101.2ms | ActiveRecord: 7.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 11:05:33 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 11:05:33 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 11:05:33 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 11:05:34 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Corned Beef Bresaola Beef Ribs", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.3ms) BEGIN SQL (0.9ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 17:05:34.359294"], ["title", "Corned Beef Bresaola Beef Ribs"], ["updated_at", "2015-03-21 17:05:34.359294"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 17:05:34.364803"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 17:05:34.364803"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 17:05:34.366695"], ["gallery_id", 1], ["updated_at", "2015-03-21 17:05:34.366695"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 17:05:34.368246"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 17:05:34.368246"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 17:05:34.369824"], ["gallery_id", 2], ["updated_at", "2015-03-21 17:05:34.369824"]]  (0.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 22ms (ActiveRecord: 3.4ms) Started GET "/" for 127.0.0.1 at 2015-03-21 11:05:34 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.0ms) Rendered events/_simple_form.html.haml (15.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (18.3ms) Completed 200 OK in 30ms (Views: 19.9ms | ActiveRecord: 3.3ms)  (0.6ms) SELECT COUNT(*) FROM "events"  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-21 11:05:34 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.6ms) Rendered events/_simple_form.html.haml (14.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (16.4ms) Completed 200 OK in 23ms (Views: 17.6ms | ActiveRecord: 0.0ms)  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (21.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-21 11:05:35 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.5ms) Rendered events/_simple_form.html.haml (15.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (17.5ms) Completed 200 OK in 26ms (Views: 18.7ms | ActiveRecord: 1.3ms) Started POST "/events" for 127.0.0.1 at 2015-03-21 11:05:35 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Swine Shoulder Corned Beef", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-r6zddq.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-1tfb19p.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-1tfb19p.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-1tfb19p.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-1tfb19p20150321-67027-jv9cm4' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-1tfb19p20150321-67027-jv9cm4' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-1tfb19p.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-1tfb19p.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-1tfb19p.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-1tfb19p20150321-67027-vrd705' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-1tfb19p20150321-67027-vrd705'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-lgflio.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-1cdbtmp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-16fw2lh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-1y7qidd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-ryxnxg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-1xv4cam.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-1wue73r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-yojc0p.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-kyy30.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-1j81smq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-19cjn82.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-1kqbw4e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-lmc1a9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-kb5uhi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-1p5hie8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-letrgo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-8zjfdm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-4fp5br.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-1pgqt28.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-67027-15uq0t2.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 17:05:36.201573"], ["title", "Swine Shoulder Corned Beef"], ["updated_at", "2015-03-21 17:05:36.201573"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 17:05:36.203890"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 17:05:36.203890"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 17:05:36.205458"], ["gallery_id", 1], ["updated_at", "2015-03-21 17:05:36.205458"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 17:05:36.206891"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 17:05:36.206891"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 17:05:36.208165"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 17:05:35.790276"], ["updated_at", "2015-03-21 17:05:36.208165"]]  (16.3ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 489ms (ActiveRecord: 18.7ms) Started GET "/" for 127.0.0.1 at 2015-03-21 11:05:36 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.1ms) Rendered events/_simple_form.html.haml (18.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (21.0ms) Completed 200 OK in 32ms (Views: 22.8ms | ActiveRecord: 2.1ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.5ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 11:10:25 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 12ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:02:24 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (22.1ms) Rendered events/_simple_form.html.haml (103.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (5.0ms) Rendered home/index.html.haml within layouts/application (129.6ms) Completed 200 OK in 270ms (Views: 195.9ms | ActiveRecord: 7.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 12:02:24 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 12:02:24 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 12:02:24 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 12:02:25 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Hamburger Filet Mignon Jowl", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69107-tw5su0.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69107-3rnskm.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69107-3rnskm.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69107-3rnskm.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69107-3rnskm20150321-69107-1usa7v0' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69107-3rnskm20150321-69107-1usa7v0' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69107-3rnskm.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69107-3rnskm.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69107-3rnskm.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69107-3rnskm20150321-69107-1f8oia1' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69107-3rnskm20150321-69107-1f8oia1'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69107-1kvla7a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69107-r36yjy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69107-rhd5eh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69107-1d2mh6s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69107-1j83cn8.png' SQL (17.9ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:02:25.979927"], ["title", "Hamburger Filet Mignon Jowl"], ["updated_at", "2015-03-21 18:02:25.979927"]] SQL (15.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 18:02:26.004076"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 18:02:26.004076"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 18:02:26.021348"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 18:02:25.618248"], ["updated_at", "2015-03-21 18:02:26.021348"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 18:02:26.035459"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 18:02:26.035459"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:02:26.036990"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:02:26.036990"]]  (15.7ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 471ms (ActiveRecord: 51.1ms) Started GET "/" for 127.0.0.1 at 2015-03-21 12:02:26 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.0ms) Rendered events/_simple_form.html.haml (10.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (13.2ms) Completed 200 OK in 36ms (Views: 14.8ms | ActiveRecord: 2.9ms)  (0.8ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.8ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:05:09 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (22.1ms) Rendered events/_simple_form.html.haml (100.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (5.7ms) Rendered home/index.html.haml within layouts/application (127.8ms) Completed 200 OK in 307ms (Views: 183.2ms | ActiveRecord: 8.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 12:05:09 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 12:05:09 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 12:05:09 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 12:05:10 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Tongue Ham Hock Bacon", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69192-istjmq.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69192-10fr9ih.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69192-10fr9ih.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69192-10fr9ih.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69192-10fr9ih20150321-69192-7hlyav' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69192-10fr9ih20150321-69192-7hlyav' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69192-10fr9ih.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69192-10fr9ih.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69192-10fr9ih.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69192-10fr9ih20150321-69192-1vqe7kv' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69192-10fr9ih20150321-69192-1vqe7kv'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69192-msdox.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69192-khecih.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69192-gi2y61.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69192-9etn9a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69192-1l5i74e.png' SQL (19.4ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:05:11.258375"], ["title", "Tongue Ham Hock Bacon"], ["updated_at", "2015-03-21 18:05:11.258375"]] SQL (1.1ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 18:05:11.325925"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 18:05:11.325925"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 18:05:11.328892"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 18:05:10.881545"], ["updated_at", "2015-03-21 18:05:11.328892"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 18:05:11.342396"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 18:05:11.342396"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:05:11.344204"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:05:11.344204"]]  (15.9ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 526ms (ActiveRecord: 79.6ms) Started GET "/" for 127.0.0.1 at 2015-03-21 12:05:11 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.9ms) Rendered events/_simple_form.html.haml (10.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (13.4ms) Completed 200 OK in 37ms (Views: 15.1ms | ActiveRecord: 3.0ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.9ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:05:42 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.4ms) Rendered events/_simple_form.html.haml (36.9ms) Rendered home/index.html.haml within layouts/application (53.5ms) Completed 500 Internal Server Error in 119ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:06:45 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.4ms) Rendered events/_simple_form.html.haml (70.3ms) Rendered home/index.html.haml within layouts/application (86.7ms) Completed 500 Internal Server Error in 150ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.5ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:07:34 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (19.6ms) Rendered events/_simple_form.html.haml (81.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.0ms) Rendered events/_form.html.haml (4.0ms) Rendered home/index.html.haml within layouts/application (102.0ms) Completed 200 OK in 187ms (Views: 128.0ms | ActiveRecord: 7.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 12:07:34 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 12:07:34 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 12:07:34 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 12:07:35 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Rump Filet Mignon Strip Steak", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69314-1hcldc.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69314-1x4885h.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69314-1x4885h.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69314-1x4885h.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69314-1x4885h20150321-69314-1lb4olo' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69314-1x4885h20150321-69314-1lb4olo' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69314-1x4885h.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69314-1x4885h.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69314-1x4885h.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69314-1x4885h20150321-69314-15bv6ca' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69314-1x4885h20150321-69314-15bv6ca'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69314-1rb5v9y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69314-7zt14x.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69314-1csilxp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69314-1q5pekz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69314-94dacu.png' SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:07:36.187535"], ["title", "Rump Filet Mignon Strip Steak"], ["updated_at", "2015-03-21 18:07:36.187535"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 18:07:36.193044"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 18:07:36.193044"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 18:07:36.194846"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 18:07:35.901445"], ["updated_at", "2015-03-21 18:07:36.194846"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 18:07:36.207040"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 18:07:36.207040"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:07:36.208485"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:07:36.208485"]]  (16.0ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 360ms (ActiveRecord: 18.4ms) Started GET "/" for 127.0.0.1 at 2015-03-21 12:07:36 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered events/_simple_form.html.haml (11.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (13.7ms) Completed 200 OK in 37ms (Views: 15.3ms | ActiveRecord: 2.9ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (36.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:08:23 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (19.6ms) Rendered events/_simple_form.html.haml (80.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (4.4ms) Rendered home/index.html.haml within layouts/application (101.3ms) Completed 200 OK in 190ms (Views: 128.2ms | ActiveRecord: 7.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 12:08:23 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 12:08:23 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 12:08:23 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 12:08:24 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Pork Loin Shank Meatloaf", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69366-1u9fxs8.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69366-s2erpp.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69366-s2erpp.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69366-s2erpp.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69366-s2erpp20150321-69366-3d6q85' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69366-s2erpp20150321-69366-3d6q85' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69366-s2erpp.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69366-s2erpp.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69366-s2erpp.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69366-s2erpp20150321-69366-1slpsm2' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69366-s2erpp20150321-69366-1slpsm2'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69366-1cfdjg7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69366-1xl029.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69366-tu22iq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69366-14ifmjj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69366-1lm8xp4.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:08:25.164709"], ["title", "Pork Loin Shank Meatloaf"], ["updated_at", "2015-03-21 18:08:25.164709"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 18:08:25.170184"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 18:08:25.170184"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 18:08:25.171946"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 18:08:24.880288"], ["updated_at", "2015-03-21 18:08:25.171946"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 18:08:25.184366"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 18:08:25.184366"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:08:25.185980"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:08:25.185980"]]  (15.7ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 358ms (ActiveRecord: 18.2ms) Started GET "/" for 127.0.0.1 at 2015-03-21 12:08:25 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.3ms) Rendered events/_simple_form.html.haml (10.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (13.5ms) Completed 200 OK in 37ms (Views: 15.2ms | ActiveRecord: 2.9ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.7ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:09:39 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (5.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (18.2ms) Rendered events/_simple_form.html.haml (80.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.2ms) Rendered home/index.html.haml within layouts/application (101.3ms) Completed 200 OK in 187ms (Views: 127.7ms | ActiveRecord: 6.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 12:09:39 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 12:09:39 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 12:09:39 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 12:09:40 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Leberkas Chuck Sirloin", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69427-yxozz9.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69427-7rjzjf.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69427-7rjzjf.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69427-7rjzjf.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69427-7rjzjf20150321-69427-3dipmy' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69427-7rjzjf20150321-69427-3dipmy' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69427-7rjzjf.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69427-7rjzjf.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69427-7rjzjf.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69427-7rjzjf20150321-69427-1a86ddh' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69427-7rjzjf20150321-69427-1a86ddh'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69427-1nvnkb3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69427-fk434z.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69427-xzvu3x.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69427-1t8iole.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69427-dur6jn.png' SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:09:40.983180"], ["title", "Leberkas Chuck Sirloin"], ["updated_at", "2015-03-21 18:09:40.983180"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 18:09:40.988818"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 18:09:40.988818"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 18:09:40.990683"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 18:09:40.697297"], ["updated_at", "2015-03-21 18:09:40.990683"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 18:09:41.003168"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 18:09:41.003168"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:09:41.004706"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:09:41.004706"]]  (15.9ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 361ms (ActiveRecord: 18.4ms) Started GET "/" for 127.0.0.1 at 2015-03-21 12:09:41 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.3ms) Rendered events/_simple_form.html.haml (11.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (14.2ms) Completed 200 OK in 37ms (Views: 16.0ms | ActiveRecord: 3.0ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.9ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:13:52 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 50ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:14:35 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (20.5ms) Rendered events/_simple_form.html.haml (81.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (4.6ms) Rendered home/index.html.haml within layouts/application (103.0ms) Completed 200 OK in 190ms (Views: 129.9ms | ActiveRecord: 7.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 12:14:36 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 12:14:36 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 12:14:36 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 12:14:37 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Strip Steak Biltong Frankfurter", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69559-142qm3a.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69559-1l76dvx.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69559-1l76dvx.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69559-1l76dvx.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69559-1l76dvx20150321-69559-14zqvhu' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69559-1l76dvx20150321-69559-14zqvhu' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69559-1l76dvx.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69559-1l76dvx.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69559-1l76dvx.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69559-1l76dvx20150321-69559-gzm9bl' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69559-1l76dvx20150321-69559-gzm9bl'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69559-18p31sp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69559-xxcm9r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69559-55kgbv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69559-ne0qir.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69559-ss2dof.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:14:37.449271"], ["title", "Strip Steak Biltong Frankfurter"], ["updated_at", "2015-03-21 18:14:37.449271"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 18:14:37.454840"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 18:14:37.454840"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 18:14:37.456793"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 18:14:37.165307"], ["updated_at", "2015-03-21 18:14:37.456793"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 18:14:37.469278"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 18:14:37.469278"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:14:37.470742"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:14:37.470742"]]  (15.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 358ms (ActiveRecord: 18.1ms) Started GET "/" for 127.0.0.1 at 2015-03-21 12:14:37 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.0ms) Rendered events/_simple_form.html.haml (11.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (14.7ms) Completed 200 OK in 40ms (Views: 16.5ms | ActiveRecord: 3.1ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (20.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:16:13 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 50ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (2.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:18:39 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (19.8ms) Rendered events/_simple_form.html.haml (47.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.0ms) Rendered events/_form.html.haml (4.3ms) Rendered home/index.html.haml within layouts/application (69.4ms) Completed 200 OK in 157ms (Views: 97.7ms | ActiveRecord: 7.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 12:18:39 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 12:18:39 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 12:18:39 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 12:18:40 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Short Loin Flank T Bone", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69682-198zcv7.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69682-5m8dea.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69682-5m8dea.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69682-5m8dea.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69682-5m8dea20150321-69682-5ok8pr' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69682-5m8dea20150321-69682-5ok8pr' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69682-5m8dea.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69682-5m8dea.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69682-5m8dea.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69682-5m8dea20150321-69682-1j85f5' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69682-5m8dea20150321-69682-1j85f5'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69682-di7beg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69682-nucu5u.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69682-1pxmlcr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69682-gf2ud.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-69682-p8as2c.png' SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:18:40.940952"], ["title", "Short Loin Flank T Bone"], ["updated_at", "2015-03-21 18:18:40.940952"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 18:18:40.946852"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 18:18:40.946852"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 18:18:40.948674"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 18:18:40.646147"], ["updated_at", "2015-03-21 18:18:40.948674"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 18:18:40.961157"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 18:18:40.961157"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:18:40.962609"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:18:40.962609"]]  (16.1ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 367ms (ActiveRecord: 18.3ms) Started GET "/" for 127.0.0.1 at 2015-03-21 12:18:40 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.1ms) Rendered events/_simple_form.html.haml (11.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (14.0ms) Completed 200 OK in 40ms (Views: 16.0ms | ActiveRecord: 3.0ms)  (0.8ms) SELECT COUNT(*) FROM "events" Event Load (0.8ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.7ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:18:57 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (19.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (3.1ms) Rendered events/_simple_form.html.haml (50.7ms) Rendered home/index.html.haml within layouts/application (67.3ms) Completed 500 Internal Server Error in 132ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:19:26 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (10.1ms) Rendered events/_simple_form.html.haml (37.2ms) Rendered home/index.html.haml within layouts/application (54.4ms) Completed 500 Internal Server Error in 123ms  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:19:37 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.2ms) Rendered events/_simple_form.html.haml (36.9ms) Rendered home/index.html.haml within layouts/application (54.0ms) Completed 500 Internal Server Error in 122ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:20:39 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.9ms) Rendered events/_simple_form.html.haml (37.0ms) Rendered home/index.html.haml within layouts/application (53.7ms) Completed 500 Internal Server Error in 120ms  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:20:53 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.6ms) Rendered events/_simple_form.html.haml (38.8ms) Rendered home/index.html.haml within layouts/application (55.0ms) Completed 500 Internal Server Error in 122ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:21:26 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 53ms  (0.7ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.9ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:22:14 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.6ms) Rendered events/_simple_form.html.haml (38.8ms) Rendered home/index.html.haml within layouts/application (55.8ms) Completed 500 Internal Server Error in 123ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:23:35 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.4ms) Rendered events/_simple_form.html.haml (36.0ms) Rendered home/index.html.haml within layouts/application (51.6ms) Completed 500 Internal Server Error in 118ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:26:46 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.7ms) Rendered events/_simple_form.html.haml (38.1ms) Rendered home/index.html.haml within layouts/application (54.7ms) Completed 500 Internal Server Error in 119ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:27:44 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (20.5ms) Rendered events/_simple_form.html.haml (83.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (4.5ms) Rendered home/index.html.haml within layouts/application (105.5ms) Completed 200 OK in 194ms (Views: 132.3ms | ActiveRecord: 7.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 12:27:45 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 12:27:45 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 12:27:45 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 12:27:45 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Strip Steak Salami Tail", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70084-4gv6hc.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70084-17smw8e.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70084-17smw8e.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70084-17smw8e.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70084-17smw8e20150321-70084-vjqwlt' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70084-17smw8e20150321-70084-vjqwlt' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70084-17smw8e.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70084-17smw8e.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70084-17smw8e.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70084-17smw8e20150321-70084-2juxn6' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70084-17smw8e20150321-70084-2juxn6'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70084-18o590s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70084-e1sr1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70084-15ohrjb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70084-18pbx7u.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70084-n2iwoe.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:27:46.277050"], ["title", "Strip Steak Salami Tail"], ["updated_at", "2015-03-21 18:27:46.277050"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 18:27:46.282795"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 18:27:46.282795"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 18:27:46.284705"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 18:27:45.985913"], ["updated_at", "2015-03-21 18:27:46.284705"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 18:27:46.298364"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 18:27:46.298364"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:27:46.299828"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:27:46.299828"]]  (15.7ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 367ms (ActiveRecord: 18.1ms) Started GET "/" for 127.0.0.1 at 2015-03-21 12:27:46 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.4ms) Rendered events/_simple_form.html.haml (12.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (14.7ms) Completed 200 OK in 41ms (Views: 16.4ms | ActiveRecord: 3.2ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (21.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:39:16 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (20.3ms) Rendered events/_simple_form.html.haml (49.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (4.9ms) Rendered home/index.html.haml within layouts/application (72.5ms) Completed 200 OK in 162ms (Views: 100.1ms | ActiveRecord: 7.9ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 12:39:16 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 12:39:16 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 12:39:16 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 12:39:17 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Jowl Swine Ribeye", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70296-1b407nd.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70296-8wjwax.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70296-8wjwax.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70296-8wjwax.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70296-8wjwax20150321-70296-1gak79v' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70296-8wjwax20150321-70296-1gak79v' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70296-8wjwax.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70296-8wjwax.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70296-8wjwax.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70296-8wjwax20150321-70296-n25fkx' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70296-8wjwax20150321-70296-n25fkx'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70296-9bckft.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70296-19ogi2u.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70296-1hdgnvq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70296-1ystrde.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70296-cgt53h.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:39:17.468720"], ["title", "Jowl Swine Ribeye"], ["updated_at", "2015-03-21 18:39:17.468720"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 18:39:17.474757"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 18:39:17.474757"]] SQL (0.6ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 18:39:17.477101"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 18:39:17.169949"], ["updated_at", "2015-03-21 18:39:17.477101"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 18:39:17.490317"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 18:39:17.490317"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:39:17.491922"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:39:17.491922"]]  (15.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 373ms (ActiveRecord: 18.4ms) Started GET "/" for 127.0.0.1 at 2015-03-21 12:39:17 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.2ms) Rendered events/_simple_form.html.haml (11.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (14.6ms) Completed 200 OK in 41ms (Views: 16.3ms | ActiveRecord: 3.1ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.8ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.6ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:39:54 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (21.0ms) Rendered events/_simple_form.html.haml (50.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.5ms) Rendered home/index.html.haml within layouts/application (72.5ms) Completed 200 OK in 159ms (Views: 102.1ms | ActiveRecord: 6.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 12:39:54 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 12:39:54 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 12:39:54 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 12:39:55 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Tri Tip Hamburger Chuck", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70347-3nhaee.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70347-j0rdby.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70347-j0rdby.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70347-j0rdby.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70347-j0rdby20150321-70347-1h9zt6a' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70347-j0rdby20150321-70347-1h9zt6a' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70347-j0rdby.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70347-j0rdby.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70347-j0rdby.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70347-j0rdby20150321-70347-h466jb' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70347-j0rdby20150321-70347-h466jb'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70347-hopfz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70347-qrmqk9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70347-b71x8o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70347-1mqq5ij.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70347-12w7dgq.png' SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:39:56.175856"], ["title", "Tri Tip Hamburger Chuck"], ["updated_at", "2015-03-21 18:39:56.175856"]] SQL (0.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 18:39:56.181518"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 18:39:56.181518"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 18:39:56.183724"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 18:39:55.885714"], ["updated_at", "2015-03-21 18:39:56.183724"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 18:39:56.196887"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 18:39:56.196887"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:39:56.198577"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:39:56.198577"]]  (16.3ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 367ms (ActiveRecord: 18.9ms) Started GET "/" for 127.0.0.1 at 2015-03-21 12:39:56 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered events/_simple_form.html.haml (10.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.8ms) Rendered home/index.html.haml within layouts/application (14.2ms) Completed 200 OK in 40ms (Views: 16.2ms | ActiveRecord: 3.2ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.9ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:41:14 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (20.1ms) Rendered events/_simple_form.html.haml (48.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.0ms) Rendered events/_form.html.haml (4.0ms) Rendered home/index.html.haml within layouts/application (69.3ms) Completed 200 OK in 156ms (Views: 96.5ms | ActiveRecord: 7.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 12:41:14 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 12:41:14 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 12:41:14 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 12:41:15 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Ham Meatloaf Short Ribs", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70407-142rhgv.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70407-wv8j7w.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70407-wv8j7w.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70407-wv8j7w.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70407-wv8j7w20150321-70407-b1prt1' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70407-wv8j7w20150321-70407-b1prt1' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70407-wv8j7w.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70407-wv8j7w.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70407-wv8j7w.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70407-wv8j7w20150321-70407-11fw5vv' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70407-wv8j7w20150321-70407-11fw5vv'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70407-adctk9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70407-16pbjby.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70407-gh5vgu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70407-1ozu684.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70407-kqg71p.png' SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:41:16.124332"], ["title", "Ham Meatloaf Short Ribs"], ["updated_at", "2015-03-21 18:41:16.124332"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 18:41:16.130226"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 18:41:16.130226"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 18:41:16.132095"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 18:41:15.835219"], ["updated_at", "2015-03-21 18:41:16.132095"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 18:41:16.145590"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 18:41:16.145590"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:41:16.147168"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:41:16.147168"]]  (15.7ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 362ms (ActiveRecord: 18.2ms) Started GET "/" for 127.0.0.1 at 2015-03-21 12:41:16 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.0ms) Rendered events/_simple_form.html.haml (11.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (14.3ms) Completed 200 OK in 40ms (Views: 16.0ms | ActiveRecord: 3.0ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:41:40 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (20.1ms) Rendered events/_simple_form.html.haml (47.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (4.5ms) Rendered home/index.html.haml within layouts/application (68.5ms) Completed 200 OK in 158ms (Views: 96.8ms | ActiveRecord: 7.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 12:41:40 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 12:41:40 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 12:41:40 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 12:41:41 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Ham Hock Swine Pancetta", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70454-y3v6d2.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70454-17aa581.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70454-17aa581.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70454-17aa581.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70454-17aa58120150321-70454-nux3jv' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70454-17aa58120150321-70454-nux3jv' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70454-17aa581.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70454-17aa581.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70454-17aa581.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70454-17aa58120150321-70454-gn42on' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70454-17aa58120150321-70454-gn42on'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70454-22on8t.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70454-isb0io.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70454-122sczv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70454-axp3sc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70454-6gwotb.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:41:41.646018"], ["title", "Ham Hock Swine Pancetta"], ["updated_at", "2015-03-21 18:41:41.646018"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 18:41:41.651877"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 18:41:41.651877"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 18:41:41.653969"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 18:41:41.356206"], ["updated_at", "2015-03-21 18:41:41.653969"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 18:41:41.666589"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 18:41:41.666589"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:41:41.668145"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:41:41.668145"]]  (16.0ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 364ms (ActiveRecord: 18.6ms) Started GET "/" for 127.0.0.1 at 2015-03-21 12:41:41 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered events/_simple_form.html.haml (10.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (13.0ms) Completed 200 OK in 39ms (Views: 14.7ms | ActiveRecord: 3.1ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.5ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:42:42 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (19.8ms) Rendered events/_simple_form.html.haml (47.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.2ms) Rendered home/index.html.haml within layouts/application (70.1ms) Completed 200 OK in 161ms (Views: 98.3ms | ActiveRecord: 7.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 12:42:43 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 12:42:43 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 12:42:43 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 12:42:44 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Tongue Beef Doner", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70509-1mjl2ac.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70509-gvyj7p.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70509-gvyj7p.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70509-gvyj7p.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70509-gvyj7p20150321-70509-1kbu8zh' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70509-gvyj7p20150321-70509-1kbu8zh' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70509-gvyj7p.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70509-gvyj7p.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70509-gvyj7p.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70509-gvyj7p20150321-70509-gff7e1' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70509-gvyj7p20150321-70509-gff7e1'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70509-215fux.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70509-kf9ler.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70509-1o2woyu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70509-16ireey.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70509-1ffigea.png' SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:42:44.356945"], ["title", "Tongue Beef Doner"], ["updated_at", "2015-03-21 18:42:44.356945"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 18:42:44.362664"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 18:42:44.362664"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 18:42:44.364401"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 18:42:44.070958"], ["updated_at", "2015-03-21 18:42:44.364401"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 18:42:44.377672"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 18:42:44.377672"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:42:44.379290"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:42:44.379290"]]  (15.9ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 360ms (ActiveRecord: 18.4ms) Started GET "/" for 127.0.0.1 at 2015-03-21 12:42:44 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.8ms) Rendered events/_simple_form.html.haml (11.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (13.7ms) Completed 200 OK in 38ms (Views: 15.4ms | ActiveRecord: 3.0ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:44:07 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (18.8ms) Rendered events/_simple_form.html.haml (46.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.0ms) Rendered events/_form.html.haml (4.0ms) Rendered home/index.html.haml within layouts/application (67.9ms) Completed 200 OK in 153ms (Views: 95.1ms | ActiveRecord: 6.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 12:44:08 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 12:44:08 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 12:44:08 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 12:44:09 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Pork Kielbasa Chicken", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70572-161byl9.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70572-1cd6b6y.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70572-1cd6b6y.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70572-1cd6b6y.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70572-1cd6b6y20150321-70572-1vo93jk' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70572-1cd6b6y20150321-70572-1vo93jk' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70572-1cd6b6y.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70572-1cd6b6y.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70572-1cd6b6y.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70572-1cd6b6y20150321-70572-1i3ihfs' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70572-1cd6b6y20150321-70572-1i3ihfs'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70572-13pdmgg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70572-2u6aom.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70572-1c8dp22.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70572-mk2ewa.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70572-13iqxjn.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:44:09.356010"], ["title", "Pork Kielbasa Chicken"], ["updated_at", "2015-03-21 18:44:09.356010"]] SQL (0.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 18:44:09.361410"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 18:44:09.361410"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 18:44:09.363659"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 18:44:09.067640"], ["updated_at", "2015-03-21 18:44:09.363659"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 18:44:09.376123"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 18:44:09.376123"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:44:09.377638"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:44:09.377638"]]  (16.1ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 361ms (ActiveRecord: 18.7ms) Started GET "/" for 127.0.0.1 at 2015-03-21 12:44:09 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.4ms) Rendered events/_simple_form.html.haml (10.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (13.4ms) Completed 200 OK in 37ms (Views: 14.9ms | ActiveRecord: 2.8ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:45:40 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (18.9ms) Rendered events/_simple_form.html.haml (81.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.0ms) Rendered events/_form.html.haml (3.9ms) Rendered home/index.html.haml within layouts/application (101.8ms) Completed 200 OK in 187ms (Views: 127.9ms | ActiveRecord: 7.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 12:45:40 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 12:45:40 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 12:45:40 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 12:45:41 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Tongue Ball Tip Shankle", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70639-vf0av2.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70639-1c7tcb5.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70639-1c7tcb5.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70639-1c7tcb5.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70639-1c7tcb520150321-70639-iylp10' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70639-1c7tcb520150321-70639-iylp10' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70639-1c7tcb5.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70639-1c7tcb5.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70639-1c7tcb5.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70639-1c7tcb520150321-70639-138zcfc' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70639-1c7tcb520150321-70639-138zcfc'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70639-1pp6b7f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70639-habgpq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70639-1duy8mc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70639-1egfqgm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-70639-15o4zyf.png' SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:45:41.464574"], ["title", "Tongue Ball Tip Shankle"], ["updated_at", "2015-03-21 18:45:41.464574"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 18:45:41.470414"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 18:45:41.470414"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 18:45:41.472208"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 18:45:41.174897"], ["updated_at", "2015-03-21 18:45:41.472208"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 18:45:41.484971"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 18:45:41.484971"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:45:41.486452"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:45:41.486452"]]  (16.3ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 365ms (ActiveRecord: 18.8ms) Started GET "/" for 127.0.0.1 at 2015-03-21 12:45:41 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.4ms) Rendered events/_simple_form.html.haml (11.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.7ms) Rendered home/index.html.haml within layouts/application (14.0ms) Completed 200 OK in 39ms (Views: 15.7ms | ActiveRecord: 3.2ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:45:52 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.8ms) Rendered events/_simple_form.html.haml (36.3ms) Rendered home/index.html.haml within layouts/application (53.2ms) Completed 500 Internal Server Error in 119ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:46:33 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.9ms) Rendered events/_simple_form.html.haml (36.9ms) Rendered home/index.html.haml within layouts/application (53.7ms) Completed 500 Internal Server Error in 118ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:48:23 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 56ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:49:21 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 56ms  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:50:15 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 51ms  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:50:38 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 55ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:51:01 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 55ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:52:13 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 53ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:53:20 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.9ms) Rendered events/_simple_form.html.haml (34.5ms) Rendered home/index.html.haml within layouts/application (50.7ms) Completed 500 Internal Server Error in 115ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:54:03 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.8ms) Rendered events/_simple_form.html.haml (35.4ms) Rendered home/index.html.haml within layouts/application (51.5ms) Completed 500 Internal Server Error in 115ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:55:10 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.7ms) Rendered events/_simple_form.html.haml (34.4ms) Rendered home/index.html.haml within layouts/application (50.1ms) Completed 500 Internal Server Error in 115ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:57:09 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (20.3ms) Rendered events/_simple_form.html.haml (48.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.0ms) Rendered events/_form.html.haml (4.4ms) Rendered home/index.html.haml within layouts/application (70.1ms) Completed 200 OK in 157ms (Views: 97.7ms | ActiveRecord: 7.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 12:57:09 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 12:57:09 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 12:57:09 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 12:57:10 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"T Bone Short Loin Kevin", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71103-7mv36f.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71103-uzmywe.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71103-uzmywe.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71103-uzmywe.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71103-uzmywe20150321-71103-cpcxza' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71103-uzmywe20150321-71103-cpcxza' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71103-uzmywe.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71103-uzmywe.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71103-uzmywe.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71103-uzmywe20150321-71103-dmj3cu' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71103-uzmywe20150321-71103-dmj3cu'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71103-ohmfi9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71103-k0l5j6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71103-sfes5r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71103-1ys9w8j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71103-jtov6t.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:57:11.008305"], ["title", "T Bone Short Loin Kevin"], ["updated_at", "2015-03-21 18:57:11.008305"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 18:57:11.014349"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 18:57:11.014349"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 18:57:11.016264"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 18:57:10.724407"], ["updated_at", "2015-03-21 18:57:11.016264"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 18:57:11.027617"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 18:57:11.027617"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:57:11.029236"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:57:11.029236"]]  (16.4ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 356ms (ActiveRecord: 18.9ms) Started GET "/" for 127.0.0.1 at 2015-03-21 12:57:11 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.7ms) Rendered events/_simple_form.html.haml (10.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (13.3ms) Completed 200 OK in 38ms (Views: 15.1ms | ActiveRecord: 2.8ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:57:55 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (19.8ms) Rendered events/_simple_form.html.haml (47.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (4.8ms) Rendered home/index.html.haml within layouts/application (69.7ms) Completed 200 OK in 155ms (Views: 96.6ms | ActiveRecord: 7.9ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 12:57:55 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 12:57:55 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 12:57:55 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 12:57:56 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Brisket Ham Hock Meatball", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71158-1dwgr64.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71158-e1sram.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71158-e1sram.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71158-e1sram.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71158-e1sram20150321-71158-nllqkb' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71158-e1sram20150321-71158-nllqkb' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71158-e1sram.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71158-e1sram.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71158-e1sram.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71158-e1sram20150321-71158-1tocolc' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71158-e1sram20150321-71158-1tocolc'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71158-sgb9cr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71158-1xkx16q.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71158-1vtplj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71158-9sglz4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71158-jl3evb.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:57:56.969635"], ["title", "Brisket Ham Hock Meatball"], ["updated_at", "2015-03-21 18:57:56.969635"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 18:57:56.976215"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 18:57:56.976215"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 18:57:56.978283"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 18:57:56.664194"], ["updated_at", "2015-03-21 18:57:56.978283"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 18:57:56.991400"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 18:57:56.991400"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:57:56.992917"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:57:56.992917"]]  (16.0ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 379ms (ActiveRecord: 18.5ms) Started GET "/" for 127.0.0.1 at 2015-03-21 12:57:57 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.3ms) Rendered events/_simple_form.html.haml (10.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.7ms) Rendered home/index.html.haml within layouts/application (13.6ms) Completed 200 OK in 39ms (Views: 15.3ms | ActiveRecord: 3.3ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.9ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:58:41 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (20.8ms) Rendered events/_simple_form.html.haml (49.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (4.9ms) Rendered home/index.html.haml within layouts/application (72.4ms) Completed 200 OK in 162ms (Views: 100.3ms | ActiveRecord: 7.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 12:58:41 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 12:58:41 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 12:58:41 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 12:58:42 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Tongue Pancetta Capicola", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71210-1l2wpgx.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71210-194w7tk.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71210-194w7tk.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71210-194w7tk.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71210-194w7tk20150321-71210-1a8om9p' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71210-194w7tk20150321-71210-1a8om9p' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71210-194w7tk.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71210-194w7tk.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71210-194w7tk.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71210-194w7tk20150321-71210-1gianl9' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71210-194w7tk20150321-71210-1gianl9'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71210-3vwqij.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71210-1e3hi77.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71210-vydmbh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71210-16l6n14.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71210-mw1sdb.png' SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:58:43.115120"], ["title", "Tongue Pancetta Capicola"], ["updated_at", "2015-03-21 18:58:43.115120"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 18:58:43.121642"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 18:58:43.121642"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 18:58:43.123894"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 18:58:42.817625"], ["updated_at", "2015-03-21 18:58:43.123894"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 18:58:43.136328"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 18:58:43.136328"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:58:43.137942"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:58:43.137942"]]  (15.4ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 371ms (ActiveRecord: 18.0ms) Started GET "/" for 127.0.0.1 at 2015-03-21 12:58:43 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.4ms) Rendered events/_simple_form.html.haml (12.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (14.8ms) Completed 200 OK in 40ms (Views: 16.5ms | ActiveRecord: 3.2ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.6ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:58:57 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (19.9ms) Rendered events/_simple_form.html.haml (47.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.1ms) Rendered home/index.html.haml within layouts/application (69.3ms) Completed 200 OK in 156ms (Views: 96.2ms | ActiveRecord: 7.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-21 12:58:57 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-21 12:58:57 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-21 12:58:57 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-21 12:58:58 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Leberkas Strip Steak Frankfurter", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71256-wbn87k.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71256-l2e0xe.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71256-l2e0xe.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71256-l2e0xe.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71256-l2e0xe20150321-71256-1dg6v9r' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71256-l2e0xe20150321-71256-1dg6v9r' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71256-l2e0xe.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71256-l2e0xe.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71256-l2e0xe.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71256-l2e0xe20150321-71256-1rflzm2' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71256-l2e0xe20150321-71256-1rflzm2'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71256-1057hpe.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71256-w4cq7c.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71256-s0ilgg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71256-m7eos7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150321-71256-a6s1l5.png' SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:58:59.217741"], ["title", "Leberkas Strip Steak Frankfurter"], ["updated_at", "2015-03-21 18:58:59.217741"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-21 18:58:59.223365"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 18:58:59.223365"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-21 18:58:59.225718"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-21 18:58:58.931000"], ["updated_at", "2015-03-21 18:58:59.225718"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-21 18:58:59.238210"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-21 18:58:59.238210"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-21 18:58:59.239768"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:58:59.239768"]]  (15.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 359ms (ActiveRecord: 18.2ms) Started GET "/" for 127.0.0.1 at 2015-03-21 12:58:59 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered events/_simple_form.html.haml (10.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (13.6ms) Completed 200 OK in 38ms (Views: 15.2ms | ActiveRecord: 2.8ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.6ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-21 12:59:20 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (20.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (3.2ms) Rendered events/_simple_form.html.haml (53.9ms) Rendered home/index.html.haml within layouts/application (71.8ms) Completed 500 Internal Server Error in 136ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.7ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (16.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 11:37:32 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (16.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (51.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.5ms) Rendered events/_simple_form.html.haml (182.6ms) Rendered home/index.html.haml within layouts/application (240.3ms) Completed 500 Internal Server Error in 407ms  (0.7ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (38.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 11:40:10 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.0ms) Rendered events/_simple_form.html.haml (113.5ms) Rendered home/index.html.haml within layouts/application (133.3ms) Completed 500 Internal Server Error in 232ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.5ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 11:47:40 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (10.0ms) Rendered events/_simple_form.html.haml (53.2ms) Rendered home/index.html.haml within layouts/application (73.1ms) Completed 500 Internal Server Error in 166ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (10.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 11:54:01 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 44ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 11:54:56 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 58ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.8ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:00:18 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 44ms  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (9.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:01:03 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 44ms  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.5ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:02:15 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 49ms  (0.6ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:03:24 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 72ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:03:45 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 75ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:04:27 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.4ms) Rendered events/_simple_form.html.haml (87.4ms) Rendered home/index.html.haml within layouts/application (107.6ms) Completed 500 Internal Server Error in 192ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:14:09 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (24.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.3ms) Rendered events/_simple_form.html.haml (75.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.4ms) Rendered events/_form.html.haml (18.5ms) Rendered home/index.html.haml within layouts/application (116.2ms) Completed 200 OK in 318ms (Views: 243.0ms | ActiveRecord: 7.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:14:10 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:14:10 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:14:10 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:14:11 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Ground Round Rump Hamburger", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22142-1q2nn0s.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22142-t0670w.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22142-t0670w.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22142-t0670w.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22142-t0670w20150323-22142-1h2t4w0' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22142-t0670w20150323-22142-1h2t4w0' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22142-t0670w.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22142-t0670w.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22142-t0670w.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22142-t0670w20150323-22142-2rxk4y' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22142-t0670w20150323-22142-2rxk4y'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22142-1iwlt00.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22142-ze1717.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22142-2jz3at.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22142-1ifckmn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22142-yhe0kc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22142-lc1rww.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22142-1mzcl10.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22142-yavbro.png' SQL (53.9ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:14:12.211688"], ["title", "Ground Round Rump Hamburger"], ["updated_at", "2015-03-23 18:14:12.211688"]] SQL (21.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:14:12.286288"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:14:12.286288"]] SQL (9.5ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 18:14:12.309527"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 18:14:11.754016"], ["updated_at", "2015-03-23 18:14:12.309527"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:14:12.352902"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:14:12.352902"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:14:12.354485"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:14:12.354485"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:14:12.356030"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:14:12.356030"]]  (30.9ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 668ms (ActiveRecord: 116.9ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:14:12 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (16.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (19.5ms) Completed 200 OK in 38ms (Views: 21.1ms | ActiveRecord: 3.0ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.5ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (23.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:15:30 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (24.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.0ms) Rendered events/_simple_form.html.haml (73.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (5.6ms) Rendered home/index.html.haml within layouts/application (100.4ms) Completed 200 OK in 278ms (Views: 198.9ms | ActiveRecord: 7.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:15:30 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:15:30 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:15:30 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:15:31 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Bacon Bresaola Pork", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22208-1bwv2ub.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22208-1u5ia9r.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22208-1u5ia9r.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22208-1u5ia9r.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22208-1u5ia9r20150323-22208-13ftrrw' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22208-1u5ia9r20150323-22208-13ftrrw' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22208-1u5ia9r.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22208-1u5ia9r.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22208-1u5ia9r.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22208-1u5ia9r20150323-22208-1cir09r' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22208-1u5ia9r20150323-22208-1cir09r'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22208-cssg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22208-4y7dwb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22208-iwq6k6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22208-m2nd41.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22208-j6wm6t.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22208-9p4qdo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22208-91ih2y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22208-11mxbyh.png' SQL (18.2ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:15:31.877370"], ["title", "Bacon Bresaola Pork"], ["updated_at", "2015-03-23 18:15:31.877370"]] SQL (16.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:15:31.901370"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:15:31.901370"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 18:15:31.919340"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 18:15:31.510206"], ["updated_at", "2015-03-23 18:15:31.919340"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:15:31.932901"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:15:31.932901"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:15:31.934649"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:15:31.934649"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:15:31.935875"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:15:31.935875"]]  (15.8ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 479ms (ActiveRecord: 52.2ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:15:31 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.9ms) Rendered events/_simple_form.html.haml (16.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (19.0ms) Completed 200 OK in 39ms (Views: 20.8ms | ActiveRecord: 3.2ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.8ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:16:03 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (24.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.9ms) Rendered events/_simple_form.html.haml (72.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (5.2ms) Rendered home/index.html.haml within layouts/application (98.7ms) Completed 200 OK in 239ms (Views: 154.2ms | ActiveRecord: 7.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:16:04 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:16:04 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:16:04 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:16:05 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Beef Fatback Pork Chop", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22267-1jx78wh.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22267-1efuhoa.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22267-1efuhoa.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22267-1efuhoa.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22267-1efuhoa20150323-22267-1sp8wuk' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22267-1efuhoa20150323-22267-1sp8wuk' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22267-1efuhoa.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22267-1efuhoa.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22267-1efuhoa.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22267-1efuhoa20150323-22267-y2j7qs' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22267-1efuhoa20150323-22267-y2j7qs'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22267-15fg6q1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22267-109kdd8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22267-df2eo4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22267-1a2gdc9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22267-1i6d1cq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22267-13hld91.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22267-qzr17u.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22267-179qpw6.png' SQL (17.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:16:05.619369"], ["title", "Beef Fatback Pork Chop"], ["updated_at", "2015-03-23 18:16:05.619369"]] SQL (15.7ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:16:05.644845"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:16:05.644845"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 18:16:05.662235"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 18:16:05.066854"], ["updated_at", "2015-03-23 18:16:05.662235"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:16:05.675626"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:16:05.675626"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:16:05.677106"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:16:05.677106"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:16:05.678314"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:16:05.678314"]]  (15.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 664ms (ActiveRecord: 51.0ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:16:05 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.4ms) Rendered events/_simple_form.html.haml (17.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (20.3ms) Completed 200 OK in 40ms (Views: 22.0ms | ActiveRecord: 3.0ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (23.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:16:19 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (20.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered events/_simple_form.html.haml (55.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.4ms) Rendered home/index.html.haml within layouts/application (76.9ms) Completed 200 OK in 168ms (Views: 104.5ms | ActiveRecord: 6.9ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:16:19 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:16:19 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:16:19 -0600  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:17:55 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (11.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (29.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered events/_simple_form.html.haml (81.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (5.5ms) Rendered home/index.html.haml within layouts/application (113.3ms) Completed 200 OK in 297ms (Views: 198.8ms | ActiveRecord: 10.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:17:56 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:17:56 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:17:56 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:17:57 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Turkey Ball Tip Shank", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22374-1vbvggi.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22374-q88nv7.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22374-q88nv7.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22374-q88nv7.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22374-q88nv720150323-22374-102g19k' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22374-q88nv720150323-22374-102g19k' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22374-q88nv7.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22374-q88nv7.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22374-q88nv7.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22374-q88nv720150323-22374-1ef666t' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22374-q88nv720150323-22374-1ef666t'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22374-239qnd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22374-6o0yn4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22374-51jonf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22374-1sic8z8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22374-1pmwl5x.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22374-ipj4x1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22374-1f1dwrj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22374-13ea6ob.png' SQL (17.8ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:17:57.589239"], ["title", "Turkey Ball Tip Shank"], ["updated_at", "2015-03-23 18:17:57.589239"]] SQL (15.9ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:17:57.613717"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:17:57.613717"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:17:57.631408"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:17:57.631408"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:17:57.633787"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:17:57.633787"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 18:17:57.634998"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 18:17:57.215786"], ["updated_at", "2015-03-23 18:17:57.634998"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:17:57.648485"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:17:57.648485"]]  (15.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 488ms (ActiveRecord: 51.4ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:17:57 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.3ms) Rendered events/_simple_form.html.haml (17.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (19.8ms) Completed 200 OK in 41ms (Views: 21.5ms | ActiveRecord: 3.0ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (2.5ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:18:10 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (20.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.9ms) Rendered events/_simple_form.html.haml (55.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (4.9ms) Rendered home/index.html.haml within layouts/application (78.9ms) Completed 200 OK in 172ms (Views: 106.6ms | ActiveRecord: 7.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:18:10 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:18:10 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:18:10 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:18:11 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Andouille Swine Frankfurter", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22424-zunphr.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22424-1f9yq6r.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22424-1f9yq6r.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22424-1f9yq6r.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22424-1f9yq6r20150323-22424-16pu6z3' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22424-1f9yq6r20150323-22424-16pu6z3' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22424-1f9yq6r.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22424-1f9yq6r.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22424-1f9yq6r.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22424-1f9yq6r20150323-22424-q3669l' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22424-1f9yq6r20150323-22424-q3669l'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22424-4fpsm6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22424-nsyn3o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22424-5hjxb4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22424-5cd3l5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22424-1i2pid.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22424-kz7rzc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22424-17w2koy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22424-18vhn7l.png' SQL (18.2ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:18:11.663857"], ["title", "Andouille Swine Frankfurter"], ["updated_at", "2015-03-23 18:18:11.663857"]] SQL (16.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:18:11.687892"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:18:11.687892"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:18:11.706007"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:18:11.706007"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:18:11.708436"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:18:11.708436"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 18:18:11.709645"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 18:18:11.300742"], ["updated_at", "2015-03-23 18:18:11.709645"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:18:11.721591"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:18:11.721591"]]  (15.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 478ms (ActiveRecord: 52.2ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:18:11 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (16.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (19.2ms) Completed 200 OK in 40ms (Views: 20.9ms | ActiveRecord: 3.1ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (1.5ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:18:28 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (20.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.7ms) Rendered events/_simple_form.html.haml (54.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.0ms) Rendered events/_form.html.haml (4.4ms) Rendered home/index.html.haml within layouts/application (76.4ms) Completed 200 OK in 168ms (Views: 104.3ms | ActiveRecord: 7.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:18:29 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:18:29 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:18:29 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:18:30 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Hamburger Biltong Kevin", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22474-10n8imy.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22474-h9muhx.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22474-h9muhx.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22474-h9muhx.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22474-h9muhx20150323-22474-941y7q' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22474-h9muhx20150323-22474-941y7q' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22474-h9muhx.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22474-h9muhx.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22474-h9muhx.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22474-h9muhx20150323-22474-61xnsm' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22474-h9muhx20150323-22474-61xnsm'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22474-1rtqr7x.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22474-1xznw9n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22474-364ucr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22474-t5qn7l.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22474-1ytnakg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22474-hxj497.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22474-pz4g6m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22474-5c4zls.png' SQL (18.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:18:30.498627"], ["title", "Hamburger Biltong Kevin"], ["updated_at", "2015-03-23 18:18:30.498627"]] SQL (13.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:18:30.523226"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:18:30.523226"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:18:30.538283"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:18:30.538283"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:18:30.540748"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:18:30.540748"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 18:18:30.542074"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 18:18:30.136298"], ["updated_at", "2015-03-23 18:18:30.542074"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:18:30.554009"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:18:30.554009"]]  (15.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 475ms (ActiveRecord: 49.6ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:18:30 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.6ms) Rendered events/_simple_form.html.haml (17.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (19.8ms) Completed 200 OK in 40ms (Views: 21.4ms | ActiveRecord: 2.9ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.8ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.9ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (21.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:18:55 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.3ms) Rendered events/_simple_form.html.haml (73.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (5.2ms) Rendered home/index.html.haml within layouts/application (99.8ms) Completed 200 OK in 234ms (Views: 155.5ms | ActiveRecord: 7.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:18:55 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:18:55 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:18:55 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:18:56 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Shoulder Shank Pork Belly", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22526-1hqg80l.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22526-1x0p2sh.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22526-1x0p2sh.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22526-1x0p2sh.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22526-1x0p2sh20150323-22526-12shn6g' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22526-1x0p2sh20150323-22526-12shn6g' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22526-1x0p2sh.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22526-1x0p2sh.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22526-1x0p2sh.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22526-1x0p2sh20150323-22526-1vlrviv' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22526-1x0p2sh20150323-22526-1vlrviv'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22526-1pzxefu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22526-1xk4aek.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22526-68vram.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22526-9tzt4v.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22526-zqs42e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22526-1mh2mvg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22526-1871ot8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22526-1tpbjz3.png' SQL (17.9ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:18:57.015410"], ["title", "Shoulder Shank Pork Belly"], ["updated_at", "2015-03-23 18:18:57.015410"]] SQL (15.8ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:18:57.039325"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:18:57.039325"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:18:57.056806"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:18:57.056806"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:18:57.059142"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:18:57.059142"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 18:18:57.060285"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 18:18:56.650430"], ["updated_at", "2015-03-23 18:18:57.060285"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:18:57.072559"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:18:57.072559"]]  (15.4ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 478ms (ActiveRecord: 51.2ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:18:57 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.0ms) Rendered events/_simple_form.html.haml (17.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (20.3ms) Completed 200 OK in 42ms (Views: 22.1ms | ActiveRecord: 3.4ms)  (1.6ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.8ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:19:14 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (76.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (5.1ms) Rendered home/index.html.haml within layouts/application (102.7ms) Completed 200 OK in 211ms (Views: 132.0ms | ActiveRecord: 7.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:19:14 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:19:14 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:19:14 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:19:15 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Doner Pastrami Tenderloin", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22575-17ucj48.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22575-xy4qzh.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22575-xy4qzh.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22575-xy4qzh.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22575-xy4qzh20150323-22575-19pgapw' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22575-xy4qzh20150323-22575-19pgapw' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22575-xy4qzh.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22575-xy4qzh.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22575-xy4qzh.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22575-xy4qzh20150323-22575-1plzy3a' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22575-xy4qzh20150323-22575-1plzy3a'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22575-15hjp9s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22575-mc662o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22575-139s0yh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22575-15rh0kz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22575-qieo4f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22575-1p5rdjm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22575-jkmdbh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22575-1haornv.png' SQL (32.8ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:19:15.810761"], ["title", "Doner Pastrami Tenderloin"], ["updated_at", "2015-03-23 18:19:15.810761"]] SQL (1.0ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:19:15.849455"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:19:15.849455"]] SQL (0.8ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:19:15.852083"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:19:15.852083"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:19:15.854209"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:19:15.854209"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 18:19:15.855426"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 18:19:15.442837"], ["updated_at", "2015-03-23 18:19:15.855426"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:19:15.867592"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:19:15.867592"]]  (15.8ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 482ms (ActiveRecord: 51.5ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:19:15 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.5ms) Rendered events/_simple_form.html.haml (16.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (19.2ms) Completed 200 OK in 39ms (Views: 21.3ms | ActiveRecord: 3.1ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:20:07 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (24.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (72.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.4ms) Rendered events/_form.html.haml (5.9ms) Rendered home/index.html.haml within layouts/application (99.5ms) Completed 200 OK in 233ms (Views: 155.2ms | ActiveRecord: 7.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:20:07 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:20:07 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:20:07 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:20:08 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Turkey Swine Frankfurter", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22632-t7iuap.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22632-1e36tqo.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22632-1e36tqo.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22632-1e36tqo.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22632-1e36tqo20150323-22632-1l05xlh' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22632-1e36tqo20150323-22632-1l05xlh' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22632-1e36tqo.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22632-1e36tqo.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22632-1e36tqo.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22632-1e36tqo20150323-22632-zenpik' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22632-1e36tqo20150323-22632-zenpik'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22632-6nfsom.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22632-ol761p.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22632-1gj451q.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22632-1ywrvdw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22632-1e5z0v6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22632-uyk64b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22632-19vx5sm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22632-wi3cn9.png' SQL (17.9ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:20:08.999912"], ["title", "Turkey Swine Frankfurter"], ["updated_at", "2015-03-23 18:20:08.999912"]] SQL (15.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:20:09.023630"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:20:09.023630"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 18:20:09.040831"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 18:20:08.623826"], ["updated_at", "2015-03-23 18:20:09.040831"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:20:09.055143"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:20:09.055143"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:20:09.056770"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:20:09.056770"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:20:09.058003"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:20:09.058003"]]  (15.7ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 486ms (ActiveRecord: 51.0ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:20:09 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.6ms) Rendered events/_simple_form.html.haml (16.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (19.6ms) Completed 200 OK in 41ms (Views: 21.4ms | ActiveRecord: 3.4ms)  (0.8ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:21:54 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.4ms) Rendered events/_simple_form.html.haml (68.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (5.2ms) Rendered home/index.html.haml within layouts/application (94.4ms) Completed 200 OK in 265ms (Views: 149.0ms | ActiveRecord: 8.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:21:54 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:21:54 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:21:54 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:21:55 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Shoulder Pastrami Tenderloin", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22701-z79pr6.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22701-yy51zm.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22701-yy51zm.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22701-yy51zm.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22701-yy51zm20150323-22701-1dmh6hg' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22701-yy51zm20150323-22701-1dmh6hg' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22701-yy51zm.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22701-yy51zm.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22701-yy51zm.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22701-yy51zm20150323-22701-1dzugpr' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22701-yy51zm20150323-22701-1dzugpr'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22701-pb1b6m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22701-9bnn6i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22701-1mpa9ic.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22701-1h5uvue.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22701-j9fril.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22701-1sg2fix.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22701-r9wb37.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22701-1fvw2q7.png' SQL (17.8ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:21:55.766752"], ["title", "Shoulder Pastrami Tenderloin"], ["updated_at", "2015-03-23 18:21:55.766752"]] SQL (16.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:21:55.790413"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:21:55.790413"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:21:55.808835"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:21:55.808835"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:21:55.811457"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:21:55.811457"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 18:21:55.812769"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 18:21:55.408449"], ["updated_at", "2015-03-23 18:21:55.812769"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:21:55.826510"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:21:55.826510"]]  (16.3ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 471ms (ActiveRecord: 52.7ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:21:55 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.5ms) Rendered events/_simple_form.html.haml (16.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (19.5ms) Completed 200 OK in 40ms (Views: 21.1ms | ActiveRecord: 3.1ms)  (0.9ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (21.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:22:33 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (24.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.0ms) Rendered events/_simple_form.html.haml (71.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (5.3ms) Rendered home/index.html.haml within layouts/application (98.1ms) Completed 200 OK in 236ms (Views: 154.2ms | ActiveRecord: 7.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:22:34 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:22:34 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:22:34 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:22:35 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"T Bone Drumstick Rump", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22755-fxn1ti.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22755-s1xyjq.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22755-s1xyjq.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22755-s1xyjq.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22755-s1xyjq20150323-22755-vg7y6s' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22755-s1xyjq20150323-22755-vg7y6s' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22755-s1xyjq.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22755-s1xyjq.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22755-s1xyjq.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22755-s1xyjq20150323-22755-1to7kdn' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22755-s1xyjq20150323-22755-1to7kdn'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22755-1x6w458.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22755-1w0tkp5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22755-f6l4mb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22755-1col94y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22755-zv1i9l.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22755-140aqpy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22755-9qjkwh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22755-scalhp.png' SQL (17.9ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:22:35.427473"], ["title", "T Bone Drumstick Rump"], ["updated_at", "2015-03-23 18:22:35.427473"]] SQL (1.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:22:35.468190"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:22:35.468190"]] SQL (1.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:22:35.470928"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:22:35.470928"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:22:35.473574"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:22:35.473574"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 18:22:35.475146"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 18:22:35.046196"], ["updated_at", "2015-03-23 18:22:35.475146"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:22:35.487737"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:22:35.487737"]]  (0.7ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 484ms (ActiveRecord: 22.3ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:22:35 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.0ms) Rendered events/_simple_form.html.haml (16.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (19.6ms) Completed 200 OK in 41ms (Views: 21.4ms | ActiveRecord: 3.5ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.5ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:25:10 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (24.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.7ms) Rendered events/_simple_form.html.haml (73.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (5.6ms) Rendered home/index.html.haml within layouts/application (100.8ms) Completed 200 OK in 240ms (Views: 159.0ms | ActiveRecord: 7.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:25:10 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:25:10 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:25:10 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:25:11 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Beef Ribs Capicola Cow", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22844-dakq2v.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22844-1f7085l.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22844-1f7085l.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22844-1f7085l.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22844-1f7085l20150323-22844-4pych6' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22844-1f7085l20150323-22844-4pych6' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22844-1f7085l.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22844-1f7085l.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22844-1f7085l.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22844-1f7085l20150323-22844-1r8hour' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22844-1f7085l20150323-22844-1r8hour'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22844-xfr1g7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22844-2qko5p.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22844-4kvq4d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22844-1lo6rkg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22844-ut5h1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22844-o9n0hq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22844-wi0md9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-22844-14q6mhb.png' SQL (31.5ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:25:12.338754"], ["title", "Beef Ribs Capicola Cow"], ["updated_at", "2015-03-23 18:25:12.338754"]] SQL (1.0ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:25:12.376224"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:25:12.376224"]] SQL (0.8ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:25:12.378930"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:25:12.378930"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:25:12.381207"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:25:12.381207"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 18:25:12.382599"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 18:25:11.958799"], ["updated_at", "2015-03-23 18:25:12.382599"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:25:12.398561"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:25:12.398561"]]  (15.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 497ms (ActiveRecord: 50.2ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:25:12 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered events/_simple_form.html.haml (17.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (20.1ms) Completed 200 OK in 39ms (Views: 21.8ms | ActiveRecord: 3.1ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.9ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.7ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (28.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:30:52 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (24.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.9ms) Rendered events/_simple_form.html.haml (70.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.6ms) Rendered events/_form.html.haml (7.3ms) Rendered home/index.html.haml within layouts/application (99.4ms) Completed 200 OK in 245ms (Views: 154.7ms | ActiveRecord: 10.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:30:52 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:30:52 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:30:52 -0600  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (39.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:32:50 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.7ms) Rendered events/_simple_form.html.haml (70.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (5.2ms) Rendered home/index.html.haml within layouts/application (97.1ms) Completed 200 OK in 237ms (Views: 152.4ms | ActiveRecord: 7.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:32:50 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:32:50 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:32:50 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:32:51 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Ham Hock Short Loin T Bone", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: custom_photos_attributes  (0.2ms) BEGIN SQL (17.3ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:32:51.333894"], ["title", "Ham Hock Short Loin T Bone"], ["updated_at", "2015-03-23 18:32:51.333894"]] SQL (15.7ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:32:51.355922"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:32:51.355922"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:32:51.373312"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:32:51.373312"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:32:51.376034"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:32:51.376034"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:32:51.377347"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:32:51.377347"]]  (0.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 68ms (ActiveRecord: 35.5ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:32:51 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.6ms) Rendered events/_simple_form.html.haml (17.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (19.8ms) Completed 200 OK in 41ms (Views: 21.7ms | ActiveRecord: 3.5ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] SQL (16.0ms) DELETE FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:33:09 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (24.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (72.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.4ms) Rendered events/_form.html.haml (5.9ms) Rendered home/index.html.haml within layouts/application (99.6ms) Completed 200 OK in 209ms (Views: 128.9ms | ActiveRecord: 7.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:33:10 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:33:10 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:33:10 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:33:11 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Tongue Landjaeger Shoulder", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: custom_photos_attributes  (0.2ms) BEGIN SQL (28.2ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:33:11.198796"], ["title", "Tongue Landjaeger Shoulder"], ["updated_at", "2015-03-23 18:33:11.198796"]] SQL (1.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:33:11.231894"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:33:11.231894"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:33:11.234506"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:33:11.234506"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:33:11.236691"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:33:11.236691"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:33:11.237797"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:33:11.237797"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:33:11.238774"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:33:11.238774"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 60ms (ActiveRecord: 31.8ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:33:11 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.9ms) Rendered events/_simple_form.html.haml (16.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.2ms) Rendered home/index.html.haml within layouts/application (19.2ms) Completed 200 OK in 41ms (Views: 20.6ms | ActiveRecord: 3.9ms)  (0.8ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:33:41 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (24.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered events/_simple_form.html.haml (72.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (5.4ms) Rendered home/index.html.haml within layouts/application (99.8ms) Completed 200 OK in 239ms (Views: 156.6ms | ActiveRecord: 8.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:33:41 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:33:41 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:33:41 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:33:42 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Boudin Biltong Beef", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: custom_photos_attributes  (0.1ms) BEGIN SQL (17.5ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:33:42.185047"], ["title", "Boudin Biltong Beef"], ["updated_at", "2015-03-23 18:33:42.185047"]] SQL (15.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:33:42.208385"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:33:42.208385"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:33:42.226661"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:33:42.226661"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:33:42.229391"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:33:42.229391"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:33:42.231000"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:33:42.231000"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:33:42.232069"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:33:42.232069"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 68ms (ActiveRecord: 35.6ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:33:42 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.4ms) Rendered events/_simple_form.html.haml (16.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (19.2ms) Completed 200 OK in 39ms (Views: 20.8ms | ActiveRecord: 3.4ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:34:01 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (21.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered events/_simple_form.html.haml (57.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.4ms) Rendered events/_form.html.haml (5.1ms) Rendered home/index.html.haml within layouts/application (80.2ms) Completed 200 OK in 175ms (Views: 109.5ms | ActiveRecord: 7.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:34:02 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:34:02 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:34:02 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:34:03 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Ham Hock Chuck Chicken", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: custom_photos_attributes  (0.2ms) BEGIN SQL (16.1ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:34:03.180522"], ["title", "Ham Hock Chuck Chicken"], ["updated_at", "2015-03-23 18:34:03.180522"]] SQL (15.0ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:34:03.201923"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:34:03.201923"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:34:03.218623"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:34:03.218623"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:34:03.220601"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:34:03.220601"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:34:03.221755"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:34:03.221755"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:34:03.222756"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:34:03.222756"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 63ms (ActiveRecord: 33.0ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:34:03 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.3ms) Rendered events/_simple_form.html.haml (17.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (20.1ms) Completed 200 OK in 40ms (Views: 21.5ms | ActiveRecord: 3.0ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:34:47 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (24.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.2ms) Rendered events/_simple_form.html.haml (72.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (6.3ms) Rendered home/index.html.haml within layouts/application (99.8ms) Completed 200 OK in 237ms (Views: 156.7ms | ActiveRecord: 7.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:34:48 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:34:48 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:34:48 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:34:49 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Shank Meatloaf Boudin", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: custom_photos_attributes  (0.1ms) BEGIN SQL (17.4ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:34:49.133870"], ["title", "Shank Meatloaf Boudin"], ["updated_at", "2015-03-23 18:34:49.133870"]] SQL (16.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:34:49.156419"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:34:49.156419"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:34:49.174413"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:34:49.174413"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:34:49.176918"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:34:49.176918"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:34:49.178134"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:34:49.178134"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:34:49.179483"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:34:49.179483"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 67ms (ActiveRecord: 36.0ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:34:49 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered events/_simple_form.html.haml (16.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (18.8ms) Completed 200 OK in 39ms (Views: 20.3ms | ActiveRecord: 3.5ms)  (0.9ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.7ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (21.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:35:43 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.5ms) Rendered events/_simple_form.html.haml (106.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (5.6ms) Rendered home/index.html.haml within layouts/application (132.0ms) Completed 200 OK in 266ms (Views: 185.3ms | ActiveRecord: 8.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:35:44 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:35:44 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:35:44 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:35:45 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Pork Loin Biltong Short Ribs", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: custom_photos_attributes  (0.2ms) BEGIN SQL (32.4ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:35:45.205481"], ["title", "Pork Loin Biltong Short Ribs"], ["updated_at", "2015-03-23 18:35:45.205481"]] SQL (1.0ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:35:45.242713"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:35:45.242713"]] SQL (1.1ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:35:45.245162"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:35:45.245162"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:35:45.247701"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:35:45.247701"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:35:45.249173"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:35:45.249173"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:35:45.250276"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:35:45.250276"]]  (0.9ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 65ms (ActiveRecord: 36.4ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:35:45 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.0ms) Rendered events/_simple_form.html.haml (17.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.4ms) Rendered events/_form.html.haml (3.2ms) Rendered home/index.html.haml within layouts/application (22.0ms) Completed 200 OK in 41ms (Views: 23.9ms | ActiveRecord: 3.6ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.8ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:38:10 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (22.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered events/_simple_form.html.haml (106.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (5.3ms) Rendered home/index.html.haml within layouts/application (132.1ms) Completed 200 OK in 281ms (Views: 190.7ms | ActiveRecord: 9.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:38:11 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:38:11 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:38:11 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:38:12 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Boudin Meatloaf Fatback", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: custom_photos_attributes  (0.1ms) BEGIN SQL (18.0ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:38:12.103291"], ["title", "Boudin Meatloaf Fatback"], ["updated_at", "2015-03-23 18:38:12.103291"]] SQL (31.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:38:12.126433"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:38:12.126433"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:38:12.159932"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:38:12.159932"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:38:12.163014"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:38:12.163014"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:38:12.164308"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:38:12.164308"]]  (0.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 84ms (ActiveRecord: 52.0ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:38:12 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.7ms) Rendered events/_simple_form.html.haml (16.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (19.2ms) Completed 200 OK in 42ms (Views: 20.9ms | ActiveRecord: 3.3ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.5ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Load (0.2ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "polygallery_photos" WHERE "polygallery_photos"."id" = $1 [["id", 1]]  (15.7ms) COMMIT Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:39:04 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered events/_simple_form.html.haml (71.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (5.8ms) Rendered home/index.html.haml within layouts/application (97.9ms) Completed 200 OK in 230ms (Views: 153.5ms | ActiveRecord: 7.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:39:04 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:39:04 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:39:04 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:39:05 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Swine Landjaeger Meatloaf", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: custom_photos_attributes  (0.2ms) BEGIN SQL (17.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:39:05.861045"], ["title", "Swine Landjaeger Meatloaf"], ["updated_at", "2015-03-23 18:39:05.861045"]] SQL (12.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:39:05.883637"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:39:05.883637"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:39:05.898119"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:39:05.898119"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:39:05.900632"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:39:05.900632"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:39:05.901945"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:39:05.901945"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:39:05.903308"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:39:05.903308"]]  (0.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 63ms (ActiveRecord: 32.9ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:39:05 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.7ms) Rendered events/_simple_form.html.haml (16.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (18.9ms) Completed 200 OK in 39ms (Views: 20.6ms | ActiveRecord: 3.3ms)  (1.0ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.6ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (21.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:40:18 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (24.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered events/_simple_form.html.haml (101.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.4ms) Rendered events/_form.html.haml (6.0ms) Rendered home/index.html.haml within layouts/application (131.4ms) Completed 200 OK in 270ms (Views: 196.5ms | ActiveRecord: 7.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:40:20 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:40:20 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:40:20 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:40:21 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Pastrami Sirloin Ham Hock", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: custom_photos_attributes  (0.2ms) BEGIN SQL (33.0ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:40:21.259272"], ["title", "Pastrami Sirloin Ham Hock"], ["updated_at", "2015-03-23 18:40:21.259272"]] SQL (1.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:40:21.298384"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:40:21.298384"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:40:21.301225"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:40:21.301225"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:40:21.303527"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:40:21.303527"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:40:21.304854"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:40:21.304854"]]  (0.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 63ms (ActiveRecord: 36.7ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:40:21 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.6ms) Rendered events/_simple_form.html.haml (16.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (19.1ms) Completed 200 OK in 38ms (Views: 20.5ms | ActiveRecord: 4.5ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.8ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.2ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.9ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:40:32 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (21.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered events/_simple_form.html.haml (57.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (5.0ms) Rendered home/index.html.haml within layouts/application (81.1ms) Completed 200 OK in 171ms (Views: 109.4ms | ActiveRecord: 6.9ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:40:33 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:40:33 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:40:33 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:40:34 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Turducken Brisket Frankfurter", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: custom_photos_attributes  (0.2ms) BEGIN SQL (0.8ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:40:34.126198"], ["title", "Turducken Brisket Frankfurter"], ["updated_at", "2015-03-23 18:40:34.126198"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:40:34.131636"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:40:34.131636"]] SQL (0.6ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:40:34.133666"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:40:34.133666"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:40:34.136121"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:40:34.136121"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:40:34.137526"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:40:34.137526"]]  (0.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 28ms (ActiveRecord: 3.3ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:40:34 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.2ms) Rendered events/_simple_form.html.haml (16.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (19.3ms) Completed 200 OK in 38ms (Views: 20.9ms | ActiveRecord: 3.9ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:40:56 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (9.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (25.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.0ms) Rendered events/_simple_form.html.haml (60.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.7ms) Rendered events/_form.html.haml (5.9ms) Rendered home/index.html.haml within layouts/application (83.9ms) Completed 200 OK in 174ms (Views: 111.3ms | ActiveRecord: 7.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:40:56 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:40:56 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:40:56 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:40:57 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Leberkas Prosciutto Jowl", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: custom_photos_attributes  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:40:57.942149"], ["title", "Leberkas Prosciutto Jowl"], ["updated_at", "2015-03-23 18:40:57.942149"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:40:57.947300"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:40:57.947300"]] SQL (0.7ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:40:57.949312"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:40:57.949312"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:40:57.951658"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:40:57.951658"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:40:57.953093"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:40:57.953093"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 28ms (ActiveRecord: 3.3ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:40:57 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (17.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (20.1ms) Completed 200 OK in 38ms (Views: 21.8ms | ActiveRecord: 3.6ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (68.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:41:26 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (24.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered events/_simple_form.html.haml (86.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (5.3ms) Rendered home/index.html.haml within layouts/application (112.7ms) Completed 200 OK in 245ms (Views: 169.1ms | ActiveRecord: 7.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:41:26 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:41:26 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:41:26 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:41:32 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Hamburger Kevin Corned Beef", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: custom_photos_attributes  (0.2ms) BEGIN SQL (17.9ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:41:32.481956"], ["title", "Hamburger Kevin Corned Beef"], ["updated_at", "2015-03-23 18:41:32.481956"]] SQL (16.1ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:41:32.504845"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:41:32.504845"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:41:32.522499"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:41:32.522499"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:41:32.525079"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:41:32.525079"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:41:32.527142"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:41:32.527142"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 62ms (ActiveRecord: 36.3ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:41:32 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.7ms) Rendered events/_simple_form.html.haml (17.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (19.5ms) Completed 200 OK in 36ms (Views: 21.0ms | ActiveRecord: 3.5ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (1.1ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.6ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.7ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (24.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:43:40 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.0ms) Rendered events/_simple_form.html.haml (72.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (5.1ms) Rendered home/index.html.haml within layouts/application (99.0ms) Completed 200 OK in 230ms (Views: 156.2ms | ActiveRecord: 8.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:43:43 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:43:43 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:43:43 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:43:49 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Flank Pork Loin Pork Belly", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: custom_photos_attributes  (0.2ms) BEGIN SQL (32.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:43:50.008251"], ["title", "Flank Pork Loin Pork Belly"], ["updated_at", "2015-03-23 18:43:50.008251"]] SQL (1.0ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:43:50.045575"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:43:50.045575"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:43:50.048068"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:43:50.048068"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:43:50.050189"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:43:50.050189"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:43:50.051451"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:43:50.051451"]]  (0.7ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 61ms (ActiveRecord: 36.2ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:43:50 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.9ms) Rendered events/_simple_form.html.haml (16.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (19.6ms) Completed 200 OK in 38ms (Views: 21.2ms | ActiveRecord: 3.3ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (23.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:44:52 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (25.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.1ms) Rendered events/_simple_form.html.haml (75.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (5.2ms) Rendered home/index.html.haml within layouts/application (102.4ms) Completed 200 OK in 267ms (Views: 157.1ms | ActiveRecord: 7.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:44:55 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:44:55 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:44:55 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:45:01 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Pig Doner Flank", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: custom_photos_attributes  (0.2ms) BEGIN SQL (17.8ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:45:01.709298"], ["title", "Pig Doner Flank"], ["updated_at", "2015-03-23 18:45:01.709298"]] SQL (15.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:45:01.731922"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:45:01.731922"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:45:01.749180"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:45:01.749180"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:45:01.751683"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:45:01.751683"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:45:01.752967"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:45:01.752967"]]  (0.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 60ms (ActiveRecord: 35.8ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:45:01 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered events/_simple_form.html.haml (17.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (20.4ms) Completed 200 OK in 37ms (Views: 21.9ms | ActiveRecord: 3.2ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.8ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.5ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (23.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:45:49 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered events/_simple_form.html.haml (72.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.4ms) Rendered events/_form.html.haml (5.9ms) Rendered home/index.html.haml within layouts/application (99.8ms) Completed 200 OK in 205ms (Views: 129.8ms | ActiveRecord: 7.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 12:45:49 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 12:45:49 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 12:45:49 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 12:45:50 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Kevin Shankle Brisket", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23626-mr6sog.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23626-14pm1tw.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23626-14pm1tw.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23626-14pm1tw.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23626-14pm1tw20150323-23626-83csrn' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23626-14pm1tw20150323-23626-83csrn' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23626-14pm1tw.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23626-14pm1tw.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23626-14pm1tw.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23626-14pm1tw20150323-23626-1fk1jtg' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23626-14pm1tw20150323-23626-1fk1jtg'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23626-iv8y04.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23626-qt3y9o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23626-lim18.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23626-yxpk2c.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23626-1o5zag3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23626-4j7pi9.png' SQL (17.5ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:45:50.808025"], ["title", "Kevin Shankle Brisket"], ["updated_at", "2015-03-23 18:45:50.808025"]] SQL (16.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 18:45:50.831261"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 18:45:50.831261"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 18:45:50.849583"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:45:50.849583"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 18:45:50.851999"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 18:45:50.851999"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 18:45:50.853328"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 18:45:50.449768"], ["updated_at", "2015-03-23 18:45:50.853328"]]  (16.4ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 483ms (ActiveRecord: 52.4ms) Started GET "/" for 127.0.0.1 at 2015-03-23 12:45:50 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.7ms) Rendered events/_simple_form.html.haml (20.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (23.3ms) Completed 200 OK in 43ms (Views: 25.3ms | ActiveRecord: 3.4ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (21.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 12:58:58 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 65ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:00:23 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 64ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (33.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:00:51 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (22.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.1ms) Rendered events/_simple_form.html.haml (67.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (5.2ms) Rendered home/index.html.haml within layouts/application (93.9ms) Completed 200 OK in 229ms (Views: 149.4ms | ActiveRecord: 7.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 13:00:52 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 13:00:52 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 13:00:52 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 13:00:53 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Spare Ribs Salami Chuck", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23999-1yuj5hm.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23999-7h2hh5.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23999-7h2hh5.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23999-7h2hh5.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23999-7h2hh520150323-23999-1scz211' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23999-7h2hh520150323-23999-1scz211' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23999-7h2hh5.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23999-7h2hh5.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23999-7h2hh5.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23999-7h2hh520150323-23999-1selrze' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23999-7h2hh520150323-23999-1selrze'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23999-jmofa8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23999-1too9t4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23999-1h279by.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23999-6ecgcq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23999-1ahbd08.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-23999-168yiez.png' SQL (29.5ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:00:53.510262"], ["title", "Spare Ribs Salami Chuck"], ["updated_at", "2015-03-23 19:00:53.510262"]] SQL (2.0ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 19:00:53.545808"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 19:00:53.545808"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:00:53.549600"], ["gallery_id", 1], ["updated_at", "2015-03-23 19:00:53.549600"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 19:00:53.551945"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 19:00:53.551945"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:00:53.553240"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:00:53.149711"], ["updated_at", "2015-03-23 19:00:53.553240"]]  (16.4ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 472ms (ActiveRecord: 49.8ms) Started GET "/" for 127.0.0.1 at 2015-03-23 13:00:53 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (4.2ms) Rendered events/_simple_form.html.haml (13.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (16.3ms) Completed 200 OK in 34ms (Views: 18.1ms | ActiveRecord: 3.0ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Photo Load (0.2ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.2ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:01:46 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 53ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:02:35 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 76ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:03:34 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 76ms  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:04:37 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 44ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:05:58 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 75ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:06:32 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 82ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:07:39 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 77ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:09:22 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 62ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:18:02 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 79ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:18:52 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.3ms) Rendered events/_simple_form.html.haml (70.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (5.6ms) Rendered home/index.html.haml within layouts/application (97.4ms) Completed 200 OK in 227ms (Views: 153.3ms | ActiveRecord: 7.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 13:18:53 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 13:18:53 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 13:18:53 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 13:18:54 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Meatball Spare Ribs Ground Round", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24553-14f86y8.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24553-19f0l9t.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24553-19f0l9t.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24553-19f0l9t.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24553-19f0l9t20150323-24553-1lw6r3h' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24553-19f0l9t20150323-24553-1lw6r3h' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24553-19f0l9t.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24553-19f0l9t.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24553-19f0l9t.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24553-19f0l9t20150323-24553-8gz8qc' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24553-19f0l9t20150323-24553-8gz8qc'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24553-1nur1ut.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24553-172sa5j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24553-xjdhvb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24553-588e5w.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24553-1d2o6f5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24553-19eiu2t.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24553-124jgwd.png' SQL (17.8ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:18:54.648495"], ["title", "Meatball Spare Ribs Ground Round"], ["updated_at", "2015-03-23 19:18:54.648495"]] SQL (15.7ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 19:18:54.672062"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 19:18:54.672062"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:18:54.689611"], ["gallery_id", 1], ["updated_at", "2015-03-23 19:18:54.689611"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 19:18:54.692203"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 19:18:54.692203"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:18:54.693600"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:18:54.270475"], ["updated_at", "2015-03-23 19:18:54.693600"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:18:54.705376"], ["gallery_id", 2], ["updated_at", "2015-03-23 19:18:54.705376"]]  (16.2ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 492ms (ActiveRecord: 51.8ms) Started GET "/" for 127.0.0.1 at 2015-03-23 13:18:54 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.9ms) Rendered events/_simple_form.html.haml (16.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (19.6ms) Completed 200 OK in 37ms (Views: 21.3ms | ActiveRecord: 3.1ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.6ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:21:28 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.9ms) Rendered events/_simple_form.html.haml (70.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (6.0ms) Rendered home/index.html.haml within layouts/application (98.3ms) Completed 200 OK in 229ms (Views: 154.4ms | ActiveRecord: 8.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 13:21:28 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 13:21:28 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 13:21:28 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 13:21:29 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Spare Ribs Pastrami Boudin", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24634-bj41cl.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24634-urxdql.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24634-urxdql.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24634-urxdql.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24634-urxdql20150323-24634-1illytd' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24634-urxdql20150323-24634-1illytd' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24634-urxdql.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24634-urxdql.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24634-urxdql.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24634-urxdql20150323-24634-1evm78h' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24634-urxdql20150323-24634-1evm78h'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24634-1a4hebe.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24634-1m2l7ph.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24634-zhd7q8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24634-1bx0xcg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24634-fltemy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24634-m6gnyu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24634-pi5tyk.png' SQL (18.1ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:21:29.915169"], ["title", "Spare Ribs Pastrami Boudin"], ["updated_at", "2015-03-23 19:21:29.915169"]] SQL (16.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 19:21:29.939860"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 19:21:29.939860"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:21:29.958065"], ["gallery_id", 1], ["updated_at", "2015-03-23 19:21:29.958065"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 19:21:29.960402"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 19:21:29.960402"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:21:29.961677"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:21:29.557718"], ["updated_at", "2015-03-23 19:21:29.961677"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:21:29.973646"], ["gallery_id", 2], ["updated_at", "2015-03-23 19:21:29.973646"]]  (15.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 471ms (ActiveRecord: 52.1ms) Started GET "/" for 127.0.0.1 at 2015-03-23 13:21:29 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.2ms) Rendered events/_simple_form.html.haml (17.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (20.1ms) Completed 200 OK in 35ms (Views: 21.7ms | ActiveRecord: 3.1ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:23:52 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (24.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered events/_simple_form.html.haml (71.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.4ms) Rendered events/_form.html.haml (5.9ms) Rendered home/index.html.haml within layouts/application (100.4ms) Completed 200 OK in 231ms (Views: 158.1ms | ActiveRecord: 7.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 13:23:53 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 13:23:53 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 13:23:53 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 13:23:54 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Corned Beef Doner Ham Hock", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24714-homwwm.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24714-w4qafg.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24714-w4qafg.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24714-w4qafg.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24714-w4qafg20150323-24714-n8n8dr' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24714-w4qafg20150323-24714-n8n8dr' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24714-w4qafg.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24714-w4qafg.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24714-w4qafg.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24714-w4qafg20150323-24714-1s0bgmv' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24714-w4qafg20150323-24714-1s0bgmv'  (0.3ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24714-1k7wg87.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24714-4xrbt1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24714-i2kgvz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24714-12j0uf0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24714-6b86a8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24714-1c05z1o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24714-gu92fy.png' SQL (17.5ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:23:54.633403"], ["title", "Corned Beef Doner Ham Hock"], ["updated_at", "2015-03-23 19:23:54.633403"]] SQL (15.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 19:23:54.656846"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 19:23:54.656846"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:23:54.673942"], ["gallery_id", 1], ["updated_at", "2015-03-23 19:23:54.673942"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 19:23:54.676367"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 19:23:54.676367"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:23:54.677636"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:23:54.278890"], ["updated_at", "2015-03-23 19:23:54.677636"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:23:54.688978"], ["gallery_id", 2], ["updated_at", "2015-03-23 19:23:54.688978"]]  (15.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 467ms (ActiveRecord: 50.8ms) Started GET "/" for 127.0.0.1 at 2015-03-23 13:23:54 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.2ms) Rendered events/_simple_form.html.haml (19.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (21.8ms) Completed 200 OK in 38ms (Views: 23.6ms | ActiveRecord: 3.5ms)  (0.8ms) SELECT COUNT(*) FROM "events" Event Load (0.8ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (13.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:24:09 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (19.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (85.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.8ms) Rendered home/index.html.haml within layouts/application (107.5ms) Completed 200 OK in 198ms (Views: 135.1ms | ActiveRecord: 7.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 13:24:09 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 13:24:09 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 13:24:09 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 13:24:10 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Prosciutto Strip Steak Short Ribs", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24762-1pjy5q.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24762-1vcdbgh.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24762-1vcdbgh.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24762-1vcdbgh.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24762-1vcdbgh20150323-24762-soxuiq' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24762-1vcdbgh20150323-24762-soxuiq' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24762-1vcdbgh.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24762-1vcdbgh.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24762-1vcdbgh.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24762-1vcdbgh20150323-24762-12jxchq' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24762-1vcdbgh20150323-24762-12jxchq'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24762-1wwltfd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24762-16pokw0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24762-18mt15m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24762-rvhjgn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24762-gdkgjy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24762-1xk8sm7.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:24:10.945077"], ["title", "Prosciutto Strip Steak Short Ribs"], ["updated_at", "2015-03-23 19:24:10.945077"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 19:24:10.951033"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 19:24:10.951033"]] SQL (0.7ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:24:10.953231"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:24:10.641597"], ["updated_at", "2015-03-23 19:24:10.953231"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 19:24:10.976879"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 19:24:10.976879"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:24:10.978409"], ["gallery_id", 2], ["updated_at", "2015-03-23 19:24:10.978409"]]  (15.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 392ms (ActiveRecord: 18.4ms) Started GET "/" for 127.0.0.1 at 2015-03-23 13:24:11 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.4ms) Rendered events/_simple_form.html.haml (17.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (20.7ms) Completed 200 OK in 36ms (Views: 22.4ms | ActiveRecord: 3.0ms)  (1.0ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.5ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:27:57 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (24.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered events/_simple_form.html.haml (74.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (5.4ms) Rendered home/index.html.haml within layouts/application (101.4ms) Completed 200 OK in 230ms (Views: 156.7ms | ActiveRecord: 7.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 13:27:57 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 13:27:57 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 13:27:57 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 13:27:59 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Tenderloin Tri Tip Frankfurter", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}, "1427138878618"=>{"caption"=>"Test test test", "_destroy"=>"false", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][1427138878618][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">}, "1427138878939"=>{"caption"=>"Test test test", "_destroy"=>"false", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][1427138878939][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-2r24uz.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-1jzc2wu.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-1jzc2wu.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-1jzc2wu.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-1jzc2wu20150323-24881-a1twag' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-1jzc2wu20150323-24881-a1twag' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-1jzc2wu.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-1jzc2wu.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-1jzc2wu.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-1jzc2wu20150323-24881-w3zeu' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-1jzc2wu20150323-24881-w3zeu' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-1t99rrr.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-hnd4oy.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-hnd4oy.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-hnd4oy.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-hnd4oy20150323-24881-1ke5zbe' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-hnd4oy20150323-24881-1ke5zbe' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-hnd4oy.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-hnd4oy.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-hnd4oy.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-hnd4oy20150323-24881-z2p99s' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-hnd4oy20150323-24881-z2p99s' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-fbhzi.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-f36mxa.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-f36mxa.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-f36mxa.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-f36mxa20150323-24881-92cq2f' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-f36mxa20150323-24881-92cq2f' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-f36mxa.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-f36mxa.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-f36mxa.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-f36mxa20150323-24881-uug8l7' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-f36mxa20150323-24881-uug8l7'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-g5waza.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-121rams.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-1y38xlq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-5pholj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-1voirnk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-1fw5u12.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-14fqryd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-4g7hoy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-6uwcnw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-1uilq0d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-1087wd0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-11s4ov7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-163ja0a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-dqruxy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-v1zush.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-8ebtnh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-1pacfjm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-n5o0gk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-1y946t0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-17f92d8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-sp1e7r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-7us4wn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-gn6tay.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24881-knzvs3.png' SQL (30.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:28:00.359753"], ["title", "Tenderloin Tri Tip Frankfurter"], ["updated_at", "2015-03-23 19:28:00.359753"]] SQL (1.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 19:28:00.396015"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 19:28:00.396015"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:28:00.398941"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:27:59.323874"], ["updated_at", "2015-03-23 19:28:00.398941"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:28:00.411028"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:27:59.632668"], ["updated_at", "2015-03-23 19:28:00.411028"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 19:28:00.422695"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 19:28:00.422695"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:28:00.424171"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:27:59.888762"], ["updated_at", "2015-03-23 19:28:00.424171"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:28:00.437203"], ["gallery_id", 2], ["updated_at", "2015-03-23 19:28:00.437203"]]  (16.0ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1167ms (ActiveRecord: 50.2ms) Started GET "/" for 127.0.0.1 at 2015-03-23 13:28:00 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.0ms) Rendered events/_simple_form.html.haml (18.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (21.3ms) Completed 200 OK in 36ms (Views: 23.1ms | ActiveRecord: 3.2ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:28:26 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (19.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.5ms) Rendered events/_simple_form.html.haml (84.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.0ms) Rendered events/_form.html.haml (4.3ms) Rendered home/index.html.haml within layouts/application (107.3ms) Completed 200 OK in 189ms (Views: 133.3ms | ActiveRecord: 7.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 13:28:26 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 13:28:26 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 13:28:26 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 13:28:27 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Strip Steak Salami Pork Chop", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}, "1427138907201"=>{"caption"=>"Test test test", "_destroy"=>"false", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][1427138907201][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">}, "1427138907512"=>{"caption"=>"Test test test", "_destroy"=>"false", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][1427138907512][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-zkcyyo.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-17bfvhv.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-17bfvhv.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-17bfvhv.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-17bfvhv20150323-24973-1cuuule' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-17bfvhv20150323-24973-1cuuule' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-17bfvhv.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-17bfvhv.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-17bfvhv.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-17bfvhv20150323-24973-16fw2eu' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-17bfvhv20150323-24973-16fw2eu' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-1337yyb.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-18db7a5.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-18db7a5.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-18db7a5.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-18db7a520150323-24973-t96r1i' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-18db7a520150323-24973-t96r1i' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-18db7a5.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-18db7a5.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-18db7a5.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-18db7a520150323-24973-3mj6kg' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-18db7a520150323-24973-3mj6kg' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-1dq78hr.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-1oodhxd.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-1oodhxd.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-1oodhxd.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-1oodhxd20150323-24973-14c4xd9' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-1oodhxd20150323-24973-14c4xd9' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-1oodhxd.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-1oodhxd.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-1oodhxd.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-1oodhxd20150323-24973-7ibu70' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-1oodhxd20150323-24973-7ibu70'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-ivofke.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-jh3edw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-2c9c28.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-4cgg69.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-gwqef5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-67q52j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-r7ie1t.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-1qon62m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-18jv0mj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-3gcxb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-1q1drbf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-17swkkc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-k7ax4j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-1uqlk8a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-1xzqbf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-1c5xeqt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-1a0z30z.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-jj8gf3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-bzrfao.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-1o6iiw1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-x4a1gd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-qe16ud.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-l9to03.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-24973-feextz.png' SQL (228.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:28:28.900404"], ["title", "Strip Steak Salami Pork Chop"], ["updated_at", "2015-03-23 19:28:28.900404"]] SQL (1.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 19:28:29.134659"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 19:28:29.134659"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:28:29.137712"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:28:27.921583"], ["updated_at", "2015-03-23 19:28:29.137712"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:28:29.150732"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:28:28.184375"], ["updated_at", "2015-03-23 19:28:29.150732"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 19:28:29.162042"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 19:28:29.162042"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:28:29.163591"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:28:28.437506"], ["updated_at", "2015-03-23 19:28:29.163591"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:28:29.174024"], ["gallery_id", 2], ["updated_at", "2015-03-23 19:28:29.174024"]]  (15.7ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1300ms (ActiveRecord: 248.1ms) Started GET "/" for 127.0.0.1 at 2015-03-23 13:28:29 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.5ms) Rendered events/_simple_form.html.haml (16.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (18.7ms) Completed 200 OK in 33ms (Views: 20.3ms | ActiveRecord: 3.0ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (21.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:28:48 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (19.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered events/_simple_form.html.haml (52.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.3ms) Rendered home/index.html.haml within layouts/application (73.7ms) Completed 200 OK in 160ms (Views: 102.5ms | ActiveRecord: 7.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 13:28:48 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 13:28:48 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 13:28:48 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 13:28:49 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Drumstick Shank Pork", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}, "1427138929215"=>{"caption"=>"Test test test", "_destroy"=>"false", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][1427138929215][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">}, "1427138929527"=>{"caption"=>"Test test test", "_destroy"=>"false", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][1427138929527][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-115mkqj.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-18da6ut.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-18da6ut.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-18da6ut.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-18da6ut20150323-25060-dwd87f' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-18da6ut20150323-25060-dwd87f' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-18da6ut.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-18da6ut.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-18da6ut.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-18da6ut20150323-25060-11mo32y' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-18da6ut20150323-25060-11mo32y' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-1juixe8.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-qo4z8x.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-qo4z8x.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-qo4z8x.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-qo4z8x20150323-25060-1bnp2yh' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-qo4z8x20150323-25060-1bnp2yh' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-qo4z8x.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-qo4z8x.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-qo4z8x.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-qo4z8x20150323-25060-1ovjes8' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-qo4z8x20150323-25060-1ovjes8' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-jolrjq.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-79pilu.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-79pilu.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-79pilu.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-79pilu20150323-25060-17okwgv' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-79pilu20150323-25060-17okwgv' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-79pilu.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-79pilu.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-79pilu.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-79pilu20150323-25060-opyh2q' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-79pilu20150323-25060-opyh2q'  (0.3ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-1mut1fw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-179ygtj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-nktl2n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-1k48ea6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-li46ut.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-1hjk47n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-4de6r4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-14puvvq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-vqyhwb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-ggf1o7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-1laraqt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-z8ccjs.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-408j31.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-e6d1is.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-1kxpuy9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-l1s2h4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-14qkrna.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-17sqfyb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-hlmwl8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-1t0quta.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-ywcnmi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-1bbybkv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-16ie6hf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25060-itaf4h.png' SQL (17.8ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:28:50.891057"], ["title", "Drumstick Shank Pork"], ["updated_at", "2015-03-23 19:28:50.891057"]] SQL (16.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 19:28:50.915062"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 19:28:50.915062"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:28:50.933305"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:28:49.910498"], ["updated_at", "2015-03-23 19:28:50.933305"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:28:50.946359"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:28:50.178900"], ["updated_at", "2015-03-23 19:28:50.946359"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 19:28:50.957463"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 19:28:50.957463"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:28:50.958910"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:28:50.433566"], ["updated_at", "2015-03-23 19:28:50.958910"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:28:50.969766"], ["gallery_id", 2], ["updated_at", "2015-03-23 19:28:50.969766"]]  (15.8ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1113ms (ActiveRecord: 52.5ms) Started GET "/" for 127.0.0.1 at 2015-03-23 13:28:50 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.6ms) Rendered events/_simple_form.html.haml (16.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (19.5ms) Completed 200 OK in 34ms (Views: 21.2ms | ActiveRecord: 3.0ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:32:44 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (22.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.6ms) Rendered events/_simple_form.html.haml (105.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (5.5ms) Rendered home/index.html.haml within layouts/application (131.0ms) Completed 200 OK in 262ms (Views: 185.1ms | ActiveRecord: 7.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 13:32:45 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 13:32:45 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 13:32:45 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 13:32:46 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Prosciutto Bresaola Shank", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25205-4wo9rk.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25205-ne8sf2.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25205-ne8sf2.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25205-ne8sf2.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25205-ne8sf220150323-25205-2vks0v' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25205-ne8sf220150323-25205-2vks0v' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25205-ne8sf2.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25205-ne8sf2.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25205-ne8sf2.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25205-ne8sf220150323-25205-11dsp0c' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25205-ne8sf220150323-25205-11dsp0c'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25205-1lee461.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25205-f4lzs8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25205-cl0lho.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25205-dxoha2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25205-1szz26a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25205-mecc0d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25205-wlvb3w.png' SQL (17.8ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:32:47.043724"], ["title", "Prosciutto Bresaola Shank"], ["updated_at", "2015-03-23 19:32:47.043724"]] SQL (15.9ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 19:32:47.067554"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 19:32:47.067554"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:32:47.085118"], ["gallery_id", 1], ["updated_at", "2015-03-23 19:32:47.085118"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 19:32:47.087565"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 19:32:47.087565"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:32:47.088829"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:32:46.618588"], ["updated_at", "2015-03-23 19:32:47.088829"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:32:47.145463"], ["gallery_id", 2], ["updated_at", "2015-03-23 19:32:47.145463"]]  (15.7ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 586ms (ActiveRecord: 51.5ms) Started GET "/" for 127.0.0.1 at 2015-03-23 13:32:47 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.6ms) Rendered events/_simple_form.html.haml (16.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (18.9ms) Completed 200 OK in 35ms (Views: 20.5ms | ActiveRecord: 4.3ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (1.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (21.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:33:28 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (22.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.7ms) Rendered events/_simple_form.html.haml (106.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.0ms) Rendered events/_form.html.haml (5.0ms) Rendered home/index.html.haml within layouts/application (134.4ms) Completed 200 OK in 262ms (Views: 189.4ms | ActiveRecord: 6.9ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 13:33:28 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 13:33:28 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 13:33:28 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 13:33:29 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Pork Loin Capicola Shankle", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}, "1427139209290"=>{"caption"=>"", "_destroy"=>"false"}, "1427139209514"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25259-m6bq46.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25259-l45huk.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25259-l45huk.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25259-l45huk.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25259-l45huk20150323-25259-1cwqb8k' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25259-l45huk20150323-25259-1cwqb8k' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25259-l45huk.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25259-l45huk.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25259-l45huk.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25259-l45huk20150323-25259-zbedz2' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25259-l45huk20150323-25259-zbedz2'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25259-q2lhey.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25259-1bjy5by.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25259-1ockth4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25259-sq9k4u.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25259-1sovxei.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25259-2aemir.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25259-obnmxf.png' SQL (17.8ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:33:30.185486"], ["title", "Pork Loin Capicola Shankle"], ["updated_at", "2015-03-23 19:33:30.185486"]] SQL (1.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 19:33:30.217118"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 19:33:30.217118"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:33:30.220642"], ["gallery_id", 1], ["updated_at", "2015-03-23 19:33:30.220642"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 19:33:30.223426"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 19:33:30.223426"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:33:30.224784"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:33:29.791556"], ["updated_at", "2015-03-23 19:33:30.224784"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:33:30.237424"], ["gallery_id", 2], ["updated_at", "2015-03-23 19:33:30.237424"]]  (15.7ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 506ms (ActiveRecord: 37.2ms) Started GET "/" for 127.0.0.1 at 2015-03-23 13:33:30 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (16.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (19.2ms) Completed 200 OK in 37ms (Views: 21.0ms | ActiveRecord: 3.1ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:34:25 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (24.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.6ms) Rendered events/_simple_form.html.haml (71.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.4ms) Rendered events/_form.html.haml (5.9ms) Rendered home/index.html.haml within layouts/application (98.2ms) Completed 200 OK in 224ms (Views: 154.2ms | ActiveRecord: 7.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 13:34:26 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 13:34:26 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 13:34:26 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 13:34:27 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Tenderloin Chicken Venison", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427139267127"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427139267127][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427139267430"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427139267430][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-17ykayk.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-112k5ll.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-112k5ll.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-112k5ll.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-112k5ll20150323-25326-1xlgh7v' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-112k5ll20150323-25326-1xlgh7v' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-112k5ll.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-112k5ll.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-112k5ll.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-112k5ll20150323-25326-1clpfn5' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-112k5ll20150323-25326-1clpfn5' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-rszmx3.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1cwgb5z.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1cwgb5z.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1cwgb5z.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1cwgb5z20150323-25326-1w0e25e' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1cwgb5z20150323-25326-1w0e25e' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1cwgb5z.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1cwgb5z.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1cwgb5z.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1cwgb5z20150323-25326-1uku29t' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1cwgb5z20150323-25326-1uku29t' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-zju4x3.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1uaf452.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1uaf452.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1uaf452.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1uaf45220150323-25326-a0kmir' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1uaf45220150323-25326-a0kmir' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1uaf452.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1uaf452.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1uaf452.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1uaf45220150323-25326-c7gxal' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1uaf45220150323-25326-c7gxal'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1oah2ly.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-10j1oh0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1d2z6g.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-r2byte.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-dl5oju.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-futopn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-16ixb9f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1wu9fvn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1d94ara.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-nv8to3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-kok723.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1onri85.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1gdc5g8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-4tw1t5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1lcxpth.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-ac4cag.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1vtjpys.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-9i5m6m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1dd938s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1u1xhsz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1srx6vx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-7gxy60.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1yi56mc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-12dzei6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-5t1frw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-7crc5s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25326-1pvlrjf.png' SQL (18.0ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:34:28.839685"], ["title", "Tenderloin Chicken Venison"], ["updated_at", "2015-03-23 19:34:28.839685"]] SQL (16.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 19:34:28.863697"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 19:34:28.863697"]] SQL (0.8ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:34:28.881801"], ["gallery_id", 1], ["updated_at", "2015-03-23 19:34:28.881801"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 19:34:28.884105"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 19:34:28.884105"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:34:28.885337"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:34:27.809047"], ["updated_at", "2015-03-23 19:34:28.885337"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:34:28.897619"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:34:28.112377"], ["updated_at", "2015-03-23 19:34:28.897619"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:34:28.909003"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:34:28.361503"], ["updated_at", "2015-03-23 19:34:28.909003"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:34:28.924013"], ["gallery_id", 2], ["updated_at", "2015-03-23 19:34:28.924013"]]  (16.2ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1175ms (ActiveRecord: 53.1ms) Started GET "/" for 127.0.0.1 at 2015-03-23 13:34:28 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.9ms) Rendered events/_simple_form.html.haml (17.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (19.6ms) Completed 200 OK in 35ms (Views: 21.3ms | ActiveRecord: 3.1ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.6ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:37:04 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (9.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (26.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.7ms) Rendered events/_simple_form.html.haml (77.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.4ms) Rendered events/_form.html.haml (5.4ms) Rendered home/index.html.haml within layouts/application (104.6ms) Completed 200 OK in 235ms (Views: 161.9ms | ActiveRecord: 7.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 13:37:05 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 13:37:05 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 13:37:05 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 13:37:07 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Boudin Drumstick Kielbasa", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"gallery_title"=>"gallery", "caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427139426380"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427139426380][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427139426693"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427139426693][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Unpermitted parameters: gallery_title Unpermitted parameters: gallery_title Unpermitted parameters: gallery_title Unpermitted parameters: gallery_title Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1hxuyux.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-6n0128.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-6n0128.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-6n0128.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-6n012820150323-25455-85funr' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-6n012820150323-25455-85funr' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-6n0128.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-6n0128.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-6n0128.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-6n012820150323-25455-mxz0is' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-6n012820150323-25455-mxz0is' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1q963k7.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-ps4086.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-ps4086.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-ps4086.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-ps408620150323-25455-1o0zvvc' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-ps408620150323-25455-1o0zvvc' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-ps4086.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-ps4086.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-ps4086.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-ps408620150323-25455-114p48p' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-ps408620150323-25455-114p48p' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-119dh68.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1nvl87h.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1nvl87h.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1nvl87h.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1nvl87h20150323-25455-wcokmp' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1nvl87h20150323-25455-wcokmp' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1nvl87h.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1nvl87h.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1nvl87h.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1nvl87h20150323-25455-rifbh1' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1nvl87h20150323-25455-rifbh1'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-dt4xo0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1qftlxg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1hezn2b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-srekv0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1tqpzeg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1ealeyo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-17y66n9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-vuw6ps.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-oeth00.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1tq9x3x.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1ixx49u.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-zwlqnj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1q550ef.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-n9d6en.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-29l2qx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-995zqv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-gsbm95.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1r7k2b1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-2bfnpg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-j8nnhg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-116spsw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-nvglet.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1xjj8ye.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1ibn59n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1w7qf9a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1h5o2rq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25455-1g1thpc.png' SQL (18.2ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:37:08.179072"], ["title", "Boudin Drumstick Kielbasa"], ["updated_at", "2015-03-23 19:37:08.179072"]] SQL (15.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 19:37:08.203530"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 19:37:08.203530"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:37:08.220750"], ["gallery_id", 1], ["updated_at", "2015-03-23 19:37:08.220750"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 19:37:08.223222"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 19:37:08.223222"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:37:08.224482"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:37:07.088724"], ["updated_at", "2015-03-23 19:37:08.224482"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:37:08.236440"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:37:07.447420"], ["updated_at", "2015-03-23 19:37:08.236440"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:37:08.248160"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:37:07.699018"], ["updated_at", "2015-03-23 19:37:08.248160"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:37:08.259923"], ["gallery_id", 2], ["updated_at", "2015-03-23 19:37:08.259923"]]  (31.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1246ms (ActiveRecord: 68.0ms) Started GET "/" for 127.0.0.1 at 2015-03-23 13:37:08 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.4ms) Rendered events/_simple_form.html.haml (20.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (22.8ms) Completed 200 OK in 38ms (Views: 24.4ms | ActiveRecord: 3.2ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.8ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.5ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (2.9ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:39:56 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (9.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (25.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.9ms) Rendered events/_simple_form.html.haml (111.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (5.5ms) Rendered home/index.html.haml within layouts/application (137.3ms) Completed 200 OK in 265ms (Views: 192.3ms | ActiveRecord: 7.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 13:39:57 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 13:39:57 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 13:39:57 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 13:39:58 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Hamburger Flank Porchetta", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"gallery_title"=>"gallery", "caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427139598064"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427139598064][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427139598386"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427139598386][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-de5b07.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1p2qlm7.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1p2qlm7.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1p2qlm7.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1p2qlm720150323-25591-1vumlrv' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1p2qlm720150323-25591-1vumlrv' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1p2qlm7.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1p2qlm7.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1p2qlm7.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1p2qlm720150323-25591-1un1uyh' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1p2qlm720150323-25591-1un1uyh' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1xi7fu0.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-401ky8.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-401ky8.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-401ky8.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-401ky820150323-25591-1xu8htn' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-401ky820150323-25591-1xu8htn' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-401ky8.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-401ky8.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-401ky8.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-401ky820150323-25591-1p3n6wg' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-401ky820150323-25591-1p3n6wg' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-vd96a6.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-10khvmw.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-10khvmw.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-10khvmw.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-10khvmw20150323-25591-irp8w5' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-10khvmw20150323-25591-irp8w5' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-10khvmw.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-10khvmw.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-10khvmw.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-10khvmw20150323-25591-1m9y3a4' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-10khvmw20150323-25591-1m9y3a4'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1rny8ds.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-71g3aw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-waa6fp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1nbhq4i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1s4l1e5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-2g7keu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1qk83wa.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-d309e4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-18cy85p.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-aws5qa.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-20583k.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-31a7v8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1wdim59.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1woez41.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1vve81z.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-2aupii.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1dsudkn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-ljfji.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-7g0gzb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-xjpen.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-66vj17.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1srjosz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-17097uj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1mfwllr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-jl627f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-1sn9b29.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25591-yeq8fd.png' SQL (17.8ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:39:59.848129"], ["title", "Hamburger Flank Porchetta"], ["updated_at", "2015-03-23 19:39:59.848129"]] SQL (12.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 19:39:59.872539"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 19:39:59.872539"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:39:59.886994"], ["gallery_id", 1], ["updated_at", "2015-03-23 19:39:59.886994"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 19:39:59.889503"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 19:39:59.889503"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:39:59.890892"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:39:58.797018"], ["updated_at", "2015-03-23 19:39:59.890892"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:39:59.902591"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:39:59.100467"], ["updated_at", "2015-03-23 19:39:59.902591"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:39:59.913875"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:39:59.350934"], ["updated_at", "2015-03-23 19:39:59.913875"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:39:59.925386"], ["gallery_id", 2], ["updated_at", "2015-03-23 19:39:59.925386"]]  (15.8ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1182ms (ActiveRecord: 48.7ms) Started GET "/" for 127.0.0.1 at 2015-03-23 13:39:59 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.7ms) Rendered events/_simple_form.html.haml (21.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (24.5ms) Completed 200 OK in 39ms (Views: 26.1ms | ActiveRecord: 3.1ms)  (0.8ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 13:40:59 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (25.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.7ms) Rendered events/_simple_form.html.haml (112.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (5.3ms) Rendered home/index.html.haml within layouts/application (139.5ms) Completed 200 OK in 266ms (Views: 192.9ms | ActiveRecord: 7.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 13:40:59 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 13:40:59 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 13:40:59 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 13:41:01 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Jerky Sirloin Meatloaf", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"gallery_title"=>"gallery", "caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427139660662"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427139660662][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427139660973"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427139660973][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-1858g1c.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-9faku3.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-9faku3.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-9faku3.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-9faku320150323-25692-1m3r177' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-9faku320150323-25692-1m3r177' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-9faku3.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-9faku3.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-9faku3.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-9faku320150323-25692-1yju57d' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-9faku320150323-25692-1yju57d' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-1bprsew.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-ne7oq1.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-ne7oq1.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-ne7oq1.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-ne7oq120150323-25692-f5hkj2' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-ne7oq120150323-25692-f5hkj2' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-ne7oq1.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-ne7oq1.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-ne7oq1.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-ne7oq120150323-25692-hbmaxk' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-ne7oq120150323-25692-hbmaxk' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-1493mla.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-fl2zn4.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-fl2zn4.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-fl2zn4.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-fl2zn420150323-25692-8qg17j' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-fl2zn420150323-25692-8qg17j' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-fl2zn4.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-fl2zn4.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-fl2zn4.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-fl2zn420150323-25692-1kme1za' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-fl2zn420150323-25692-1kme1za'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-1by6qb0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-loxu2n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-2t368a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-149q2jx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-zyrg7k.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-5bn4s3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-1ymdcy5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-1nt729x.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-lgfytf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-1kc8d2e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-1smuaxb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-1ljnhtc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-1yrxdcn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-py9oku.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-q5wi0k.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-1a5qvj6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-ooc2mg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-53fgzj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-atoccp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-1wavmf1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-mnm9g0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-7fhebn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-28ylm6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-tc7emh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-1sfabhn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-1dfyy2v.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-25692-18q2yyr.png' SQL (17.9ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:41:02.410147"], ["title", "Jerky Sirloin Meatloaf"], ["updated_at", "2015-03-23 19:41:02.410147"]] SQL (16.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 19:41:02.433555"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 19:41:02.433555"]] SQL (1.1ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:41:02.451995"], ["gallery_id", 1], ["updated_at", "2015-03-23 19:41:02.451995"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 19:41:02.454662"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 19:41:02.454662"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:41:02.455915"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:41:01.381406"], ["updated_at", "2015-03-23 19:41:02.455915"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:41:02.467888"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:41:01.676798"], ["updated_at", "2015-03-23 19:41:02.467888"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 19:41:02.479180"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 19:41:01.927007"], ["updated_at", "2015-03-23 19:41:02.479180"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 19:41:02.490490"], ["gallery_id", 2], ["updated_at", "2015-03-23 19:41:02.490490"]]  (15.8ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1162ms (ActiveRecord: 53.3ms) Started GET "/" for 127.0.0.1 at 2015-03-23 13:41:02 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.0ms) Rendered events/_simple_form.html.haml (21.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (23.6ms) Completed 200 OK in 38ms (Views: 25.2ms | ActiveRecord: 3.0ms)  (0.8ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (15.9ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 14:05:57 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (9.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (26.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.7ms) Rendered events/_simple_form.html.haml (121.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (5.4ms) Rendered home/index.html.haml within layouts/application (149.0ms) Completed 200 OK in 299ms (Views: 207.8ms | ActiveRecord: 8.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 14:05:58 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 14:05:58 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 14:05:58 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 14:05:59 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Meatloaf Ribeye Chuck", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"gallery_title"=>"gallery", "caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427141159185"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427141159185][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427141159496"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427141159496][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN  (0.2ms) ROLLBACK Redirected to http://localhost:3003/ Completed 302 Found in 22ms (ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2015-03-23 14:05:59 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (10.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.1ms) Rendered events/_simple_form.html.haml (23.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (26.2ms) Completed 200 OK in 43ms (Views: 27.9ms | ActiveRecord: 3.9ms)  (2.1ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.8ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (41.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 14:08:05 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (9.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (25.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.3ms) Rendered events/_simple_form.html.haml (113.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (5.7ms) Rendered home/index.html.haml within layouts/application (170.2ms) Completed 200 OK in 369ms (Views: 260.4ms | ActiveRecord: 9.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 14:08:05 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 14:08:05 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 14:08:05 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 14:08:07 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Shank Bacon Pig", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"gallery_title"=>"gallery", "caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427141286478"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427141286478][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427141286796"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427141286796][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Completed 500 Internal Server Error in 3ms  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 14:08:40 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.2ms) Rendered events/_simple_form.html.haml (59.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (4.8ms) Rendered home/index.html.haml within layouts/application (81.3ms) Completed 200 OK in 169ms (Views: 109.9ms | ActiveRecord: 6.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 14:08:41 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 14:08:41 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 14:08:41 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 14:08:42 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Andouille Tri Tip Bacon", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"gallery_title"=>"gallery", "caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427141322174"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427141322174][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427141322483"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427141322483][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Completed 500 Internal Server Error in 3ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 14:09:44 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (22.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.0ms) Rendered events/_simple_form.html.haml (58.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (4.6ms) Rendered home/index.html.haml within layouts/application (80.2ms) Completed 200 OK in 166ms (Views: 108.1ms | ActiveRecord: 7.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 14:09:45 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 14:09:45 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 14:09:45 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 14:09:46 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Chicken Pork Loin Venison", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"gallery_title"=>"gallery", "caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427141385993"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427141385993][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427141386321"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427141386321][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-4p6a4w.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1g14ynp.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1g14ynp.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1g14ynp.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1g14ynp20150323-26503-dt6aib' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1g14ynp20150323-26503-dt6aib' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1g14ynp.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1g14ynp.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1g14ynp.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1g14ynp20150323-26503-8qipi3' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1g14ynp20150323-26503-8qipi3' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-r8cf73.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1j8j5z4.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1j8j5z4.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1j8j5z4.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1j8j5z420150323-26503-16jxb3q' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1j8j5z420150323-26503-16jxb3q' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1j8j5z4.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1j8j5z4.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1j8j5z4.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1j8j5z420150323-26503-q6n64x' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1j8j5z420150323-26503-q6n64x' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1ud28ak.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-y442kk.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-y442kk.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-y442kk.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-y442kk20150323-26503-11xnefz' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-y442kk20150323-26503-11xnefz' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-y442kk.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-y442kk.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-y442kk.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-y442kk20150323-26503-1tw84m3' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-y442kk20150323-26503-1tw84m3'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-icmnbj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-155pmpj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-19mtrxf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-ej95xr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1ie288i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-yohay1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-m6afa0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1wuw5l5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-zp8vwe.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-rcvclo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-3t2rdc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1vkcscj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-p51g2i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-60lgh2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-yc4ffj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1r9z4yf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1nacqjv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-124akhj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1djd01t.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1yt4q5b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1vtwqga.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-xg7hak.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1ao12rm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-1h6sekk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-11c1g8j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-700nlc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26503-16na6zk.png' SQL (32.5ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:09:47.871406"], ["title", "Chicken Pork Loin Venison"], ["updated_at", "2015-03-23 20:09:47.871406"]] SQL (1.0ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 20:09:47.909535"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 20:09:47.909535"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:09:47.912049"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:09:47.912049"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 20:09:47.914215"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 20:09:47.914215"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:09:47.915422"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:09:46.710187"], ["updated_at", "2015-03-23 20:09:47.915422"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:09:47.927240"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:09:47.116932"], ["updated_at", "2015-03-23 20:09:47.927240"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:09:47.938464"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:09:47.395677"], ["updated_at", "2015-03-23 20:09:47.938464"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:09:47.953891"], ["gallery_id", 2], ["updated_at", "2015-03-23 20:09:47.953891"]]  (31.4ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1319ms (ActiveRecord: 67.5ms) Started GET "/" for 127.0.0.1 at 2015-03-23 14:09:47 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.2ms) Rendered events/_simple_form.html.haml (20.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (23.5ms) Completed 200 OK in 38ms (Views: 25.3ms | ActiveRecord: 3.0ms)  (0.8ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 14:12:27 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (10.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (27.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.3ms) Rendered events/_simple_form.html.haml (80.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (2.3ms) Rendered events/_form.html.haml (7.0ms) Rendered home/index.html.haml within layouts/application (109.5ms) Completed 200 OK in 236ms (Views: 165.1ms | ActiveRecord: 7.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 14:12:27 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 14:12:27 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 14:12:27 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 14:12:29 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Andouille Bacon Porchetta", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"gallery_title"=>"gallery", "caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427141548483"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427141548483][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427141548802"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427141548802][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-evwk4j.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-1vpeyj6.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-1vpeyj6.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-1vpeyj6.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-1vpeyj620150323-26630-kno1ix' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-1vpeyj620150323-26630-kno1ix' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-1vpeyj6.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-1vpeyj6.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-1vpeyj6.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-1vpeyj620150323-26630-mfjnzp' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-1vpeyj620150323-26630-mfjnzp' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-1z0ffhy.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-m4ck3e.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-m4ck3e.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-m4ck3e.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-m4ck3e20150323-26630-1ct1f8e' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-m4ck3e20150323-26630-1ct1f8e' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-m4ck3e.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-m4ck3e.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-m4ck3e.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-m4ck3e20150323-26630-10xujfs' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-m4ck3e20150323-26630-10xujfs' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-henr0j.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-12e7nic.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-12e7nic.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-12e7nic.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-12e7nic20150323-26630-gt6xr0' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-12e7nic20150323-26630-gt6xr0' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-12e7nic.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-12e7nic.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-12e7nic.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-12e7nic20150323-26630-ffu91w' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-12e7nic20150323-26630-ffu91w'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-1dwh7iy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-wb9qeo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-10dgw8w.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-n3nx6r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-1ng6q4t.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-auuhv5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-mmjp41.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-1f9r7ht.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-zrxrqc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-18t8edq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-vzz9iv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-d66w30.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-18culxm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-ngvdox.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-1pu6ho8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-jgbl6k.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-tszcn0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-12s2tuu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-uxly5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-1iplfsf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-1qt8jw2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-1co2ddv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-1j678a2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-1qaswph.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-6np57h.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-iiqd45.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26630-1htjsun.png' SQL (17.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:12:30.241482"], ["title", "Andouille Bacon Porchetta"], ["updated_at", "2015-03-23 20:12:30.241482"]] SQL (16.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 20:12:30.265245"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 20:12:30.265245"]] SQL (1.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:12:30.283294"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:12:30.283294"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 20:12:30.286118"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 20:12:30.286118"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:12:30.287582"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:12:29.198953"], ["updated_at", "2015-03-23 20:12:30.287582"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:12:30.300631"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:12:29.505603"], ["updated_at", "2015-03-23 20:12:30.300631"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:12:30.312718"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:12:29.765001"], ["updated_at", "2015-03-23 20:12:30.312718"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:12:30.323180"], ["gallery_id", 2], ["updated_at", "2015-03-23 20:12:30.323180"]]  (15.8ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1185ms (ActiveRecord: 52.8ms) Started GET "/" for 127.0.0.1 at 2015-03-23 14:12:30 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.1ms) Rendered events/_simple_form.html.haml (21.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (23.8ms) Completed 200 OK in 39ms (Views: 25.6ms | ActiveRecord: 3.0ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (23.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.5ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 14:13:49 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (10.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (26.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.2ms) Rendered events/_simple_form.html.haml (76.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (5.2ms) Rendered home/index.html.haml within layouts/application (103.9ms) Completed 200 OK in 233ms (Views: 160.4ms | ActiveRecord: 7.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 14:13:49 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 14:13:49 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 14:13:49 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 14:13:51 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Tongue Short Loin Capicola", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"gallery_title"=>"gallery", "caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427141630764"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427141630764][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427141631090"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427141631090][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-kxjdnq.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1kclehw.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1kclehw.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1kclehw.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1kclehw20150323-26733-z9xgx7' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1kclehw20150323-26733-z9xgx7' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1kclehw.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1kclehw.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1kclehw.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1kclehw20150323-26733-ci8ie5' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1kclehw20150323-26733-ci8ie5' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1srn5lt.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-vpx88j.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-vpx88j.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-vpx88j.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-vpx88j20150323-26733-pcbdaa' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-vpx88j20150323-26733-pcbdaa' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-vpx88j.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-vpx88j.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-vpx88j.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-vpx88j20150323-26733-14cj8fp' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-vpx88j20150323-26733-14cj8fp' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1blcgmu.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1o4d4j5.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1o4d4j5.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1o4d4j5.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1o4d4j520150323-26733-w2xalh' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1o4d4j520150323-26733-w2xalh' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1o4d4j5.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1o4d4j5.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1o4d4j5.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1o4d4j520150323-26733-6g8mwj' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1o4d4j520150323-26733-6g8mwj'  (0.3ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1b2rrx7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1xsw5h2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1joq4j3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1nca32u.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-krk1el.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1s2gx38.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-wfpb4r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-7hzks2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1qkyl0o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-845scs.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1xhyuut.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-u2gevb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-2d06us.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-2kmsyp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-125izie.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-psugve.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-z25c0o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1fj2iik.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1w9z45t.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-sxv9ez.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-etuu29.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-ln0r1f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1nhjhmo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-1dzn80l.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-dxhdfz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-rvbvz4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26733-pc484h.png' SQL (17.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:13:52.565906"], ["title", "Tongue Short Loin Capicola"], ["updated_at", "2015-03-23 20:13:52.565906"]] SQL (15.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 20:13:52.589635"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 20:13:52.589635"]] SQL (1.1ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:13:52.606894"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:13:52.606894"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 20:13:52.609573"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 20:13:52.609573"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:13:52.610863"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:13:51.492442"], ["updated_at", "2015-03-23 20:13:52.610863"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:13:52.622268"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:13:51.803060"], ["updated_at", "2015-03-23 20:13:52.622268"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:13:52.633651"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:13:52.066959"], ["updated_at", "2015-03-23 20:13:52.633651"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:13:52.644883"], ["gallery_id", 2], ["updated_at", "2015-03-23 20:13:52.644883"]]  (15.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1211ms (ActiveRecord: 51.8ms) Started GET "/" for 127.0.0.1 at 2015-03-23 14:13:52 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.9ms) Rendered events/_simple_form.html.haml (21.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (23.8ms) Completed 200 OK in 40ms (Views: 25.4ms | ActiveRecord: 4.5ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.9ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.5ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 14:14:33 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (22.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.6ms) Rendered events/_simple_form.html.haml (59.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (5.7ms) Rendered home/index.html.haml within layouts/application (83.5ms) Completed 200 OK in 170ms (Views: 112.3ms | ActiveRecord: 7.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 14:14:33 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 14:14:33 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 14:14:33 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 14:14:35 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Pancetta Tri Tip Chicken", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"gallery_title"=>"gallery", "caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427141674638"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427141674638][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427141674953"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427141674953][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Completed 500 Internal Server Error in 3ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 14:14:48 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (5.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (24.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.3ms) Rendered events/_simple_form.html.haml (62.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.6ms) Rendered events/_form.html.haml (5.2ms) Rendered home/index.html.haml within layouts/application (85.5ms) Completed 200 OK in 175ms (Views: 113.5ms | ActiveRecord: 7.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 14:14:48 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 14:14:48 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 14:14:48 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 14:14:50 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Kevin Salami Pig", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"gallery_title"=>"gallery", "caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427141689399"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427141689399][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427141690082"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427141690082][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Completed 500 Internal Server Error in 3ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 14:15:36 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (22.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.6ms) Rendered events/_simple_form.html.haml (56.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (4.6ms) Rendered home/index.html.haml within layouts/application (78.7ms) Completed 200 OK in 164ms (Views: 106.5ms | ActiveRecord: 6.9ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 14:15:36 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 14:15:36 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 14:15:36 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 14:15:38 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Turducken Flank Ground Round", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"gallery_title"=>"gallery", "caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427141737785"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427141737785][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427141738093"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427141738093][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1n6ioen.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-ijry1d.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-ijry1d.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-ijry1d.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-ijry1d20150323-26893-1r74m8w' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-ijry1d20150323-26893-1r74m8w' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-ijry1d.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-ijry1d.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-ijry1d.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-ijry1d20150323-26893-le4oy' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-ijry1d20150323-26893-le4oy' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-ogclrg.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1ofgcng.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1ofgcng.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1ofgcng.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1ofgcng20150323-26893-3enzk9' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1ofgcng20150323-26893-3enzk9' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1ofgcng.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1ofgcng.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1ofgcng.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1ofgcng20150323-26893-54e55j' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1ofgcng20150323-26893-54e55j' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1yosfzt.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1xflr81.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1xflr81.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1xflr81.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1xflr8120150323-26893-pv2q1m' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1xflr8120150323-26893-pv2q1m' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1xflr81.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1xflr81.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1xflr81.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1xflr8120150323-26893-6h5kyh' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1xflr8120150323-26893-6h5kyh'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-14k1y5z.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-9blutw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1l9838e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1ftk48g.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-9nian9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1salunu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1kxzu84.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-9edvi0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-97p6ap.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1230cb0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-30grij.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1jyqy49.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1pfy349.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-fqel5z.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1iletql.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1ht7vme.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-184rwbz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-8bdd7v.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1ukr9r3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-14y38wx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-nhmmao.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-2krtoc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1exdooq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1x5h77l.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-13nzqwv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-19kpuym.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-26893-1kxpyku.png' SQL (15.9ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:15:39.531956"], ["title", "Turducken Flank Ground Round"], ["updated_at", "2015-03-23 20:15:39.531956"]] SQL (15.1ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 20:15:39.553719"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 20:15:39.553719"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:15:39.570528"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:15:39.570528"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 20:15:39.572526"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 20:15:39.572526"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:15:39.573731"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:15:38.485907"], ["updated_at", "2015-03-23 20:15:39.573731"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:15:39.584757"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:15:38.803663"], ["updated_at", "2015-03-23 20:15:39.584757"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:15:39.595946"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:15:39.054695"], ["updated_at", "2015-03-23 20:15:39.595946"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:15:39.606854"], ["gallery_id", 2], ["updated_at", "2015-03-23 20:15:39.606854"]]  (15.8ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1180ms (ActiveRecord: 49.1ms) Started GET "/" for 127.0.0.1 at 2015-03-23 14:15:39 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.4ms) Rendered events/_simple_form.html.haml (22.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (24.8ms) Completed 200 OK in 39ms (Views: 26.5ms | ActiveRecord: 3.0ms)  (0.8ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 14:18:32 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (9.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (27.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.0ms) Rendered events/_simple_form.html.haml (79.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.5ms) Rendered events/_form.html.haml (5.9ms) Rendered home/index.html.haml within layouts/application (107.2ms) Completed 200 OK in 233ms (Views: 161.0ms | ActiveRecord: 7.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 14:18:32 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 14:18:32 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 14:18:32 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 14:18:34 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Tri Tip Pancetta Ham", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"gallery_title"=>"gallery", "caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427141913380"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427141913380][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427141913693"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427141913693][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (17.4ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:18:34.057200"], ["title", "Tri Tip Pancetta Ham"], ["updated_at", "2015-03-23 20:18:34.057200"]] SQL (16.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 20:18:34.079573"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 20:18:34.079573"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:18:34.097461"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:18:34.097461"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 20:18:34.099887"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 20:18:34.099887"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:18:34.101023"], ["gallery_id", 2], ["updated_at", "2015-03-23 20:18:34.101023"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 58ms (ActiveRecord: 35.8ms) Started GET "/" for 127.0.0.1 at 2015-03-23 14:18:34 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.7ms) Rendered events/_simple_form.html.haml (20.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (23.4ms) Completed 200 OK in 39ms (Views: 25.0ms | ActiveRecord: 4.4ms)  (0.8ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (37.0ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 14:27:26 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (18.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (5.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (41.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.9ms) Rendered events/_simple_form.html.haml (105.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.8ms) Rendered events/_form.html.haml (26.2ms) Rendered home/index.html.haml within layouts/application (172.1ms) Completed 200 OK in 382ms (Views: 298.8ms | ActiveRecord: 7.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 14:27:29 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 14:27:29 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 14:27:29 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 14:27:32 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Fatback Shoulder Ground Round", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427142451253"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427142451253][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427142451554"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427142451554][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (33.3ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:27:32.072610"], ["title", "Fatback Shoulder Ground Round"], ["updated_at", "2015-03-23 20:27:32.072610"]] SQL (31.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 20:27:32.117322"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 20:27:32.117322"]] SQL (32.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:27:32.150173"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:27:32.150173"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 20:27:32.183903"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 20:27:32.183903"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:27:32.185230"], ["gallery_id", 2], ["updated_at", "2015-03-23 20:27:32.185230"]]  (34.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 161ms (ActiveRecord: 132.2ms) Started GET "/" for 127.0.0.1 at 2015-03-23 14:27:32 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (16.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (18.6ms) Completed 200 OK in 35ms (Views: 20.1ms | ActiveRecord: 3.6ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (134.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 14:28:31 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (9.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (25.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.9ms) Rendered events/_simple_form.html.haml (74.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (5.0ms) Rendered home/index.html.haml within layouts/application (100.5ms) Completed 200 OK in 229ms (Views: 156.3ms | ActiveRecord: 7.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 14:28:31 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 14:28:31 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 14:28:31 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 14:28:33 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Pancetta Tri Tip Pig", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"gallery_title"=>"gallery", "caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427142512442"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427142512442][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427142512754"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427142512754][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (18.3ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:28:33.131602"], ["title", "Pancetta Tri Tip Pig"], ["updated_at", "2015-03-23 20:28:33.131602"]] SQL (15.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 20:28:33.154962"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 20:28:33.154962"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:28:33.171954"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:28:33.171954"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 20:28:33.174391"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 20:28:33.174391"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:28:33.175652"], ["gallery_id", 2], ["updated_at", "2015-03-23 20:28:33.175652"]]  (0.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 59ms (ActiveRecord: 36.1ms) Started GET "/" for 127.0.0.1 at 2015-03-23 14:28:33 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.3ms) Rendered events/_simple_form.html.haml (21.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (24.4ms) Completed 200 OK in 39ms (Views: 25.9ms | ActiveRecord: 3.5ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.8ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (21.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 14:29:11 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.5ms) Rendered events/_simple_form.html.haml (60.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (4.6ms) Rendered home/index.html.haml within layouts/application (82.9ms) Completed 200 OK in 176ms (Views: 110.3ms | ActiveRecord: 7.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 14:29:12 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 14:29:12 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 14:29:12 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 14:29:14 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Ribeye Shank Doner", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"gallery_title"=>"gallery", "caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427142553444"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427142553444][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427142553758"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427142553758][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-at6q0s.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-suvx4f.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-suvx4f.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-suvx4f.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-suvx4f20150323-27275-sf6xmb' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-suvx4f20150323-27275-sf6xmb' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-suvx4f.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-suvx4f.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-suvx4f.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-suvx4f20150323-27275-1qzt2bj' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-suvx4f20150323-27275-1qzt2bj' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-19hqntt.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-zn18ht.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-zn18ht.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-zn18ht.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-zn18ht20150323-27275-12fbo25' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-zn18ht20150323-27275-12fbo25' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-zn18ht.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-zn18ht.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-zn18ht.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-zn18ht20150323-27275-12bwhfa' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-zn18ht20150323-27275-12bwhfa' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-7w05q0.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-1mfn2qc.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-1mfn2qc.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-1mfn2qc.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-1mfn2qc20150323-27275-g0l86d' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-1mfn2qc20150323-27275-g0l86d' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-1mfn2qc.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-1mfn2qc.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-1mfn2qc.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-1mfn2qc20150323-27275-r7t2ks' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-1mfn2qc20150323-27275-r7t2ks'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-eb2v3q.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-i89jyg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-jkidn2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-y7v5kn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-i0t5k4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-dqkoru.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-170kvyd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-1dxe80n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-gcf9q9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-1jhb9qv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-zu4m91.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-1pj6hxy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-bauvy4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-hwwlva.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-ttl6xb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-1maw3p7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-1jbemy7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-1s69148.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-1yjxlxh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-65a8km.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-1lj1akq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-10p29vc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-16t78me.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-1emaf3e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-152egt3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-1qkq9ug.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27275-okd7p0.png' SQL (30.5ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:29:15.312334"], ["title", "Ribeye Shank Doner"], ["updated_at", "2015-03-23 20:29:15.312334"]] SQL (1.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 20:29:15.348482"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 20:29:15.348482"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:29:15.351158"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:29:15.351158"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 20:29:15.353305"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 20:29:15.353305"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:29:15.354491"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:29:14.149434"], ["updated_at", "2015-03-23 20:29:15.354491"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:29:15.384365"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:29:14.560532"], ["updated_at", "2015-03-23 20:29:15.384365"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:29:15.395457"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:29:14.812769"], ["updated_at", "2015-03-23 20:29:15.395457"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:29:15.406213"], ["gallery_id", 2], ["updated_at", "2015-03-23 20:29:15.406213"]]  (15.7ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1315ms (ActiveRecord: 50.0ms) Started GET "/" for 127.0.0.1 at 2015-03-23 14:29:15 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.1ms) Rendered events/_simple_form.html.haml (20.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (23.2ms) Completed 200 OK in 38ms (Views: 24.8ms | ActiveRecord: 3.1ms)  (0.8ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 14:29:37 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (9.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (4.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (27.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.0ms) Rendered events/_simple_form.html.haml (75.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.4ms) Rendered events/_form.html.haml (5.7ms) Rendered home/index.html.haml within layouts/application (103.3ms) Completed 200 OK in 269ms (Views: 158.7ms | ActiveRecord: 7.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 14:29:37 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 14:29:37 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 14:29:37 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 14:29:38 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Capicola Boudin Beef Ribs", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"gallery_title"=>"gallery", "caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427142578228"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427142578228][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427142578571"=>{"gallery_title"=>"custom_gallery", "photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427142578571][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1a5miyv.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1stssh1.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1stssh1.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1stssh1.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1stssh120150323-27366-1afvz3i' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1stssh120150323-27366-1afvz3i' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1stssh1.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1stssh1.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1stssh1.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1stssh120150323-27366-1l4rb43' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1stssh120150323-27366-1l4rb43' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-565yjp.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-3sz3p2.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-3sz3p2.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-3sz3p2.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-3sz3p220150323-27366-166y8je' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-3sz3p220150323-27366-166y8je' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-3sz3p2.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-3sz3p2.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-3sz3p2.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-3sz3p220150323-27366-193iy8e' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-3sz3p220150323-27366-193iy8e' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-muzyz4.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-18xvc3k.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-18xvc3k.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-18xvc3k.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-18xvc3k20150323-27366-a4ljvh' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-18xvc3k20150323-27366-a4ljvh' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-18xvc3k.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-18xvc3k.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-18xvc3k.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-18xvc3k20150323-27366-1pc0tvx' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-18xvc3k20150323-27366-1pc0tvx'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1l5ykq0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1u0p5u5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1g22qck.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-e6swrz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-49p171.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-vm9zxg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1tdh3mt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-cmfv00.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1tt876w.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1uic772.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-184mzml.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-14lrx2a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-7tp7dy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1t2bkfj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1l8if3g.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1ahf35m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-i9wvgy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1nuq54d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-45ozxi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-129777a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1xws4lf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-30rsyr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-jv1o3r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-877b5v.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-1fyy3yv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-108a96q.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27366-994v9.png' SQL (17.4ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:29:40.037386"], ["title", "Capicola Boudin Beef Ribs"], ["updated_at", "2015-03-23 20:29:40.037386"]] SQL (1.0ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 20:29:40.066393"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 20:29:40.066393"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:29:40.069045"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:29:40.069045"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 20:29:40.071268"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 20:29:40.071268"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:29:40.072539"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:29:38.983346"], ["updated_at", "2015-03-23 20:29:40.072539"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:29:40.084252"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:29:39.286673"], ["updated_at", "2015-03-23 20:29:40.084252"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:29:40.095912"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:29:39.554828"], ["updated_at", "2015-03-23 20:29:40.095912"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:29:40.107944"], ["gallery_id", 2], ["updated_at", "2015-03-23 20:29:40.107944"]]  (15.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1178ms (ActiveRecord: 36.7ms) Started GET "/" for 127.0.0.1 at 2015-03-23 14:29:40 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.2ms) Rendered events/_simple_form.html.haml (21.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (24.3ms) Completed 200 OK in 39ms (Views: 25.9ms | ActiveRecord: 3.0ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.8ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 14:29:52 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (22.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (70.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.6ms) Rendered events/_form.html.haml (5.8ms) Rendered home/index.html.haml within layouts/application (97.5ms) Completed 200 OK in 200ms (Views: 126.5ms | ActiveRecord: 7.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 14:29:52 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 14:29:52 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 14:29:52 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 14:29:54 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Biltong Pork Shankle", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427142593700"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427142593700][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427142593998"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427142593998][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-1f7vaow.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-1d39hah.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-1d39hah.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-1d39hah.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-1d39hah20150323-27456-1jfnrt3' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-1d39hah20150323-27456-1jfnrt3' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-1d39hah.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-1d39hah.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-1d39hah.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-1d39hah20150323-27456-m1nlwa' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-1d39hah20150323-27456-m1nlwa' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-121uybf.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-13y6c8w.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-13y6c8w.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-13y6c8w.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-13y6c8w20150323-27456-emuyks' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-13y6c8w20150323-27456-emuyks' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-13y6c8w.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-13y6c8w.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-13y6c8w.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-13y6c8w20150323-27456-tz9fqu' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-13y6c8w20150323-27456-tz9fqu' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-sfwbp4.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-aoo7w5.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-aoo7w5.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-aoo7w5.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-aoo7w520150323-27456-1gbf2xv' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-aoo7w520150323-27456-1gbf2xv' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-aoo7w5.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-aoo7w5.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-aoo7w5.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-aoo7w520150323-27456-oapg5n' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-aoo7w520150323-27456-oapg5n'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-th8372.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-d3qi3i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-16ttzgq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-1xhqgc7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-nmjnr1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-1iae6gs.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-cundff.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-1kxmfpi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-mu65x1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-17i98k6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-1fo5nee.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-4arxyz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-1vsdn8v.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-1o4kvuh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-a77qii.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-176v3a5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-1139xc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-nrqlpb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-11h1u9t.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-11yeru4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-1jzy9sb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-14eof4u.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-vyxjt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-ujv69y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-17lj6ob.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-1xz3nyg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27456-xzzba1.png' SQL (17.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:29:55.384581"], ["title", "Biltong Pork Shankle"], ["updated_at", "2015-03-23 20:29:55.384581"]] SQL (16.0ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 20:29:55.408123"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 20:29:55.408123"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:29:55.425874"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:29:55.425874"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 20:29:55.428279"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 20:29:55.428279"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:29:55.429492"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:29:54.390309"], ["updated_at", "2015-03-23 20:29:55.429492"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:29:55.441119"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:29:54.651462"], ["updated_at", "2015-03-23 20:29:55.441119"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:29:55.452542"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:29:54.901625"], ["updated_at", "2015-03-23 20:29:55.452542"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:29:55.463845"], ["gallery_id", 2], ["updated_at", "2015-03-23 20:29:55.463845"]]  (15.7ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1132ms (ActiveRecord: 52.0ms) Started GET "/" for 127.0.0.1 at 2015-03-23 14:29:55 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.6ms) Rendered events/_simple_form.html.haml (15.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (18.8ms) Completed 200 OK in 34ms (Views: 20.6ms | ActiveRecord: 3.7ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (36.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 14:31:29 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (21.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.4ms) Rendered events/_simple_form.html.haml (90.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.5ms) Rendered events/_form.html.haml (5.7ms) Rendered home/index.html.haml within layouts/application (117.4ms) Completed 200 OK in 224ms (Views: 149.1ms | ActiveRecord: 7.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 14:31:29 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 14:31:29 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 14:31:29 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 14:31:30 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Cow Drumstick Jowl", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427142690280"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427142690280][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427142690576"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427142690576][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-11evs7k.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-15laypw.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-15laypw.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-15laypw.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-15laypw20150323-27567-ha7nhy' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-15laypw20150323-27567-ha7nhy' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-15laypw.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-15laypw.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-15laypw.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-15laypw20150323-27567-1xthv6w' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-15laypw20150323-27567-1xthv6w' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-1viohwk.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-mr17uh.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-mr17uh.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-mr17uh.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-mr17uh20150323-27567-lbv8xb' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-mr17uh20150323-27567-lbv8xb' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-mr17uh.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-mr17uh.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-mr17uh.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-mr17uh20150323-27567-1pyvkn5' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-mr17uh20150323-27567-1pyvkn5' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-utzmo5.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-muhebs.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-muhebs.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-muhebs.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-muhebs20150323-27567-1lw2es5' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-muhebs20150323-27567-1lw2es5' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-muhebs.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-muhebs.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-muhebs.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-muhebs20150323-27567-ed6pi9' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-muhebs20150323-27567-ed6pi9'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-vdk66m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-2nl07z.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-1e719j1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-1ugkqwm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-fph8bu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-1vl8foc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-1it1j9o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-1h8etww.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-nuh3z5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-5rg3d6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-1wcjvum.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-1vy9zwk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-1l2kxpw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-4f0zdk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-ukc00c.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-3k0daz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-prpub4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-o04doh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-128dpyb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-wbtrod.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-10fcip1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-1v5n2dm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-1qzyzom.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-1m26m5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-1tuiv6i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-1q1yz0v.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27567-1av9icq.png' SQL (31.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:31:31.935068"], ["title", "Cow Drumstick Jowl"], ["updated_at", "2015-03-23 20:31:31.935068"]] SQL (1.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 20:31:31.976998"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 20:31:31.976998"]] SQL (1.1ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:31:31.979712"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:31:31.979712"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 20:31:31.982128"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 20:31:31.982128"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:31:31.983822"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:31:30.947668"], ["updated_at", "2015-03-23 20:31:31.983822"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:31:31.995962"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:31:31.204598"], ["updated_at", "2015-03-23 20:31:31.995962"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:31:32.007547"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:31:31.455985"], ["updated_at", "2015-03-23 20:31:32.007547"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:31:32.018525"], ["gallery_id", 2], ["updated_at", "2015-03-23 20:31:32.018525"]]  (16.4ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1130ms (ActiveRecord: 52.0ms) Started GET "/" for 127.0.0.1 at 2015-03-23 14:31:32 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.7ms) Rendered events/_simple_form.html.haml (16.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (19.3ms) Completed 200 OK in 34ms (Views: 20.8ms | ActiveRecord: 3.0ms)  (0.8ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 14:31:58 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (22.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (71.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (5.5ms) Rendered home/index.html.haml within layouts/application (98.1ms) Completed 200 OK in 202ms (Views: 127.9ms | ActiveRecord: 7.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 14:31:58 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 14:31:58 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 14:31:58 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 14:32:00 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Swine Short Loin Pancetta", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427142719538"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427142719538][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427142719837"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427142719837][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (17.9ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:32:00.179479"], ["title", "Swine Short Loin Pancetta"], ["updated_at", "2015-03-23 20:32:00.179479"]] SQL (15.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 20:32:00.202529"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 20:32:00.202529"]] SQL (1.1ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:32:00.219726"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:32:00.219726"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 20:32:00.222374"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 20:32:00.222374"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:32:00.223724"], ["gallery_id", 2], ["updated_at", "2015-03-23 20:32:00.223724"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 60ms (ActiveRecord: 35.8ms) Started GET "/" for 127.0.0.1 at 2015-03-23 14:32:00 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.5ms) Rendered events/_simple_form.html.haml (16.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.7ms) Rendered home/index.html.haml within layouts/application (19.1ms) Completed 200 OK in 34ms (Views: 21.0ms | ActiveRecord: 3.4ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.8ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (21.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 14:32:28 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (19.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.9ms) Rendered events/_simple_form.html.haml (86.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (4.6ms) Rendered home/index.html.haml within layouts/application (108.1ms) Completed 200 OK in 194ms (Views: 135.2ms | ActiveRecord: 7.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 14:32:28 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 14:32:28 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 14:32:28 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 14:32:30 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Ribeye Meatloaf Jowl", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427142749840"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427142749840][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427142750139"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427142750139][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1w0xgw8.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-57r1zo.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-57r1zo.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-57r1zo.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-57r1zo20150323-27691-rrotr0' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-57r1zo20150323-27691-rrotr0' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-57r1zo.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-57r1zo.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-57r1zo.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-57r1zo20150323-27691-6ahe75' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-57r1zo20150323-27691-6ahe75' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-19kzbtu.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-14doe4j.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-14doe4j.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-14doe4j.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-14doe4j20150323-27691-1ede4j3' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-14doe4j20150323-27691-1ede4j3' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-14doe4j.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-14doe4j.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-14doe4j.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-14doe4j20150323-27691-2rq7fa' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-14doe4j20150323-27691-2rq7fa' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-10eh13o.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1fog409.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1fog409.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1fog409.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1fog40920150323-27691-1ic9emu' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1fog40920150323-27691-1ic9emu' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1fog409.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1fog409.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1fog409.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1fog40920150323-27691-1pxove1' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1fog40920150323-27691-1pxove1'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-nffuf2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-eifujr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-uk41pc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1f5dzhm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1ifu3t6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1up1nx6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-6taplt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-11zt2zr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1xsg4er.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1oy5fik.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1qo9xy6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-ugpp0b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-yiu3l8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-924mx1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1akxxdj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-lvibw0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1q8mbsr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-14ptsw6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-17en2mc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-5jeub1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-sk3owy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1nkz42o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-20ccgq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-yifpfi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-m1xrxg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1v71co3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-27691-1yxplk9.png' SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:32:31.532064"], ["title", "Ribeye Meatloaf Jowl"], ["updated_at", "2015-03-23 20:32:31.532064"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 20:32:31.537558"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 20:32:31.537558"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:32:31.539347"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:32:31.539347"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 20:32:31.540908"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 20:32:31.540908"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:32:31.542081"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:32:30.528494"], ["updated_at", "2015-03-23 20:32:31.542081"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:32:31.553765"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:32:30.793167"], ["updated_at", "2015-03-23 20:32:31.553765"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 20:32:31.564938"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 20:32:31.045770"], ["updated_at", "2015-03-23 20:32:31.564938"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 20:32:31.576167"], ["gallery_id", 2], ["updated_at", "2015-03-23 20:32:31.576167"]]  (15.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1100ms (ActiveRecord: 18.6ms) Started GET "/" for 127.0.0.1 at 2015-03-23 14:32:31 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.8ms) Rendered events/_simple_form.html.haml (17.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (20.1ms) Completed 200 OK in 35ms (Views: 21.6ms | ActiveRecord: 3.1ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:02:06 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered events/_simple_form.html.haml (60.0ms) Rendered home/index.html.haml within layouts/application (80.9ms) Completed 500 Internal Server Error in 108ms  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (8.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:02:36 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.4ms) Rendered events/_simple_form.html.haml (53.9ms) Rendered home/index.html.haml within layouts/application (74.1ms) Completed 500 Internal Server Error in 101ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:02:57 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.7ms) Rendered events/_simple_form.html.haml (39.9ms) Rendered home/index.html.haml within layouts/application (58.2ms) Completed 500 Internal Server Error in 79ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:03:37 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (26.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.7ms) Rendered events/_simple_form.html.haml (74.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (5.6ms) Rendered home/index.html.haml within layouts/application (101.6ms) Completed 200 OK in 233ms (Views: 159.2ms | ActiveRecord: 7.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 15:03:38 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 15:03:38 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 15:03:38 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 15:03:39 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Jowl Bresaola Tongue", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427144619355"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427144619355][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427144619655"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427144619655][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Completed 500 Internal Server Error in 3ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (8.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:10:49 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.7ms) Rendered events/_simple_form.html.haml (71.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.4ms) Rendered events/_form.html.haml (5.7ms) Rendered home/index.html.haml within layouts/application (98.8ms) Completed 200 OK in 230ms (Views: 155.9ms | ActiveRecord: 7.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 15:10:50 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 15:10:50 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 15:10:50 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 15:10:51 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Biltong Turkey Cow", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427145051104"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427145051104][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427145051411"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427145051411][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Completed 500 Internal Server Error in 2ms  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (8.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:12:00 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (24.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered events/_simple_form.html.haml (71.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.4ms) Rendered events/_form.html.haml (5.6ms) Rendered home/index.html.haml within layouts/application (98.1ms) Completed 200 OK in 202ms (Views: 127.4ms | ActiveRecord: 7.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 15:12:01 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 15:12:01 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 15:12:01 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 15:12:02 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Meatloaf Pork Loin Hamburger", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427145122156"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427145122156][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427145122462"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427145122462][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Completed 500 Internal Server Error in 3ms  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:13:17 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (21.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.7ms) Rendered events/_simple_form.html.haml (54.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.0ms) Rendered events/_form.html.haml (4.4ms) Rendered home/index.html.haml within layouts/application (75.7ms) Completed 200 OK in 163ms (Views: 102.9ms | ActiveRecord: 7.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 15:13:17 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 15:13:17 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 15:13:17 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 15:13:18 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Ball Tip Jerky Salami", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427145198147"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427145198147][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427145198443"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427145198443][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Completed 500 Internal Server Error in 3ms  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:13:52 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (25.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered events/_simple_form.html.haml (75.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (5.4ms) Rendered home/index.html.haml within layouts/application (103.0ms) Completed 200 OK in 233ms (Views: 158.5ms | ActiveRecord: 7.9ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 15:13:52 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 15:13:52 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 15:13:52 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 15:13:54 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Pork Meatloaf Ham", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427145233608"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427145233608][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427145233927"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427145233927][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Completed 500 Internal Server Error in 3ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.7ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:16:10 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered events/_simple_form.html.haml (74.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.4ms) Rendered events/_form.html.haml (5.2ms) Rendered home/index.html.haml within layouts/application (101.4ms) Completed 200 OK in 207ms (Views: 132.2ms | ActiveRecord: 7.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 15:16:10 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 15:16:10 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 15:16:10 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 15:16:12 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Spare Ribs Brisket Short Loin", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427145371373"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427145371373][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427145371681"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427145371681][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Completed 500 Internal Server Error in 3ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.5ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (8.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:16:43 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.4ms) Rendered events/_simple_form.html.haml (72.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (5.9ms) Rendered home/index.html.haml within layouts/application (99.8ms) Completed 200 OK in 229ms (Views: 156.8ms | ActiveRecord: 7.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 15:16:44 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 15:16:44 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 15:16:44 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 15:16:45 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Frankfurter Pig Chicken", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427145404992"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427145404992][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427145405297"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427145405297][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Completed 500 Internal Server Error in 3ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (13.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:17:10 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (24.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.0ms) Rendered events/_simple_form.html.haml (72.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.8ms) Rendered events/_form.html.haml (6.3ms) Rendered home/index.html.haml within layouts/application (99.3ms) Completed 200 OK in 230ms (Views: 157.1ms | ActiveRecord: 7.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 15:17:10 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 15:17:10 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 15:17:10 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 15:17:12 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Strip Steak Porchetta Turducken", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427145431445"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427145431445][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427145431742"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427145431742][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Completed 500 Internal Server Error in 3ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:18:40 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (20.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.0ms) Rendered events/_simple_form.html.haml (55.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.6ms) Rendered home/index.html.haml within layouts/application (76.8ms) Completed 200 OK in 167ms (Views: 106.1ms | ActiveRecord: 7.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 15:18:41 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 15:18:41 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 15:18:41 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 15:18:42 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Chicken Fatback Turducken", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427145522031"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427145522031][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427145522335"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427145522335][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Completed 500 Internal Server Error in 3ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:19:34 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.6ms) Rendered events/_simple_form.html.haml (71.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (5.1ms) Rendered home/index.html.haml within layouts/application (98.5ms) Completed 200 OK in 227ms (Views: 154.4ms | ActiveRecord: 7.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 15:19:34 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 15:19:34 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 15:19:34 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 15:19:35 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Capicola Doner Beef Ribs", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427145575208"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427145575208][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427145575505"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427145575505][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (17.2ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 21:19:35.850808"], ["title", "Capicola Doner Beef Ribs"], ["updated_at", "2015-03-23 21:19:35.850808"]] SQL (16.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 21:19:35.872942"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 21:19:35.872942"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 47ms (ActiveRecord: 34.2ms) Started GET "/" for 127.0.0.1 at 2015-03-23 15:19:35 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.6ms) Rendered events/_simple_form.html.haml (15.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (18.4ms) Completed 200 OK in 33ms (Views: 20.0ms | ActiveRecord: 4.1ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Photo Load (2.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.8ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:22:52 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (19.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered events/_simple_form.html.haml (54.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.5ms) Rendered home/index.html.haml within layouts/application (75.4ms) Completed 200 OK in 165ms (Views: 104.5ms | ActiveRecord: 8.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 15:22:52 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 15:22:52 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 15:22:52 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 15:22:54 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Jowl Meatball Andouille", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427145773582"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427145773582][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427145773897"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427145773897][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (29.2ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 21:22:54.268855"], ["title", "Jowl Meatball Andouille"], ["updated_at", "2015-03-23 21:22:54.268855"]] SQL (1.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 21:22:54.304003"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 21:22:54.304003"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 21:22:54.307194"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 21:22:54.307194"]]  (0.4ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 51ms (ActiveRecord: 31.8ms) Started GET "/" for 127.0.0.1 at 2015-03-23 15:22:54 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.8ms) Rendered events/_simple_form.html.haml (17.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (19.7ms) Completed 200 OK in 35ms (Views: 21.2ms | ActiveRecord: 3.4ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.5ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.5ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:31:13 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 56ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:31:42 -0600 Processing by HomeController#index as HTML Completed 500 Internal Server Error in 54ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:32:07 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (8.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (45.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.0ms) Rendered events/_simple_form.html.haml (94.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (5.8ms) Rendered home/index.html.haml within layouts/application (121.7ms) Completed 200 OK in 253ms (Views: 178.7ms | ActiveRecord: 7.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 15:32:08 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 15:32:08 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 15:32:08 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 15:32:10 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Meatball Prosciutto Frankfurter", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427146329381"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427146329381][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427146329683"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427146329683][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.1ms) BEGIN SQL (18.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 21:32:10.028702"], ["title", "Meatball Prosciutto Frankfurter"], ["updated_at", "2015-03-23 21:32:10.028702"]] SQL (13.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 21:32:10.051899"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 21:32:10.051899"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 21:32:10.066788"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 21:32:10.066788"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 49ms (ActiveRecord: 33.1ms) Started GET "/" for 127.0.0.1 at 2015-03-23 15:32:10 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.4ms) Rendered events/_simple_form.html.haml (17.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (20.5ms) Completed 200 OK in 34ms (Views: 22.1ms | ActiveRecord: 3.0ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (16.2ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.7ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:33:04 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (22.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.0ms) Rendered events/_simple_form.html.haml (70.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (5.5ms) Rendered home/index.html.haml within layouts/application (97.1ms) Completed 200 OK in 203ms (Views: 128.2ms | ActiveRecord: 7.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 15:33:04 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 15:33:04 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 15:33:04 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 15:33:06 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Shoulder Prosciutto Filet Mignon", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427146385850"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427146385850][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427146386157"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427146386157][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Completed 500 Internal Server Error in 3ms  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.4ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:33:38 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (19.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.5ms) Rendered events/_simple_form.html.haml (52.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (4.7ms) Rendered home/index.html.haml within layouts/application (73.8ms) Completed 200 OK in 160ms (Views: 103.1ms | ActiveRecord: 6.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 15:33:38 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 15:33:38 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 15:33:38 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 15:33:40 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Shankle Ham Leberkas", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427146419828"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427146419828][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427146420141"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427146420141][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-1uf9d31.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-16dkqp7.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-16dkqp7.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-16dkqp7.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-16dkqp720150323-29280-n3ecgp' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-16dkqp720150323-29280-n3ecgp' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-16dkqp7.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-16dkqp7.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-16dkqp7.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-16dkqp720150323-29280-114e1ez' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-16dkqp720150323-29280-114e1ez' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-daibmi.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-1ho0kni.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-1ho0kni.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-1ho0kni.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-1ho0kni20150323-29280-2preyp' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-1ho0kni20150323-29280-2preyp' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-1ho0kni.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-1ho0kni.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-1ho0kni.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-1ho0kni20150323-29280-1ons65g' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-1ho0kni20150323-29280-1ons65g' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-13vt6lz.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-ofx9w.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-ofx9w.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-ofx9w.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-ofx9w20150323-29280-le66v4' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-ofx9w20150323-29280-le66v4' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-ofx9w.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-ofx9w.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-ofx9w.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-ofx9w20150323-29280-12fzsze' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-ofx9w20150323-29280-12fzsze'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-1g4opzp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-6xk22w.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-nr6xt2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-1srvx8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-1jhcvkv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-wsidi7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-4gb7i7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-uyl9d2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-jf2qoc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-yquft4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-11t853v.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-35oprn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-ptb4wg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-6mtbvi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-xijw9c.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-1rdocb3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-18aspuq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-18h5508.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-pfqkso.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-1usts1e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29280-1nbdq95.png' SQL (31.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 21:33:41.632522"], ["title", "Shankle Ham Leberkas"], ["updated_at", "2015-03-23 21:33:41.632522"]] SQL (1.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 21:33:41.670129"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 21:33:41.670129"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 21:33:41.673161"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 21:33:41.673161"]] SQL (1.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 21:33:41.674683"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 21:33:40.516879"], ["updated_at", "2015-03-23 21:33:41.674683"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 21:33:41.698740"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 21:33:40.938409"], ["updated_at", "2015-03-23 21:33:41.698740"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 21:33:41.716587"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 21:33:41.202652"], ["updated_at", "2015-03-23 21:33:41.716587"]]  (16.3ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1268ms (ActiveRecord: 51.8ms) Started GET "/" for 127.0.0.1 at 2015-03-23 15:33:41 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.7ms) Rendered events/_simple_form.html.haml (16.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (18.6ms) Completed 200 OK in 34ms (Views: 20.2ms | ActiveRecord: 3.2ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (37.3ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:34:32 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (20.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (53.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.4ms) Rendered home/index.html.haml within layouts/application (75.0ms) Completed 200 OK in 163ms (Views: 103.6ms | ActiveRecord: 7.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 15:34:33 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 15:34:33 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 15:34:33 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 15:34:34 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Ribeye Pancetta Pork Belly", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427146474116"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427146474116][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427146474411"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427146474411][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-avfgfz.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-mh7t7d.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-mh7t7d.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-mh7t7d.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-mh7t7d20150323-29372-wh01jv' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-mh7t7d20150323-29372-wh01jv' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-mh7t7d.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-mh7t7d.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-mh7t7d.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-mh7t7d20150323-29372-1vlen4r' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-mh7t7d20150323-29372-1vlen4r' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1dmf573.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1o1w7q6.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1o1w7q6.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1o1w7q6.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1o1w7q620150323-29372-1e3ln0h' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1o1w7q620150323-29372-1e3ln0h' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1o1w7q6.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1o1w7q6.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1o1w7q6.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1o1w7q620150323-29372-1ftkz9i' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1o1w7q620150323-29372-1ftkz9i' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1gya6fj.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1sknbq7.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1sknbq7.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1sknbq7.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1sknbq720150323-29372-m42108' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1sknbq720150323-29372-m42108' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1sknbq7.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1sknbq7.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1sknbq7.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1sknbq720150323-29372-k17mgu' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1sknbq720150323-29372-k17mgu'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1x09gor.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-gwckk2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1gjko8v.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-kp6vis.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-oez606.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1odwv46.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1b5qikl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-kkn762.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-w7p29x.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1uxqgxh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-xf98h1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-13lsjkd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-12l313h.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1b25pmr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1psi346.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-g9vvna.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-lgb1qy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-m5y0tp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-rdbmfl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-2c6s54.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29372-1plccal.png' SQL (229.5ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 21:34:35.799093"], ["title", "Ribeye Pancetta Pork Belly"], ["updated_at", "2015-03-23 21:34:35.799093"]] SQL (0.9ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 21:34:36.034606"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 21:34:36.034606"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 21:34:36.037100"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 21:34:36.037100"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 21:34:36.038437"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 21:34:34.794224"], ["updated_at", "2015-03-23 21:34:36.038437"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 21:34:36.051265"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 21:34:35.107673"], ["updated_at", "2015-03-23 21:34:36.051265"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 21:34:36.062104"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 21:34:35.368769"], ["updated_at", "2015-03-23 21:34:36.062104"]]  (16.4ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1336ms (ActiveRecord: 249.2ms) Started GET "/" for 127.0.0.1 at 2015-03-23 15:34:36 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (16.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (19.7ms) Completed 200 OK in 35ms (Views: 21.4ms | ActiveRecord: 3.0ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (35.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:35:01 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (20.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (55.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.2ms) Rendered home/index.html.haml within layouts/application (76.2ms) Completed 200 OK in 166ms (Views: 105.5ms | ActiveRecord: 7.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 15:35:01 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 15:35:01 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 15:35:01 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 15:35:02 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Sirloin Beef Ribs Shoulder", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-ticni8.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1w74yww.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1w74yww.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1w74yww.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1w74yww20150323-29461-1eaumh2' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1w74yww20150323-29461-1eaumh2' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1w74yww.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1w74yww.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1w74yww.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1w74yww20150323-29461-149q7wp' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1w74yww20150323-29461-149q7wp'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-lpj6uo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-6282m1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-19eks41.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-l1453m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-gi1uh6.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 21:35:03.081793"], ["title", "Sirloin Beef Ribs Shoulder"], ["updated_at", "2015-03-23 21:35:03.081793"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 21:35:03.087236"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 21:35:03.087236"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 21:35:03.088863"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 21:35:03.088863"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 21:35:03.090256"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 21:35:02.800537"], ["updated_at", "2015-03-23 21:35:03.090256"]]  (16.2ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 356ms (ActiveRecord: 18.4ms) Started GET "/" for 127.0.0.1 at 2015-03-23 15:35:03 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.2ms) Rendered events/_simple_form.html.haml (19.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (21.9ms) Completed 200 OK in 37ms (Views: 23.8ms | ActiveRecord: 3.2ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.6ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 15:35:03 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.9ms) Rendered events/_simple_form.html.haml (16.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (18.9ms) Completed 200 OK in 28ms (Views: 20.2ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 15:35:04 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Leberkas Boudin Meatloaf", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427146504202"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427146504202][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427146504502"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427146504502][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1imowqh.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1f70phq.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1f70phq.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1f70phq.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1f70phq20150323-29461-1c32kht' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1f70phq20150323-29461-1c32kht' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1f70phq.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1f70phq.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1f70phq.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1f70phq20150323-29461-tnuvek' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1f70phq20150323-29461-tnuvek' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-ln0hc9.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1pdg2cq.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1pdg2cq.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1pdg2cq.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1pdg2cq20150323-29461-13y46w9' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1pdg2cq20150323-29461-13y46w9' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1pdg2cq.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1pdg2cq.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1pdg2cq.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1pdg2cq20150323-29461-khhkma' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1pdg2cq20150323-29461-khhkma' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-18c99be.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-76hazs.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-76hazs.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-76hazs.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-76hazs20150323-29461-xnx8tm' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-76hazs20150323-29461-xnx8tm' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-76hazs.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-76hazs.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-76hazs.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-76hazs20150323-29461-29qzsg' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-76hazs20150323-29461-29qzsg'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-61cce7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-19tlo0b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-fzh9q3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-b97i3n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-mwx636.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1vf3bxo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1e70i45.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1y3o2nw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-vrppw1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-e7n1oh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1vbfst9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-lckqqo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-14mod.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1qh737a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-eguu42.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1qmnx4n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-75vv6x.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1ep2ec3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-5gs8de.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-dw5phh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-yzbi3a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1ji001m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-85vav.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-rk4jh0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-i7wuo3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-10pivhg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1dbjset.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-hcmwhg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1cb4f93.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1rmiv2v.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-13k8b8r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-s7c2tl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-uh245a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-15ggalc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1d0q5nl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-l0b7b2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1fujcgz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-8rm1oi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-19rk4in.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-17if3xo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-140d80s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1e4jeqo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1ctrkzz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1yi7fga.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-pqvj7k.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-116qojv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1icfw2u.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-ql3afy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1dazzdm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-ib21vr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1vq1mb3.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 21:35:06.265556"], ["title", "Leberkas Boudin Meatloaf"], ["updated_at", "2015-03-23 21:35:06.265556"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 21:35:06.268568"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 21:35:06.268568"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 21:35:06.270263"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 21:35:06.270263"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 21:35:06.271630"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 21:35:04.886042"], ["updated_at", "2015-03-23 21:35:06.271630"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 21:35:06.284817"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 21:35:05.233213"], ["updated_at", "2015-03-23 21:35:06.284817"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 21:35:06.297356"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 21:35:05.510714"], ["updated_at", "2015-03-23 21:35:06.297356"]]  (16.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1490ms (ActiveRecord: 19.3ms) Started GET "/" for 127.0.0.1 at 2015-03-23 15:35:06 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered events/_simple_form.html.haml (18.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (21.7ms) Completed 200 OK in 34ms (Views: 23.7ms | ActiveRecord: 0.7ms)  (0.9ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 15:35:06 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.3ms) Rendered events/_simple_form.html.haml (19.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (2.0ms) Rendered home/index.html.haml within layouts/application (22.2ms) Completed 200 OK in 35ms (Views: 23.5ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 15:35:07 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Frankfurter Drumstick Hamburger", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 21:35:07.153698"], ["title", "Frankfurter Drumstick Hamburger"], ["updated_at", "2015-03-23 21:35:07.153698"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 21:35:07.155595"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 21:35:07.155595"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 21:35:07.157374"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 21:35:07.157374"]]  (0.4ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 15ms (ActiveRecord: 1.7ms) Started GET "/" for 127.0.0.1 at 2015-03-23 15:35:07 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.8ms) Rendered events/_simple_form.html.haml (23.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.7ms) Rendered home/index.html.haml within layouts/application (26.6ms) Completed 200 OK in 44ms (Views: 28.7ms | ActiveRecord: 0.9ms)  (0.5ms) SELECT COUNT(*) FROM "events"  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 15:35:07 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.1ms) Rendered events/_simple_form.html.haml (19.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (21.5ms) Completed 200 OK in 33ms (Views: 23.0ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 15:35:08 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Shoulder Fatback Frankfurter", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-10x48h7.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-zckz1r.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-zckz1r.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-zckz1r.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-zckz1r20150323-29461-1f9rm7p' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-zckz1r20150323-29461-1f9rm7p' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-zckz1r.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-zckz1r.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-zckz1r.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-zckz1r20150323-29461-190gsly' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-zckz1r20150323-29461-190gsly'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-14yw6eu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-2sop65.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-aapv78.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-zxw9jb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-4wsesc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-w8ec6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-dpsnlx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-12b56zp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-l74pog.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1cctydm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1kwx3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-f54sqy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-xksb4d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1ff1s73.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-wgjjec.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-qcnxbt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-bb20qj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1uca66e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1a70kjm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-15zavsy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-19z8im0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-sl3pvd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-mmwt9j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-mbirmj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1y2zsyh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-lrkb1j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1f070m2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1j8ghwy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-ftd6cp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-qiyl0i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-128orda.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-znenzo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-qpea3c.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-1g1djc7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-x68d54.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-10jksh7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29461-70b6ip.png' SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 21:35:08.926952"], ["title", "Shoulder Fatback Frankfurter"], ["updated_at", "2015-03-23 21:35:08.926952"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 21:35:08.929549"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 21:35:08.929549"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 21:35:08.931728"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 21:35:08.309125"], ["updated_at", "2015-03-23 21:35:08.931728"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 21:35:08.946531"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 21:35:08.946531"]]  (16.0ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 786ms (ActiveRecord: 18.0ms) Started GET "/" for 127.0.0.1 at 2015-03-23 15:35:08 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.7ms) Rendered events/_simple_form.html.haml (18.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (21.0ms) Completed 200 OK in 33ms (Views: 22.6ms | ActiveRecord: 0.0ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.6ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (2.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 15:37:50 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (21.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.2ms) Rendered events/_simple_form.html.haml (56.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (5.0ms) Rendered home/index.html.haml within layouts/application (79.2ms) Completed 200 OK in 168ms (Views: 107.4ms | ActiveRecord: 7.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 15:37:50 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 15:37:50 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 15:37:50 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 15:37:51 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Boudin Rump Short Loin", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-14nk45d.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-tygrip.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-tygrip.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-tygrip.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-tygrip20150323-29690-y10mv5' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-tygrip20150323-29690-y10mv5' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-tygrip.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-tygrip.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-tygrip.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-tygrip20150323-29690-1pd05mm' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-tygrip20150323-29690-1pd05mm'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-16bl199.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-gauww6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-19i59mr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-au6xub.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1w5w2iv.png' SQL (17.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 21:37:52.341014"], ["title", "Boudin Rump Short Loin"], ["updated_at", "2015-03-23 21:37:52.341014"]] SQL (16.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 21:37:52.364480"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 21:37:52.364480"]] SQL (1.0ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 21:37:52.382559"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 21:37:52.011054"], ["updated_at", "2015-03-23 21:37:52.382559"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 21:37:52.395782"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 21:37:52.395782"]]  (15.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 435ms (ActiveRecord: 51.2ms) Started GET "/" for 127.0.0.1 at 2015-03-23 15:37:52 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (16.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (19.4ms) Completed 200 OK in 34ms (Views: 21.0ms | ActiveRecord: 3.0ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.7ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (36.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 15:37:52 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (16.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (18.3ms) Completed 200 OK in 28ms (Views: 19.5ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 15:37:53 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Kevin Landjaeger Beef", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1527wii.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-89o146.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-89o146.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-89o146.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-89o14620150323-29690-d9uhap' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-89o14620150323-29690-d9uhap' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-89o146.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-89o146.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-89o146.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-89o14620150323-29690-tmzmrc' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-89o14620150323-29690-tmzmrc'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-teggeq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-154ryga.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1anasix.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-s2mpjx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-bng37y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-gmarny.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-3xcde8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-k4m6g0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-z8qx7n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1h5hr0o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-yx3cv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1dquu0g.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ijk4th.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1m00lm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-3fjen5.png' SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 21:37:54.014638"], ["title", "Kevin Landjaeger Beef"], ["updated_at", "2015-03-23 21:37:54.014638"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 21:37:54.017593"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 21:37:54.017593"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 21:37:54.019173"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 21:37:54.019173"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 21:37:54.020473"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 21:37:53.638562"], ["updated_at", "2015-03-23 21:37:54.020473"]]  (15.9ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 453ms (ActiveRecord: 18.1ms) Started GET "/" for 127.0.0.1 at 2015-03-23 15:37:54 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (19.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (29.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.8ms) Rendered home/index.html.haml within layouts/application (32.1ms) Completed 200 OK in 45ms (Views: 33.9ms | ActiveRecord: 0.8ms)  (0.9ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.7ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (38.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 15:37:54 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (11.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered events/_simple_form.html.haml (25.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (27.3ms) Completed 200 OK in 41ms (Views: 28.7ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 15:37:54 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Andouille Leberkas Sausage", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 21:37:54.877913"], ["title", "Andouille Leberkas Sausage"], ["updated_at", "2015-03-23 21:37:54.877913"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 21:37:54.880303"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 21:37:54.880303"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 21:37:54.882392"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 21:37:54.882392"]]  (0.4ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 14ms (ActiveRecord: 2.0ms) Started GET "/" for 127.0.0.1 at 2015-03-23 15:37:54 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.1ms) Rendered events/_simple_form.html.haml (18.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (21.1ms) Completed 200 OK in 35ms (Views: 23.0ms | ActiveRecord: 0.8ms)  (0.5ms) SELECT COUNT(*) FROM "events"  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.5ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 15:37:55 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.7ms) Rendered events/_simple_form.html.haml (18.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (20.4ms) Completed 200 OK in 31ms (Views: 21.7ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 15:37:56 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Pork Loin Pastrami Bacon", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427146675797"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427146675797][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427146676095"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427146676095][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-9jeh9p.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1vm0mvu.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1vm0mvu.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1vm0mvu.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1vm0mvu20150323-29690-114lzal' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1vm0mvu20150323-29690-114lzal' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1vm0mvu.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1vm0mvu.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1vm0mvu.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1vm0mvu20150323-29690-n7d2p' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1vm0mvu20150323-29690-n7d2p' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-dqv2w0.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1l9bfo9.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1l9bfo9.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1l9bfo9.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1l9bfo920150323-29690-1ce2cb1' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1l9bfo920150323-29690-1ce2cb1' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1l9bfo9.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1l9bfo9.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1l9bfo9.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1l9bfo920150323-29690-madg00' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1l9bfo920150323-29690-madg00' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-l1hasg.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ih1f4n.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ih1f4n.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ih1f4n.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ih1f4n20150323-29690-q9djkr' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ih1f4n20150323-29690-q9djkr' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ih1f4n.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ih1f4n.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ih1f4n.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ih1f4n20150323-29690-wxmu6q' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ih1f4n20150323-29690-wxmu6q'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-17je6li.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-11bc2t5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1c3xxsf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-16mf0ul.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-s6up59.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-h5521m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1y9kgk7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-8e92ga.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1y95ga4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-7egd5i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-tgfjsj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1u4iq41.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-vifl4o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1r1y1wa.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-xgz2nm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-cijsri.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-j6iy9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1rdsfgo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-y90fzt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-17awxbr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-dd4oa0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-cjg7bn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1pydrm6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1hdtb4k.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-wk6nv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-i8dk23.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1kjbew9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-jc04ud.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-tsd9ta.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-112ne05.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-in0jf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1tloa8b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-gn95gq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-e8sohu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1w84yp2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1p1ldta.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1s3p7v9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-5eet3n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-hsgkg1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-evn4v0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1upwk6o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1swgbqe.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1aevoha.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-6s8up6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-mg17cv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-jcqhsa.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-kas9f4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-m30mz1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1xxzps8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-zdr3o2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1md7ftj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1090klr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-70nu4x.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-131ab3x.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1cqrn40.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1wc4tl0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1pg3ve5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-kcrplu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-kmxz3e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-xlilgr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-xw8nd7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ejztbb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1an58hi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-rzosxw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1mp9wbp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-mt7jmb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1d6jn1r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-i7zxc0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1967iir.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-xrwpct.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-11vidcm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-g9f9rv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1i56jaf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-89mfdy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1bqykb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-3mqsn1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-3vts9z.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ptakyf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-10qhfle.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-wm9kiy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-55peb1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-fil801.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1cqsdi9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-c3bbd2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1o8u3ur.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1y8dlgi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-12zxtlq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-s58lja.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-cux836.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1twxpwa.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1nsd7b5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1vdzwpe.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-z1v1zu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1du6gx4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-hc58ye.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1a4zs8j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1qo2n04.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1r217g7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1rcapo0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1epsrd1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-16nhe9w.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ra9fky.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-yyskyg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-jdnzae.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-11i3oq5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1igntyg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-xdtxx1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-14i7t47.png' SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 21:37:58.410465"], ["title", "Pork Loin Pastrami Bacon"], ["updated_at", "2015-03-23 21:37:58.410465"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 21:37:58.413010"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 21:37:58.413010"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 21:37:58.414707"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 21:37:58.414707"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 21:37:58.416495"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 21:37:56.500248"], ["updated_at", "2015-03-23 21:37:58.416495"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 21:37:58.430616"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 21:37:56.772769"], ["updated_at", "2015-03-23 21:37:58.430616"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 21:37:58.443438"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 21:37:57.057649"], ["updated_at", "2015-03-23 21:37:58.443438"]]  (16.3ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 2037ms (ActiveRecord: 18.8ms) Started GET "/" for 127.0.0.1 at 2015-03-23 15:37:58 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.3ms) Rendered events/_simple_form.html.haml (19.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (22.4ms) Completed 200 OK in 34ms (Views: 24.4ms | ActiveRecord: 0.0ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.5ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.6ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (21.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 15:37:58 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (12.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (10.6ms) Rendered events/_simple_form.html.haml (29.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (2.7ms) Rendered home/index.html.haml within layouts/application (33.0ms) Completed 200 OK in 49ms (Views: 35.6ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 15:38:00 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Ribeye Spare Ribs Doner", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427146679524"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][1427146679524][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427146679831"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][1427146679831][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427146680426"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427146680426][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1vzwvjc.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-8di4zr.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-8di4zr.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-8di4zr.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-8di4zr20150323-29690-jd0uu0' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-8di4zr20150323-29690-jd0uu0' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-8di4zr.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-8di4zr.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-8di4zr.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-8di4zr20150323-29690-1fs0rfo' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-8di4zr20150323-29690-1fs0rfo' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1n7v4s.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ynrxis.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ynrxis.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ynrxis.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ynrxis20150323-29690-x3alqi' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ynrxis20150323-29690-x3alqi' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ynrxis.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ynrxis.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ynrxis.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ynrxis20150323-29690-1ombitd' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ynrxis20150323-29690-1ombitd' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ayk7ua.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-17te1v5.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-17te1v5.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-17te1v5.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-17te1v520150323-29690-jfw0n6' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-17te1v520150323-29690-jfw0n6' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-17te1v5.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-17te1v5.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-17te1v5.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-17te1v520150323-29690-15lyoav' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-17te1v520150323-29690-15lyoav' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1al6n7n.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-jikhev.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-jikhev.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-jikhev.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-jikhev20150323-29690-1mdr9ln' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-jikhev20150323-29690-1mdr9ln' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-jikhev.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-jikhev.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-jikhev.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-jikhev20150323-29690-17u5i4j' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-jikhev20150323-29690-17u5i4j' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-xp3yhp.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-v9c0q8.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-v9c0q8.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-v9c0q8.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-v9c0q820150323-29690-14soiya' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-v9c0q820150323-29690-14soiya' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-v9c0q8.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-v9c0q8.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-v9c0q8.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-v9c0q820150323-29690-hjxvn0' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-v9c0q820150323-29690-hjxvn0'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ewpyj8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-c0kk8w.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-56idp2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1linogx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1490h0c.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-jh5wiz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-35a97j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-33grix.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1aazx7m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-vk0qk7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1wee2lr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1wtzwl2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-e63fv2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1s89aey.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ig7ayg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1psgx2y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-iq0sdu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1k3uayf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-mvhmkl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-z0w51.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1j725z4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1nqzela.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-q05vva.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1eru7bn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1q3sgwb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-nm91km.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1eqxh6f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-rxnyap.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1uu5bi9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-p6tkzc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-zlvmw9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-5k52pn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-fzwbub.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ku8j3y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1urx62y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1py3nzu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-oa9tfv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1wbq27n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-15sesek.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-h06n3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-2ws0uv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1f9obfc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-pvymec.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ogfglz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-mrn3ft.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-eqdlcb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-oriass.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1fmq6xn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1o71g5g.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-aakhaz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-l0bac.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-xcg2zh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-12mhhj9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1m8i1o9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-62aqy3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-l0p4tc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ve14zj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-i2jlrx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1xslu3x.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-2bc4b4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1kpnvmm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1kv91ml.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1okpv4q.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-7cue4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-wkhtlw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1l26j6w.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ctemi5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-2ypw0l.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-qt9y4g.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-db0y8j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-h6qwb7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ls2dnq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1e3ski5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1s44d8a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-h6nc9x.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-3qo79a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-xio8hu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-7puia.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-iyruff.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-11voiev.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-wy3bqr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-rpik5e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1a5lqe5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1rrna7b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1awpe1t.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1pge1bo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-8hq9qf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ugt4nh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-128johr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-uo5c0f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-18c1do4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-11476js.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-gkese7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-zpiptt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1qivi6x.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-xai6j6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ssctj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1uwtzzb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-14x0ifk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-11im2lx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ijs6ka.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1p04jie.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1uu4a5v.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-iscqjq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-6xnbi8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1399r0j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-r3t2e5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-11cv0l3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ol7ie6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-5crv0d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1eln331.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1gwq64l.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ikhu8h.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1rklmva.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-17jr6il.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ht34a6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-137qnfw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-17r518i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-xedexv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-giu75l.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1s0zqgy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-10zg86l.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-11wwckd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1r2wi9i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-qkvv9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-166qa8t.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1xipwxu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-3j60fk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-15urpr7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ogbmh4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ibw1is.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1r4n1xm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-u78wn3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-14qsycd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1gict6c.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1rlrbxf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-gtpd7z.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-eq6z7l.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-6ksbeg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-gexhtr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-10tze6k.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1vum8qq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1iy250q.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-4e8sf6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-aojj93.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-73x29q.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ht4618.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-w9sjoq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-8rtto4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1oxst52.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-nv0aoo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1bzrggt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1xdwibg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-19kft4k.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-gl2n1r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-5wavdl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-104ul5k.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-zkenwc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-gdgt2v.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1n1qpg7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1dn6e7r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1sjoi2c.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-zy0hz5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-dm9l4h.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-eii9gx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1u4yjsi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1rpcbro.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1jtrpb8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-cdiznl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-mekv5m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ssbkgp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-x8szc4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-mkkliz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-17dfl9g.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ipdc8a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-d72lmq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1pytcdc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-tiwuzs.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ufnevv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-4cxsml.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1npiiqk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-mq6phl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-16w5a4k.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1y8j3iu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-lwgn3o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1rgz8dj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-gtuq48.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1yzihm8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-f7uom4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-o0gukv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-so4gs8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ffltvx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1mqs99x.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1p9mpbo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-3pc1wf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-2quzlx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1illimd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ad9kjl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-75eg4m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-hb0ml0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-l7csxn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-rupn0i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-11w2d6m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-11x7qnl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1prqx3d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-e19yy7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-58unbz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ikwcun.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-gaunsy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1p8bsyy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-131rvw5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ns7jwp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-h8iqjl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-11wi7ir.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1kc1qch.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-dp4toa.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1jx0tu4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1sl83iv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ovzp12.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-16hatua.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-hdc78u.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1hh5hr3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1fmemmg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1rnww7k.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1dzkq9i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1b0zuwz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1ijyxgg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-gkn4yx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-6vc3ci.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-cjhk5v.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1kfcgo8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ps7xuh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-133opc2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-13v3ebh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1f6w1cp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-156oyd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-16bshz5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-o1m0uv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-rs72fi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1muz1o3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-2taz20.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1k0t5j7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1apzaeo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-yno6u0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-ud0jmx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-7h51q5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-1p2ejqx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-gneuew.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-b49lqm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-29690-mwunxo.png' SQL (148.8ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 21:38:05.039017"], ["title", "Ribeye Spare Ribs Doner"], ["updated_at", "2015-03-23 21:38:05.039017"]] SQL (3.9ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 21:38:05.189927"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 21:38:05.189927"]] SQL (55.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 21:38:05.197105"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 21:38:00.955434"], ["updated_at", "2015-03-23 21:38:05.197105"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 21:38:05.278600"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 21:38:01.276166"], ["updated_at", "2015-03-23 21:38:05.278600"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 21:38:05.295081"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 21:38:01.528087"], ["updated_at", "2015-03-23 21:38:05.295081"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 21:38:05.315883"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 21:38:05.315883"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 21:38:05.317406"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 21:38:01.788798"], ["updated_at", "2015-03-23 21:38:05.317406"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 21:38:05.454890"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 21:38:02.038338"], ["updated_at", "2015-03-23 21:38:05.454890"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 4756ms (ActiveRecord: 210.1ms) Started GET "/" for 127.0.0.1 at 2015-03-23 15:38:05 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (18.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.6ms) Rendered events/_simple_form.html.haml (34.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (2.0ms) Rendered home/index.html.haml within layouts/application (37.9ms) Completed 200 OK in 52ms (Views: 40.0ms | ActiveRecord: 0.0ms)  (0.5ms) SELECT COUNT(*) FROM "events" Event Load (0.3ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.5ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.2ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (5.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (16.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 16:09:00 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.9ms) Rendered events/_simple_form.html.haml (106.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (6.0ms) Rendered home/index.html.haml within layouts/application (134.8ms) Completed 200 OK in 263ms (Views: 189.9ms | ActiveRecord: 7.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 16:09:00 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 16:09:00 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 16:09:00 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 16:09:02 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Shank Strip Steak Flank", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427148541714"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][1427148541714][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427148542013"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][1427148542013][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427148542573"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427148542573][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-11awjqu.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-13f0fy0.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-13f0fy0.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-13f0fy0.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-13f0fy020150323-31308-1sgjril' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-13f0fy020150323-31308-1sgjril' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-13f0fy0.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-13f0fy0.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-13f0fy0.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-13f0fy020150323-31308-7i8rh9' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-13f0fy020150323-31308-7i8rh9' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-12tdtvx.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-96sov9.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-96sov9.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-96sov9.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-96sov920150323-31308-1ojrlmi' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-96sov920150323-31308-1ojrlmi' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-96sov9.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-96sov9.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-96sov9.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-96sov920150323-31308-4ehsmb' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-96sov920150323-31308-4ehsmb' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-19yfhiz.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-3z6lnn.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-3z6lnn.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-3z6lnn.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-3z6lnn20150323-31308-cdeitp' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-3z6lnn20150323-31308-cdeitp' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-3z6lnn.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-3z6lnn.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-3z6lnn.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-3z6lnn20150323-31308-1kxagcw' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-3z6lnn20150323-31308-1kxagcw' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-j5oixl.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-wpph7t.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-wpph7t.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-wpph7t.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-wpph7t20150323-31308-jvv04o' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-wpph7t20150323-31308-jvv04o' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-wpph7t.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-wpph7t.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-wpph7t.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-wpph7t20150323-31308-1duth8w' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-wpph7t20150323-31308-1duth8w' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-19kzgoz.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1nmozfe.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1nmozfe.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1nmozfe.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1nmozfe20150323-31308-u61xuc' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1nmozfe20150323-31308-u61xuc' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1nmozfe.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1nmozfe.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1nmozfe.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1nmozfe20150323-31308-1gu7x7y' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1nmozfe20150323-31308-1gu7x7y'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1pwabl9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-dvyybt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1ov9a5h.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-j23l34.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-w6zfhs.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-wnd5dd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-tmi8de.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1n5pcd4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-watmrl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1pkyj90.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1pqyhqo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-aeymmr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-gs90mb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-loznmp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1aldfvw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1gjbafk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-9pyp14.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1k5gqe4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-10um7py.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-ka1bhd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-2vlfxj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-160a2lg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-6sw5og.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-3b9hrs.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-cb0dd6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1on3ric.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1nej1i9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-t84osq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1fvhs8d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-glp9k2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-fd2ex9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-88vs5l.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1rhmes6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-15nqpmj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1drnxsx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1jwf9c9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-2k1r2s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-17w32s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-rjewxd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-8d5yd2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-usqvxt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1uui244.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-19xti68.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-tbntxg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-lt0sa9.png' SQL (33.4ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:09:04.751392"], ["title", "Shank Strip Steak Flank"], ["updated_at", "2015-03-23 22:09:04.751392"]] SQL (1.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:09:04.790458"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:09:04.790458"]] SQL (1.1ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:09:04.793382"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:09:02.975897"], ["updated_at", "2015-03-23 22:09:04.793382"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:09:04.808035"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:09:03.304570"], ["updated_at", "2015-03-23 22:09:04.808035"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:09:04.821031"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:09:03.596011"], ["updated_at", "2015-03-23 22:09:04.821031"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:09:04.832632"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:09:04.832632"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:09:04.834168"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:09:03.848690"], ["updated_at", "2015-03-23 22:09:04.834168"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:09:04.844988"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:09:04.097007"], ["updated_at", "2015-03-23 22:09:04.844988"]]  (31.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1954ms (ActiveRecord: 69.1ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:09:04 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (16.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (19.5ms) Completed 200 OK in 35ms (Views: 21.3ms | ActiveRecord: 3.3ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (2.9ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (31.5ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:09:05 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered events/_simple_form.html.haml (16.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (18.0ms) Completed 200 OK in 28ms (Views: 19.3ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:09:06 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Ham Bresaola Prosciutto", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427148546059"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427148546059][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427148546357"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427148546357][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-rc014c.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-43rz1o.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-43rz1o.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-43rz1o.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-43rz1o20150323-31308-1mb9dtx' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-43rz1o20150323-31308-1mb9dtx' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-43rz1o.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-43rz1o.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-43rz1o.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-43rz1o20150323-31308-1osbhid' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-43rz1o20150323-31308-1osbhid' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-flquuk.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-a0pjct.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-a0pjct.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-a0pjct.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-a0pjct20150323-31308-1r4t8da' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-a0pjct20150323-31308-1r4t8da' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-a0pjct.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-a0pjct.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-a0pjct.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-a0pjct20150323-31308-2hxfzv' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-a0pjct20150323-31308-2hxfzv' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1n3k8og.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-o6tkyi.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-o6tkyi.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-o6tkyi.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-o6tkyi20150323-31308-r8p8gx' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-o6tkyi20150323-31308-r8p8gx' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-o6tkyi.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-o6tkyi.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-o6tkyi.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-o6tkyi20150323-31308-v7rsnk' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-o6tkyi20150323-31308-v7rsnk'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1lid1de.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-bov6w4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1vags5i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-j0zp76.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-pvki1b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1rkliz4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-s0e8zy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-sqqbab.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1sy5qi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-xwkpu3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1a8uuka.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-dd8hdt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-mprl5i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-shul42.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-cdq75d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-phoqtd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-ljrqgq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1e1itw3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-11yq2a8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-6txr3g.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1fikf3e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-tnnqqz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1cry55j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-kq5p0g.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1h68ffu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-c0mh9b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-bgn634.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-g2pem3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-iqx0by.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-q5z8yx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-j5t57s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-tbr992.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-q60lxx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1gyg3z.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-3vhgfn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1yfbp7d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1152n6s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-6g5qgr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-18phhm5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-5uvyz4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-f0qwz8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1cqa61t.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1qo6woa.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1xkx2vb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1hkds1v.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-6esjwh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-13ykrxr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-gyc9k7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-kze7m8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1l4urh6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-72iyag.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-5jsvfg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1ykmmie.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-ramwfj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1sjhbku.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-5a61q4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-xrwioe.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-lom0hg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-tp8mum.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1dm0u0k.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:09:08.111121"], ["title", "Ham Bresaola Prosciutto"], ["updated_at", "2015-03-23 22:09:08.111121"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:09:08.113909"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:09:08.113909"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:09:08.115588"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:09:08.115588"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:09:08.117013"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:09:06.804191"], ["updated_at", "2015-03-23 22:09:08.117013"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:09:08.129100"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:09:07.063397"], ["updated_at", "2015-03-23 22:09:08.129100"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:09:08.140907"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:09:07.313536"], ["updated_at", "2015-03-23 22:09:08.140907"]]  (15.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1436ms (ActiveRecord: 18.4ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:09:08 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.9ms) Rendered events/_simple_form.html.haml (17.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (19.6ms) Completed 200 OK in 32ms (Views: 21.2ms | ActiveRecord: 0.7ms)  (0.9ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.6ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.7ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (36.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:09:08 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.4ms) Rendered events/_simple_form.html.haml (16.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (18.8ms) Completed 200 OK in 29ms (Views: 20.2ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:09:09 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Boudin Short Ribs Cow", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-zqqc15.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-w2cko8.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-w2cko8.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-w2cko8.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-w2cko820150323-31308-z8rpn6' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-w2cko820150323-31308-z8rpn6' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-w2cko8.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-w2cko8.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-w2cko8.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-w2cko820150323-31308-10ijaq0' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-w2cko820150323-31308-10ijaq0'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1p6r8uw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1p7xs30.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-widrjn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-o76t8z.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-jp4laq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-83y21o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-182up6v.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-kf5649.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-ss6l9o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1o4ylv4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-16v3kkg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1jx1ff4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1frfnhh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1v5n61s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1ghb77y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-u9ynnv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-k3ruq5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-10wqf6s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-19utldy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-6fzquj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-239qb9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1utoeuf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1glli6m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-12r3t8u.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-q7ra0f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1o42jod.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-19pety4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-ua15rg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-r2u9nu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-e3fnam.png' SQL (0.8ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:09:09.712747"], ["title", "Boudin Short Ribs Cow"], ["updated_at", "2015-03-23 22:09:09.712747"]] SQL (0.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:09:09.715674"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:09:09.715674"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:09:09.717859"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:09:09.156837"], ["updated_at", "2015-03-23 22:09:09.717859"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:09:09.735769"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:09:09.735769"]]  (16.4ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 639ms (ActiveRecord: 18.5ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:09:09 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.2ms) Rendered events/_simple_form.html.haml (17.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (20.8ms) Completed 200 OK in 33ms (Views: 22.7ms | ActiveRecord: 0.7ms)  (0.5ms) SELECT COUNT(*) FROM "events" Event Load (0.4ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.5ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (9.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:09:10 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.7ms) Rendered events/_simple_form.html.haml (18.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.7ms) Rendered home/index.html.haml within layouts/application (20.6ms) Completed 200 OK in 31ms (Views: 22.0ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:09:10 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Ribeye Ham Hock Flank", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-78r5pd.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1xqez9b.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1xqez9b.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1xqez9b.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1xqez9b20150323-31308-2wqvy4' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1xqez9b20150323-31308-2wqvy4' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1xqez9b.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1xqez9b.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1xqez9b.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1xqez9b20150323-31308-1on5fju' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1xqez9b20150323-31308-1on5fju'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-5wconp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-6v3k1i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-os2uug.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-uat06f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-eatet8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1o99oyy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-djbvfx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-wm5dlu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-ten9v4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-nq2o5d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-8itvq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-c9cxlp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1rosfyd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1uwkb3i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1vc6g0h.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-50vumy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1i933ta.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-nainsf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-12irv59.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1ev7g10.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-ui9n73.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-td3rm6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-4rupjf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-tl2nh7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-3na5a7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-ismu5o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1rh8xd6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1aknrpy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-u7df3j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-vjgs4r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-wrv8ow.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1l4wlnr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1jbban.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-15cp6cd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-j49uss.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-1khswc0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-16r9xz2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-t82is5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-rjsq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-31308-4ezadq.png' SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:09:11.544638"], ["title", "Ribeye Ham Hock Flank"], ["updated_at", "2015-03-23 22:09:11.544638"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:09:11.547271"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:09:11.547271"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:09:11.548736"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:09:11.548736"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:09:11.550169"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:09:10.825126"], ["updated_at", "2015-03-23 22:09:11.550169"]]  (15.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 938ms (ActiveRecord: 17.4ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:09:11 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.5ms) Rendered events/_simple_form.html.haml (26.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.4ms) Rendered events/_form.html.haml (3.1ms) Rendered home/index.html.haml within layouts/application (32.7ms) Completed 200 OK in 51ms (Views: 35.9ms | ActiveRecord: 0.0ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.5ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.6ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:09:12 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.7ms) Rendered events/_simple_form.html.haml (17.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (19.5ms) Completed 200 OK in 31ms (Views: 20.8ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:09:13 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Short Loin Venison Leberkas", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (16.1ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:09:13.014977"], ["title", "Short Loin Venison Leberkas"], ["updated_at", "2015-03-23 22:09:13.014977"]] SQL (15.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:09:13.032354"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:09:13.032354"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:09:13.048731"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:09:13.048731"]]  (0.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 44ms (ActiveRecord: 32.3ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:09:13 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (12.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (11.2ms) Rendered events/_simple_form.html.haml (29.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (2.5ms) Rendered home/index.html.haml within layouts/application (34.2ms) Completed 200 OK in 51ms (Views: 35.7ms | ActiveRecord: 0.0ms)  (0.7ms) SELECT COUNT(*) FROM "events"  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (6.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 16:24:55 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (36.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.2ms) Rendered events/_simple_form.html.haml (121.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.2ms) Rendered events/_form.html.haml (5.2ms) Rendered home/index.html.haml within layouts/application (147.3ms) Completed 200 OK in 265ms (Views: 191.6ms | ActiveRecord: 8.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 16:24:56 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 16:24:56 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 16:24:56 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 16:24:58 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Tongue Porchetta Pork Belly", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427149497059"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][1427149497059][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427149497392"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][1427149497392][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427149497952"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427149497952][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1ypmp6n.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-swku7r.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-swku7r.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-swku7r.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-swku7r20150323-32078-104p1lh' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-swku7r20150323-32078-104p1lh' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-swku7r.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-swku7r.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-swku7r.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-swku7r20150323-32078-1bxdtqv' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-swku7r20150323-32078-1bxdtqv' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-9jdfcw.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1xje1uy.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1xje1uy.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1xje1uy.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1xje1uy20150323-32078-114cfgb' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1xje1uy20150323-32078-114cfgb' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1xje1uy.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1xje1uy.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1xje1uy.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1xje1uy20150323-32078-1777sx7' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1xje1uy20150323-32078-1777sx7' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1cnvx5m.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-fben20.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-fben20.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-fben20.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-fben2020150323-32078-ocogw7' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-fben2020150323-32078-ocogw7' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-fben20.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-fben20.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-fben20.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-fben2020150323-32078-4a2xws' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-fben2020150323-32078-4a2xws' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1mm29t8.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-51y4k6.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-51y4k6.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-51y4k6.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-51y4k620150323-32078-1nqzqup' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-51y4k620150323-32078-1nqzqup' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-51y4k6.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-51y4k6.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-51y4k6.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-51y4k620150323-32078-17xmjwk' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-51y4k620150323-32078-17xmjwk' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1ps7mlb.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-e6eaek.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-e6eaek.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-e6eaek.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-e6eaek20150323-32078-1dysqm7' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-e6eaek20150323-32078-1dysqm7' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-e6eaek.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-e6eaek.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-e6eaek.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-e6eaek20150323-32078-31anqi' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-e6eaek20150323-32078-31anqi'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1oxrneq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-uvw7u6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-zeaff8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-ale2ox.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-khou7s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1a854s6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1n2d1id.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1829vk6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-46icz4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-foe70b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1k95d9x.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-16bxeqt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-ble71t.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1wly6re.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1n2miy0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1df8q6o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-vkrrc5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-hz7fmd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1h5hvu7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-198od6a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-48khyg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-6gte25.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-b06sy9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1blcy9e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-eoiz5p.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1g93h01.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-123onhv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-k29u5w.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1m364w6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1nh7mjw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-kufojh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1a1mab4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-14ihtdo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-s5chh6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1xf5jwb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-138nel6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-s0klhq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1eo8rxy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-anr5e4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1bqfbbb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-ixwqs2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1j2uo2q.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1aidqgp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1v30u42.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-cfv7i.png' SQL (31.8ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:25:00.255872"], ["title", "Tongue Porchetta Pork Belly"], ["updated_at", "2015-03-23 22:25:00.255872"]] SQL (1.0ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:25:00.294309"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:25:00.294309"]] SQL (1.1ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:25:00.296925"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:24:58.360241"], ["updated_at", "2015-03-23 22:25:00.296925"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:25:00.310438"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:24:58.694202"], ["updated_at", "2015-03-23 22:25:00.310438"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:25:00.321612"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:24:58.985861"], ["updated_at", "2015-03-23 22:25:00.321612"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:25:00.333312"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:25:00.333312"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:25:00.334849"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:24:59.242566"], ["updated_at", "2015-03-23 22:25:00.334849"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:25:00.346669"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:24:59.495419"], ["updated_at", "2015-03-23 22:25:00.346669"]]  (16.3ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 2059ms (ActiveRecord: 52.1ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:25:00 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.5ms) Rendered events/_simple_form.html.haml (17.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (19.6ms) Completed 200 OK in 34ms (Views: 21.1ms | ActiveRecord: 3.2ms)  (0.9ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (8.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:25:00 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.3ms) Rendered events/_simple_form.html.haml (16.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (18.5ms) Completed 200 OK in 29ms (Views: 19.8ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:25:01 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Kielbasa Short Loin Landjaeger", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-wmexug.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-9stgiy.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-9stgiy.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-9stgiy.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-9stgiy20150323-32078-rfgkci' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-9stgiy20150323-32078-rfgkci' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-9stgiy.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-9stgiy.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-9stgiy.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-9stgiy20150323-32078-biiray' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-9stgiy20150323-32078-biiray'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-cjl1xo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-ri3e84.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-myn7ru.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1dqmjcb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-9k8ypo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-mtg9ce.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1ihthuc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1rxrr4a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-i0s028.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1pti0ju.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1ejdd7a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1064ejc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-10ggjev.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-10jddf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-19m2bh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1ocn6wm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-urpzpd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-154iaeb.png' SQL (15.2ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:25:02.088910"], ["title", "Kielbasa Short Loin Landjaeger"], ["updated_at", "2015-03-23 22:25:02.088910"]] SQL (0.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:25:02.106708"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:25:02.106708"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:25:02.109008"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:25:01.609055"], ["updated_at", "2015-03-23 22:25:02.109008"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:25:02.125746"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:25:02.125746"]]  (15.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 578ms (ActiveRecord: 32.5ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:25:02 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (10.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.4ms) Rendered events/_simple_form.html.haml (22.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.8ms) Rendered home/index.html.haml within layouts/application (25.7ms) Completed 200 OK in 39ms (Views: 27.6ms | ActiveRecord: 0.7ms)  (1.1ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.7ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (36.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (1.0ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:25:02 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.8ms) Rendered events/_simple_form.html.haml (19.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.5ms) Rendered events/_form.html.haml (2.0ms) Rendered home/index.html.haml within layouts/application (22.3ms) Completed 200 OK in 34ms (Views: 23.9ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:25:02 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Boudin T Bone Jowl", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:25:02.964468"], ["title", "Boudin T Bone Jowl"], ["updated_at", "2015-03-23 22:25:02.964468"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:25:02.966910"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:25:02.966910"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:25:02.968816"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:25:02.968816"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 15ms (ActiveRecord: 2.0ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:25:02 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.8ms) Rendered events/_simple_form.html.haml (19.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (22.2ms) Completed 200 OK in 35ms (Views: 24.0ms | ActiveRecord: 0.8ms)  (0.5ms) SELECT COUNT(*) FROM "events"  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:25:03 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.9ms) Rendered events/_simple_form.html.haml (19.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (2.5ms) Rendered home/index.html.haml within layouts/application (23.1ms) Completed 200 OK in 35ms (Views: 25.6ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:25:04 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Corned Beef Ball Tip Brisket", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427149503937"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427149503937][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427149504266"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427149504266][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-mhbkj3.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1ddecfl.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1ddecfl.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1ddecfl.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1ddecfl20150323-32078-u72int' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1ddecfl20150323-32078-u72int' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1ddecfl.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1ddecfl.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1ddecfl.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1ddecfl20150323-32078-11xi7sg' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1ddecfl20150323-32078-11xi7sg' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1mhno6w.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-2ztdxv.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-2ztdxv.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-2ztdxv.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-2ztdxv20150323-32078-dia1eu' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-2ztdxv20150323-32078-dia1eu' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-2ztdxv.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-2ztdxv.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-2ztdxv.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-2ztdxv20150323-32078-1yphky4' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-2ztdxv20150323-32078-1yphky4' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-292nck.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-n3b2fu.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-n3b2fu.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-n3b2fu.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-n3b2fu20150323-32078-orwi59' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-n3b2fu20150323-32078-orwi59' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-n3b2fu.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-n3b2fu.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-n3b2fu.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-n3b2fu20150323-32078-1lbzvst' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-n3b2fu20150323-32078-1lbzvst'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-d7swvc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-dezdzt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1ifynpb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1o3c9rt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-pyzjl1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1uj92mt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-yg6wtw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-caw9x6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1f9ker5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-pp7a0k.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-lc9g6i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-qet643.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-8wx730.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-24ttws.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1szhqd9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-15a3e1a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-wha8xx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-93u3js.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1sn4z2h.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-2y9jnu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1uklntr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-vgzgyr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-brwgkh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-okk2vo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1t3o4mz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-s0um1y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-13adrk9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-b1we28.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1k4jsev.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-6eefnb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-pg3u04.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-smvc1k.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1i1xsa9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-ymu2wt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-121l3od.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1yq1kmf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1359oqm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1wj1s4e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-273qku.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-jc9bzn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-16kctju.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1ht0plc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-187ahg5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-e000ys.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1i60bj0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1o6p9fj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1bkirpn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1hcxevb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-d5jbcz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-5124tb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1p5bqi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1o5ghe3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-sd7huk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1ed9nmh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-7x4p30.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-oqkpu6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-jk5952.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1uyn094.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-r8cwol.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-dfc1i8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-9hmldg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-boljzc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-14qf1fk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-4sgb6z.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-157wkw4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-3d8nta.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-124carv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1ri6zra.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1wz1zlg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1n82op9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-l576zj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1fn2zry.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1m5cjxs.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-y77sjr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-v98feq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-pejtkh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-z5vffo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-x6wjko.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-s3ytw1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1mhjenu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-10cqhnz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-18frtr3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1pqngtk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-15z3zvv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-ixzfz0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-3oinr3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1e3yh0f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1dtxldq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1p4c90w.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-23q2al.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-10hlsgu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1g4lc3p.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-13ariop.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-677jvp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-up4xom.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-zmgfi2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-vs233f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-143uqql.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-k2dwev.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-9tz66v.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1ccrkv1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1xm8sl8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-iyo2aw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1k4xnw0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-16qudxf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-15xyf0b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1kj3nud.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-ze055z.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1eue9if.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-uxq3n3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1akakd0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-fff4f4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-w0jge.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1tl1u7m.png' SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:25:06.908360"], ["title", "Corned Beef Ball Tip Brisket"], ["updated_at", "2015-03-23 22:25:06.908360"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:25:06.911035"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:25:06.911035"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:25:06.912828"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:25:06.912828"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:25:06.914529"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:25:04.696328"], ["updated_at", "2015-03-23 22:25:06.914529"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:25:06.928568"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:25:04.961559"], ["updated_at", "2015-03-23 22:25:06.928568"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:25:06.942056"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:25:05.490728"], ["updated_at", "2015-03-23 22:25:06.942056"]]  (16.0ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 2339ms (ActiveRecord: 18.5ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:25:06 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.4ms) Rendered events/_simple_form.html.haml (18.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (21.2ms) Completed 200 OK in 33ms (Views: 22.9ms | ActiveRecord: 0.0ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.5ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:25:07 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (10.1ms) Rendered events/_simple_form.html.haml (21.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.4ms) Rendered events/_form.html.haml (2.8ms) Rendered home/index.html.haml within layouts/application (25.1ms) Completed 200 OK in 37ms (Views: 27.5ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:25:08 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Boudin Jerky Salami", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-rzzlaj.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-aitbwb.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-aitbwb.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-aitbwb.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-aitbwb20150323-32078-h42r5y' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-aitbwb20150323-32078-h42r5y' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-aitbwb.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-aitbwb.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-aitbwb.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-aitbwb20150323-32078-1w2yh3p' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-aitbwb20150323-32078-1w2yh3p'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-188yu4s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-umzbmg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1jya5uc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1a3lvw5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-y04hh8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-dsg4w4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-14x7k3b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-wv59bv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-29s7hx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-m2ps0i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-13wdxye.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-clvx7g.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1w447ck.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-158qy82.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1m5f8f2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-asc0zv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-zim1dl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-elw9b9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-kfg0ie.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1sq6dyw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-19ybmso.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1jcw2pf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-f9gb45.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-bfd0p3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-12ev3pd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-drpzma.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-8nbi7x.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1qnuufn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-m3pfl2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-167gpvp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-135xhwm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-11es8qr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-9c7ze9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1bv8vck.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1tepwwl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-6d4j7v.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1ngm3qc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-rdsg6n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-k8rgxd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-l6szql.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-h1s3tb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-195xdvc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1w0ngvz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1nnboa1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-9ox4pk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1kcph1t.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-1bauak0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32078-afh8b.png' SQL (28.9ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:25:08.910048"], ["title", "Boudin Jerky Salami"], ["updated_at", "2015-03-23 22:25:08.910048"]] SQL (30.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:25:08.940841"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:25:08.940841"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:25:08.974062"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:25:08.974062"]] SQL (16.8ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:25:08.975922"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:25:08.076843"], ["updated_at", "2015-03-23 22:25:08.975922"]]  (16.0ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1012ms (ActiveRecord: 92.7ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:25:09 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (12.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (10.5ms) Rendered events/_simple_form.html.haml (31.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.9ms) Rendered home/index.html.haml within layouts/application (35.7ms) Completed 200 OK in 53ms (Views: 37.9ms | ActiveRecord: 0.0ms)  (0.5ms) SELECT COUNT(*) FROM "events" Event Load (0.3ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.6ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.5ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.2ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (36.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 16:25:59 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (22.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.3ms) Rendered events/_simple_form.html.haml (105.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (5.4ms) Rendered home/index.html.haml within layouts/application (132.9ms) Completed 200 OK in 242ms (Views: 163.5ms | ActiveRecord: 9.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 16:25:59 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 16:25:59 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 16:25:59 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 16:26:01 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Boudin Bacon Sausage", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427149560686"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][1427149560686][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427149561010"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][1427149561010][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427149561584"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427149561584][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1914cl1.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-rfwdao.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-rfwdao.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-rfwdao.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-rfwdao20150323-32490-7u4u6f' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-rfwdao20150323-32490-7u4u6f' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-rfwdao.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-rfwdao.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-rfwdao.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-rfwdao20150323-32490-13209yf' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-rfwdao20150323-32490-13209yf' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-x36oe2.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-clv7fv.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-clv7fv.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-clv7fv.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-clv7fv20150323-32490-1uk23tc' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-clv7fv20150323-32490-1uk23tc' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-clv7fv.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-clv7fv.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-clv7fv.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-clv7fv20150323-32490-si3fl6' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-clv7fv20150323-32490-si3fl6' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-12jftr.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8j1zfc.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8j1zfc.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8j1zfc.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8j1zfc20150323-32490-zeptrm' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8j1zfc20150323-32490-zeptrm' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8j1zfc.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8j1zfc.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8j1zfc.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8j1zfc20150323-32490-i35lnm' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8j1zfc20150323-32490-i35lnm' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-aaj5be.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1sb3ewb.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1sb3ewb.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1sb3ewb.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1sb3ewb20150323-32490-1qbdvac' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1sb3ewb20150323-32490-1qbdvac' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1sb3ewb.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1sb3ewb.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1sb3ewb.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1sb3ewb20150323-32490-1tzz3x2' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1sb3ewb20150323-32490-1tzz3x2' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-195s6w1.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-skeq2v.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-skeq2v.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-skeq2v.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-skeq2v20150323-32490-1hn7z8' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-skeq2v20150323-32490-1hn7z8' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-skeq2v.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-skeq2v.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-skeq2v.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-skeq2v20150323-32490-138ymf' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-skeq2v20150323-32490-138ymf'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-yae78y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-psobod.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-128afjl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-rb22pm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1xx1ufw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-sq76pt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-kvlwgm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-akg3e9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1xaur7h.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1pyytj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1xorf0o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-krp0yf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-345omv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-j7da7j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1o0tlm9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-bv1cmh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1p25c2m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-y5zsm7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-5ov2r5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-raouvf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1ovskau.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-e6mv1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-6ud5wa.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1l2976t.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1hd0tsv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1bquzbb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-18xgj9x.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-16627ug.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-9ugydc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-irpmd2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1llqprj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-19tskon.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-jf24rk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1dm84on.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1bvxsbw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-nrn7oh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-17on0r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-vbzmo8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1n4h46p.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1aapn46.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1cw1mx6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-no10xi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-nhtzom.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-onxzri.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-fwdqi7.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:26:03.718247"], ["title", "Boudin Bacon Sausage"], ["updated_at", "2015-03-23 22:26:03.718247"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:26:03.724036"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:26:03.724036"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:26:03.725990"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:26:01.977793"], ["updated_at", "2015-03-23 22:26:03.725990"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:26:03.738285"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:26:02.239953"], ["updated_at", "2015-03-23 22:26:03.738285"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:26:03.750252"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:26:02.535180"], ["updated_at", "2015-03-23 22:26:03.750252"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:26:03.761601"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:26:03.761601"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:26:03.763110"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:26:02.794996"], ["updated_at", "2015-03-23 22:26:03.763110"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:26:03.773705"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:26:03.049215"], ["updated_at", "2015-03-23 22:26:03.773705"]]  (16.2ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1866ms (ActiveRecord: 19.7ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:26:03 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.8ms) Rendered events/_simple_form.html.haml (16.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (18.9ms) Completed 200 OK in 34ms (Views: 20.5ms | ActiveRecord: 3.3ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.8ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:26:04 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered events/_simple_form.html.haml (17.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (20.2ms) Completed 200 OK in 31ms (Views: 21.5ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:26:05 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Flank Drumstick Brisket", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427149564839"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427149564839][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427149565147"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427149565147][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-105mo8e.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1g9b58r.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1g9b58r.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1g9b58r.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1g9b58r20150323-32490-1jft7ab' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1g9b58r20150323-32490-1jft7ab' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1g9b58r.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1g9b58r.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1g9b58r.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1g9b58r20150323-32490-t6jmmm' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1g9b58r20150323-32490-t6jmmm' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-2lzs3g.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-pgyn6i.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-pgyn6i.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-pgyn6i.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-pgyn6i20150323-32490-xawcl1' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-pgyn6i20150323-32490-xawcl1' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-pgyn6i.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-pgyn6i.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-pgyn6i.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-pgyn6i20150323-32490-vhp9ch' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-pgyn6i20150323-32490-vhp9ch' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1i4pnbd.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8o57wv.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8o57wv.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8o57wv.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8o57wv20150323-32490-1wm1bf3' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8o57wv20150323-32490-1wm1bf3' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8o57wv.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8o57wv.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8o57wv.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8o57wv20150323-32490-e541l7' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8o57wv20150323-32490-e541l7'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1jbbtkj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1bqli9c.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-ujd7b2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-xk9u7i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1tpbu25.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1mrjsji.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1u3bzcn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-q1119y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1w2nn9y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-zj7xiv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1bacpsy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-whvuhe.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-o385od.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-obrxmg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1j3kqqv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-149lslz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-18qbu7w.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-w3qkmk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-kyj6yp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1rq3v4f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-gt6ukm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-vqw6px.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-195nv9f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-2we5p2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-yanqlb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-vsg8r3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1ts486t.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1cywe56.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-13i6aij.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-6916oh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1b10wj6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-sigp8m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-120cdqg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-qkam55.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-rclitg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1c2jobr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-dmk67d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-eficsi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-pbh8sz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-15fqe6d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1a5fb44.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1opnib7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-19ugm9g.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1ez9qch.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-17h8dl8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1blw6h2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-ccnyht.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-2x1ru4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1o1o4v1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-pam3gc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-n9f6xt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-19oerhe.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-jx8eqb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-fl82y9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-12a5paq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-d6oogh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-mvad6c.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-99vtvn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-bjw03w.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-fzo649.png' SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:26:06.929610"], ["title", "Flank Drumstick Brisket"], ["updated_at", "2015-03-23 22:26:06.929610"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:26:06.933595"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:26:06.933595"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:26:06.935449"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:26:06.935449"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:26:06.936911"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:26:05.607232"], ["updated_at", "2015-03-23 22:26:06.936911"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:26:06.950025"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:26:05.868009"], ["updated_at", "2015-03-23 22:26:06.950025"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:26:06.961725"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:26:06.118252"], ["updated_at", "2015-03-23 22:26:06.961725"]]  (15.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1457ms (ActiveRecord: 18.4ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:26:06 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.2ms) Rendered events/_simple_form.html.haml (18.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (20.9ms) Completed 200 OK in 33ms (Views: 22.5ms | ActiveRecord: 0.7ms)  (0.9ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:26:07 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered events/_simple_form.html.haml (16.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.8ms) Rendered home/index.html.haml within layouts/application (19.3ms) Completed 200 OK in 30ms (Views: 20.7ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:26:08 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Strip Steak Capicola Ribeye", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1qdgmv3.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1r65sgi.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1r65sgi.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1r65sgi.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1r65sgi20150323-32490-1vkywh7' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1r65sgi20150323-32490-1vkywh7' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1r65sgi.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1r65sgi.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1r65sgi.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1r65sgi20150323-32490-508h07' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1r65sgi20150323-32490-508h07'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1gyqpjh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1aqubjl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-2t76lx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1n134ii.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8sd8z7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-15ncnin.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-aznbci.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-czfjo1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-hgl6kt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-xs11cw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1c0y3in.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1l3vhcv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-gi8jwb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1tj7psk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-d6homy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-15fjpqm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1wqbz18.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-r8qday.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-ivgetb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-x11uhv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8xol3f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-iykt3l.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-6dkno7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1f3a3xw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1g8zq7t.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-pjwbkt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1ehhd9s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1kjerea.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8y5qvt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-j51okl.png' SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:26:08.636460"], ["title", "Strip Steak Capicola Ribeye"], ["updated_at", "2015-03-23 22:26:08.636460"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:26:08.640043"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:26:08.640043"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:26:08.641858"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:26:08.641858"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:26:08.643504"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:26:08.077210"], ["updated_at", "2015-03-23 22:26:08.643504"]]  (15.8ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 648ms (ActiveRecord: 17.7ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:26:08 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.7ms) Rendered events/_simple_form.html.haml (20.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.4ms) Rendered events/_form.html.haml (1.9ms) Rendered home/index.html.haml within layouts/application (24.0ms) Completed 200 OK in 38ms (Views: 26.1ms | ActiveRecord: 0.7ms)  (0.5ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.4ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:26:09 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.6ms) Rendered events/_simple_form.html.haml (19.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (21.8ms) Completed 200 OK in 33ms (Views: 23.0ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:26:09 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Jowl Prosciutto Frankfurter", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1yr8iqd.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-13qs9yy.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-13qs9yy.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-13qs9yy.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-13qs9yy20150323-32490-1h1vr11' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-13qs9yy20150323-32490-1h1vr11' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-13qs9yy.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-13qs9yy.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-13qs9yy.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-13qs9yy20150323-32490-1cg8q6b' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-13qs9yy20150323-32490-1cg8q6b'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-rucx48.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-138i7bc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-lbfq8e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-9omxuk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-jj3gk0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-133f46x.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-140zx5b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-jqkro2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-11qpqca.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-13713o4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-hqxghy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1u1n3am.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1qqtybh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1o5dt4j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-166d3ln.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1itgmd9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-k9krql.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-16zredi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-e0tcwa.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-smn85a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-6862gh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1u1jgo1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1lhsyg1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-m61wpk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-yolm8m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1l3jh78.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-18xlkm6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-3h63gk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1qqh07t.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-djte3c.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-8s1ogt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1hqtwcl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1tcu8d9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-129z9tv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1t2wqf5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-t6emyj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-kcznu9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-9x64fa.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-7j1nx8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-1q8bqb7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32490-9j6d7y.png' SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:26:10.533262"], ["title", "Jowl Prosciutto Frankfurter"], ["updated_at", "2015-03-23 22:26:10.533262"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:26:10.535675"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:26:10.535675"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:26:10.538010"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:26:09.891876"], ["updated_at", "2015-03-23 22:26:10.538010"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:26:10.553897"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:26:10.553897"]]  (15.7ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 849ms (ActiveRecord: 17.7ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:26:10 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered events/_simple_form.html.haml (16.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (19.5ms) Completed 200 OK in 31ms (Views: 21.2ms | ActiveRecord: 0.0ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.5ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:26:10 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.4ms) Rendered events/_simple_form.html.haml (17.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (19.6ms) Completed 200 OK in 31ms (Views: 21.0ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:26:11 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Andouille Shoulder Ball Tip", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.1ms) BEGIN SQL (15.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:26:11.376920"], ["title", "Andouille Shoulder Ball Tip"], ["updated_at", "2015-03-23 22:26:11.376920"]] SQL (16.0ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:26:11.393815"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:26:11.393815"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:26:11.412404"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:26:11.412404"]]  (14.9ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 62ms (ActiveRecord: 47.1ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:26:11 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (12.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (11.2ms) Rendered events/_simple_form.html.haml (32.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (35.2ms) Completed 200 OK in 51ms (Views: 37.3ms | ActiveRecord: 0.0ms)  (0.5ms) SELECT COUNT(*) FROM "events" Event Load (0.3ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.5ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.6ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.2ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (6.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 16:27:32 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (19.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.5ms) Rendered events/_simple_form.html.haml (84.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.9ms) Rendered events/_form.html.haml (4.1ms) Rendered home/index.html.haml within layouts/application (105.3ms) Completed 200 OK in 194ms (Views: 131.4ms | ActiveRecord: 8.9ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 16:27:32 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 16:27:32 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 16:27:32 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 16:27:33 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Cow Tongue Short Ribs", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1t1d80p.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-10kx5m2.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-10kx5m2.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-10kx5m2.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-10kx5m220150323-32832-13swrwp' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-10kx5m220150323-32832-13swrwp' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-10kx5m2.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-10kx5m2.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-10kx5m2.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-10kx5m220150323-32832-1slxgeg' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-10kx5m220150323-32832-1slxgeg'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1b8qp4c.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1f6gydr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-sywiy0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-16tyuzw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-5xqxrd.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:27:33.987687"], ["title", "Cow Tongue Short Ribs"], ["updated_at", "2015-03-23 22:27:33.987687"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:27:33.996989"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:27:33.996989"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:27:33.998831"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:27:33.701410"], ["updated_at", "2015-03-23 22:27:33.998831"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:27:34.010862"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:27:34.010862"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:27:34.012352"], ["gallery_id", 2], ["updated_at", "2015-03-23 22:27:34.012352"]]  (16.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 366ms (ActiveRecord: 18.9ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:27:34 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered events/_simple_form.html.haml (17.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.3ms) Rendered home/index.html.haml within layouts/application (19.7ms) Completed 200 OK in 35ms (Views: 21.3ms | ActiveRecord: 3.1ms)  (0.7ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (8.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:27:34 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.2ms) Rendered events/_simple_form.html.haml (16.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (18.8ms) Completed 200 OK in 29ms (Views: 20.2ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:27:34 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Strip Steak Tongue Fatback", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:27:34.842753"], ["title", "Strip Steak Tongue Fatback"], ["updated_at", "2015-03-23 22:27:34.842753"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:27:34.850692"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:27:34.850692"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:27:34.852652"], ["gallery_id", 1], ["updated_at", "2015-03-23 22:27:34.852652"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:27:34.854364"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:27:34.854364"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:27:34.856086"], ["gallery_id", 2], ["updated_at", "2015-03-23 22:27:34.856086"]]  (0.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 23ms (ActiveRecord: 3.3ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:27:34 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.9ms) Rendered events/_simple_form.html.haml (30.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.7ms) Rendered home/index.html.haml within layouts/application (32.8ms) Completed 200 OK in 45ms (Views: 34.7ms | ActiveRecord: 0.7ms)  (0.9ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (6.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.8ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:27:35 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.6ms) Rendered events/_simple_form.html.haml (15.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (17.8ms) Completed 200 OK in 28ms (Views: 19.1ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:27:37 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Boudin Jowl Ball Tip", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427149655834"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][1427149655834][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427149656136"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][1427149656136][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427149656706"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427149656706][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1cth0l7.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1d29xj6.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1d29xj6.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1d29xj6.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1d29xj620150323-32832-1vdjthb' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1d29xj620150323-32832-1vdjthb' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1d29xj6.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1d29xj6.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1d29xj6.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1d29xj620150323-32832-1l6m77u' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1d29xj620150323-32832-1l6m77u' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-19y2bm.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ohyvg0.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ohyvg0.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ohyvg0.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ohyvg020150323-32832-4e3vhp' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ohyvg020150323-32832-4e3vhp' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ohyvg0.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ohyvg0.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ohyvg0.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ohyvg020150323-32832-4bjz3s' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ohyvg020150323-32832-4bjz3s' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ajjrr2.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1glj9b9.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1glj9b9.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1glj9b9.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1glj9b920150323-32832-p3q9td' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1glj9b920150323-32832-p3q9td' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1glj9b9.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1glj9b9.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1glj9b9.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1glj9b920150323-32832-18o7t9g' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1glj9b920150323-32832-18o7t9g' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-17xxjc5.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-18uefjq.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-18uefjq.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-18uefjq.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-18uefjq20150323-32832-16mwt9u' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-18uefjq20150323-32832-16mwt9u' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-18uefjq.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-18uefjq.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-18uefjq.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-18uefjq20150323-32832-t69xyp' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-18uefjq20150323-32832-t69xyp' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-3unft.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1r0c1k0.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1r0c1k0.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1r0c1k0.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1r0c1k020150323-32832-18cm97w' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1r0c1k020150323-32832-18cm97w' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1r0c1k0.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1r0c1k0.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1r0c1k0.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1r0c1k020150323-32832-12v2z77' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1r0c1k020150323-32832-12v2z77'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-12ktbiu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-9r0qj4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-eamwcc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ab6v25.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1vrbya5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1n0o5f5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-5txuzp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-k8s0rw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ax4r32.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1qy6i81.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1rnjmcz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-hs4y6h.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1pbf1ic.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ks4uou.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1dod473.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-16q0eol.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-16ulaa4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-b2mu8a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-j9z3di.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-lipxxb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1hu1b5q.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ynwtto.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1uz3yi6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-18ylcym.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-wwl7k2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-10k5fqk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-xl6jl5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-aecczr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1i8uxpu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-3ydeds.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-ylekth.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1s1naqq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-tyei85.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-dxukie.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1gg8th6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-dpud3a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-fyqn7y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1b39n79.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1h180wo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1w6fj6b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-y8kpkz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1mjncyd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-u4jd6n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1cth1j8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1rsjpmd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-tupmex.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-h9kvtt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-xm7ff0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ewm3bc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-efq9gi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-16w7ix0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-13zdegh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-18sct77.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1dtvfwz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-16kl61b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1wgc60q.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-16idsiw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1pyh7be.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-15pna8e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1p62ruc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1py9fpi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-9wvvxj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ylp4uy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-biq0ii.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-nz22wk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1nhwrbx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-9c86a5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1jg5805.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ik3680.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-h3pp5b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1tudm2n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1y19xks.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-4qf3w0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1uvbckt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-ewz2ey.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-n1zlwe.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1e94dqp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-ybtodj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-jw7z8z.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-jjcxd5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1w8diwv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-qysjf1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ps7dp0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1v9ee3l.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-fx8tej.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1k94mxx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-cgpdfd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1qvv6oq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-ai3ce1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-nwu3zx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-19sdzyn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-epu8yp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-19yz5nk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1vjuvy4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-e6wd23.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1x9sxz4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-4mh118.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-v2oy11.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1t6fvd1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-8glq5p.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-iutb8l.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-117rvuy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-4mz3o4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-j7knny.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-10ktybh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-17k282p.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1krkycj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1463wvt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1138d3p.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1lf3hiv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1lbkzkt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-lf3jc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1vf8ah3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-con9fn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1hfqjme.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-yuxvzz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-47j66o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-eih3m5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-suhgkb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-4okwys.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-bdenog.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-5zaryl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-fz787o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-15quv7o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-178n1vw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-12464j8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-pxs350.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1df1hdn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ij9ant.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-4kfpir.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-vk5uzw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-87ydzb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-20vici.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1b89iv1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-wxs86d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-yljgy5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1xn5u2w.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-13ot6d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-17gqf4n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1fcxmn0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-g4nsyv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1gq4t6q.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1k5ca9k.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1bhb2js.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1tte9gz.png' SQL (0.8ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:27:39.860431"], ["title", "Boudin Jowl Ball Tip"], ["updated_at", "2015-03-23 22:27:39.860431"]] SQL (0.7ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:27:39.866932"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:27:39.866932"]] SQL (0.7ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:27:39.869254"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:27:37.104943"], ["updated_at", "2015-03-23 22:27:39.869254"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:27:39.883278"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:27:37.368533"], ["updated_at", "2015-03-23 22:27:39.883278"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:27:39.899459"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:27:37.624261"], ["updated_at", "2015-03-23 22:27:39.899459"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:27:39.921141"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:27:39.921141"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:27:39.922910"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:27:37.882391"], ["updated_at", "2015-03-23 22:27:39.922910"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:27:39.967210"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:27:38.136542"], ["updated_at", "2015-03-23 22:27:39.967210"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:27:39.995166"], ["gallery_id", 2], ["updated_at", "2015-03-23 22:27:39.995166"]]  (16.2ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 2970ms (ActiveRecord: 20.1ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:27:40 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (11.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.0ms) Rendered events/_simple_form.html.haml (25.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.5ms) Rendered events/_form.html.haml (2.1ms) Rendered home/index.html.haml within layouts/application (29.1ms) Completed 200 OK in 47ms (Views: 32.1ms | ActiveRecord: 0.7ms)  (0.5ms) SELECT COUNT(*) FROM "events" Event Load (0.5ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (21.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:27:40 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.4ms) Rendered events/_simple_form.html.haml (20.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.4ms) Rendered events/_form.html.haml (2.0ms) Rendered home/index.html.haml within layouts/application (23.2ms) Completed 200 OK in 36ms (Views: 24.7ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:27:41 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Tail Bacon T Bone", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-b3s8v8.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-12j08un.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-12j08un.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-12j08un.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-12j08un20150323-32832-1xledje' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-12j08un20150323-32832-1xledje' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-12j08un.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-12j08un.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-12j08un.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-12j08un20150323-32832-k690jy' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-12j08un20150323-32832-k690jy'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1i9vjin.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-17w6sbq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-iv5s0j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-phs88j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1e4ag9m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-10ahxm8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ekg1hv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-6so4yp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1nekc2s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1lku1vx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1d2js5f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1fvdqfn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-xc5a3j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-5cdhtb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-htsf1y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1jvirg4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-xfujrs.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1o5c3lo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-kyg3at.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-yrqngl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-qpxvse.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-z1495c.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-4b7dbh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-2jwalz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-a3qifj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-9115dk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-oan47t.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-afn08n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-19wu6q9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-kly2yz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-2x4efk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-13g6mb8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-e3wh0y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1llrefw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-tbrqw6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-gbwayh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1pqx051.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1nsszgh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-w063o9.png' SQL (16.5ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:27:41.830329"], ["title", "Tail Bacon T Bone"], ["updated_at", "2015-03-23 22:27:41.830329"]] SQL (15.6ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:27:41.857069"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:27:41.857069"]] SQL (15.8ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:27:41.875755"], ["gallery_id", 1], ["updated_at", "2015-03-23 22:27:41.875755"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:27:41.894706"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:27:41.894706"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:27:41.896348"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:27:41.115768"], ["updated_at", "2015-03-23 22:27:41.896348"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:27:41.918816"], ["gallery_id", 2], ["updated_at", "2015-03-23 22:27:41.918816"]]  (15.7ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 874ms (ActiveRecord: 64.4ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:27:41 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (12.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (11.8ms) Rendered events/_simple_form.html.haml (30.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (2.7ms) Rendered home/index.html.haml within layouts/application (35.6ms) Completed 200 OK in 52ms (Views: 38.5ms | ActiveRecord: 0.0ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.5ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (1.8ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.6ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (38.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:27:42 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (11.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.9ms) Rendered events/_simple_form.html.haml (26.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.8ms) Rendered home/index.html.haml within layouts/application (28.8ms) Completed 200 OK in 44ms (Views: 30.4ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:27:43 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Turkey Pig Andouille", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427149663077"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427149663077][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427149663384"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427149663384][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1p1eu4t.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1k6bweb.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1k6bweb.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1k6bweb.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1k6bweb20150323-32832-1s21ngm' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1k6bweb20150323-32832-1s21ngm' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1k6bweb.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1k6bweb.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1k6bweb.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1k6bweb20150323-32832-rm3lku' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1k6bweb20150323-32832-rm3lku' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-t3ksoz.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1i5jtk3.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1i5jtk3.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1i5jtk3.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1i5jtk320150323-32832-16787cv' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1i5jtk320150323-32832-16787cv' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1i5jtk3.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1i5jtk3.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1i5jtk3.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1i5jtk320150323-32832-gx2iqf' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1i5jtk320150323-32832-gx2iqf' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1tizgrq.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-erdhsx.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-erdhsx.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-erdhsx.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-erdhsx20150323-32832-1oebe9h' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-erdhsx20150323-32832-1oebe9h' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-erdhsx.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-erdhsx.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-erdhsx.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-erdhsx20150323-32832-1c249eb' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-erdhsx20150323-32832-1c249eb'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-s96l3e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-11vmof7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-l9i1ka.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-c8t4ag.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1mejbzs.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-gh48qi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-16td15e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-czoz6j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1vo7xwg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-pj48pn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-7qkilr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-19qgv64.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-v3el9k.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1v717xx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-f6nvlf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-8jgbsp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1gog88y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1cjnnz1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-91tfa.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-13x5glk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-17ucz6r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-160uz9s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1cfc4gc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-kjs73r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-tmj0j9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-7ncdi8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-ej4bax.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-19bavzq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1rjxoly.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-guqkg2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1bin5tj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-px9miz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-hdhfyj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1mmedpg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-11m30nf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-xsnk6n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1yj2y0n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1d4r29f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1to6o3b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-t9nw0g.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1s9kx11.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-azto6i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-166lb3d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-18iwq2f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1mfmnak.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1n26xsr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1sdc260.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1asld22.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-16x6m2q.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-z1n310.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-e6de4d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-azigtd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1pec05.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-10xj64u.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1mpl17i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1kne7st.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1nfckwy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-17jyy9d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-plsyeu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-hglxc5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-mj21dd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1n7zhwy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-2jsgej.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-bz3avo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-81db2m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1fl5kxb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-d31e0u.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ry0fy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1aqvvp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-l7g373.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1bqsfcj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1avdler.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1dyn82n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1hrmvrl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1myqlst.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1meshu8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1oeikhx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1o9zf0b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-b6i4fn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1oof0r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-b30fa1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ppu0jn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-ch0szi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-f8714.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-beiob5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-icj3is.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1eis38n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-29v9r6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-18010a0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-x54om7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1opsh8p.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1l0oon3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1vr31iz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-jn1b2y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-vu32rr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-mwvwfz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ib5sdp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-n1osvx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-5req75.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1hifg8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-r5fur7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1r6z30e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-16ferb8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-9xc6v1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1r644n1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-17o7fwz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1o00ef3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-ofxun4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-n6w53z.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-2cuik1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-17i9qkx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1lhhjr5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1okp4ev.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-14u6f88.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-dyi5ey.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1dgnhd8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1r1e3jy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-st27d0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-ieezsr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-klvbbb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1eyqvdr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1rc0n45.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-yimbv7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-c0l1i8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-14lqfbu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1qlgxzw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-940qxn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-148fgs2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-j384db.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1rlsrob.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1objd3z.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-17gyw9r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-2zj3ty.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1mhdmq3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-po9auk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1wgugf6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-16v3vqv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-tcyquh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-rl6vim.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1fzi5q6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1gkqodc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-lo72x2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1clbr39.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1intilj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-tq5159.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-y5cznx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1quf4j9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1460msm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-w79v2f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1ihpdpz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-3ksxti.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-lxguvc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-7tb3yg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-180dvfw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1mrmfic.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-tfhtef.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-fyl05a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-1llfk5i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-32832-pd2ad5.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:27:46.290163"], ["title", "Turkey Pig Andouille"], ["updated_at", "2015-03-23 22:27:46.290163"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:27:46.299647"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:27:46.299647"]] SQL (15.8ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:27:46.303025"], ["gallery_id", 1], ["updated_at", "2015-03-23 22:27:46.303025"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:27:46.320716"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:27:46.320716"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:27:46.322140"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:27:43.779041"], ["updated_at", "2015-03-23 22:27:46.322140"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:27:46.350456"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:27:44.052542"], ["updated_at", "2015-03-23 22:27:46.350456"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:27:46.374991"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:27:44.312354"], ["updated_at", "2015-03-23 22:27:46.374991"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:27:46.400463"], ["gallery_id", 2], ["updated_at", "2015-03-23 22:27:46.400463"]]  (15.5ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 2710ms (ActiveRecord: 34.3ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:27:46 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (9.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.8ms) Rendered events/_simple_form.html.haml (24.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.5ms) Rendered events/_form.html.haml (3.9ms) Rendered home/index.html.haml within layouts/application (29.6ms) Completed 200 OK in 42ms (Views: 31.6ms | ActiveRecord: 0.0ms)  (0.5ms) SELECT COUNT(*) FROM "events" Event Load (0.4ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.5ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.2ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (6.8ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 16:31:50 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (6.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (19.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.6ms) Rendered events/_simple_form.html.haml (86.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.1ms) Rendered events/_form.html.haml (4.4ms) Rendered home/index.html.haml within layouts/application (107.9ms) Completed 200 OK in 193ms (Views: 133.8ms | ActiveRecord: 7.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 16:31:51 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 16:31:51 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 16:31:51 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 16:31:52 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Beef Ground Round Sausage", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427149911907"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427149911907][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427149912210"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427149912210][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-h7xfmy.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-16caadv.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-16caadv.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-16caadv.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-16caadv20150323-33388-nmxf78' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-16caadv20150323-33388-nmxf78' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-16caadv.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-16caadv.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-16caadv.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-16caadv20150323-33388-1fijv17' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-16caadv20150323-33388-1fijv17' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-84opkr.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-w1m2c9.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-w1m2c9.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-w1m2c9.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-w1m2c920150323-33388-148afjj' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-w1m2c920150323-33388-148afjj' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-w1m2c9.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-w1m2c9.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-w1m2c9.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-w1m2c920150323-33388-15mbahe' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-w1m2c920150323-33388-15mbahe' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-5ar7f8.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-mt9wvi.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-mt9wvi.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-mt9wvi.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-mt9wvi20150323-33388-d5bz1c' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-mt9wvi20150323-33388-d5bz1c' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-mt9wvi.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-mt9wvi.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-mt9wvi.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-mt9wvi20150323-33388-mmso85' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-mt9wvi20150323-33388-mmso85'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-145esf3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1sfjrem.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1l75sa8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-wgt5v8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-61662f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-14aiv7s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1r5lc84.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1g2cr6n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-millk2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1xoi5j9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1u4cph6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-vm4a05.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-188b93g.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-xdlcmm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-zn9wd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1pox5yu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-tpalpu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1e0kwkk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1laleck.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-ga7gl2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1o31s9r.png' SQL (17.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:31:53.588621"], ["title", "Beef Ground Round Sausage"], ["updated_at", "2015-03-23 22:31:53.588621"]] SQL (16.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:31:53.612455"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:31:53.612455"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:31:53.630614"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:31:53.630614"]] SQL (0.9ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:31:53.632165"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:31:52.599170"], ["updated_at", "2015-03-23 22:31:53.632165"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:31:53.645220"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:31:52.913406"], ["updated_at", "2015-03-23 22:31:53.645220"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:31:53.656693"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:31:53.165384"], ["updated_at", "2015-03-23 22:31:53.656693"]]  (16.3ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1143ms (ActiveRecord: 52.8ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:31:53 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (10.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered events/_simple_form.html.haml (27.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (32.8ms) Completed 200 OK in 62ms (Views: 34.4ms | ActiveRecord: 3.3ms)  (21.1ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.5ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.6ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (35.5ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:31:54 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.9ms) Rendered events/_simple_form.html.haml (20.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (22.5ms) Completed 200 OK in 34ms (Views: 23.8ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:31:54 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Salami Meatloaf Spare Ribs", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-nqfpou.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-n88224.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-n88224.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-n88224.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-n8822420150323-33388-bggsy3' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-n8822420150323-33388-bggsy3' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-n88224.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-n88224.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-n88224.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-n8822420150323-33388-uaohkt' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-n8822420150323-33388-uaohkt'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-mjcrud.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-uunhk9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-zjhvz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-of5841.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-lpwiqo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1qiqa0r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-15uxt4i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-nv67q6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-16repsb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-clg3xo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-cvhmdi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-169r1hg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-7qv5b9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1n8wb3y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1668y7j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-154uc6d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1lc63bq.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:31:55.422048"], ["title", "Salami Meatloaf Spare Ribs"], ["updated_at", "2015-03-23 22:31:55.422048"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:31:55.425236"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:31:55.425236"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:31:55.427081"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:31:55.427081"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:31:55.428730"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:31:54.990480"], ["updated_at", "2015-03-23 22:31:55.428730"]]  (16.3ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 526ms (ActiveRecord: 18.7ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:31:55 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.0ms) Rendered events/_simple_form.html.haml (17.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (19.6ms) Completed 200 OK in 31ms (Views: 21.2ms | ActiveRecord: 0.7ms)  (0.9ms) SELECT COUNT(*) FROM "events" Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.6ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.2ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.1ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.8ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:31:55 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.7ms) Rendered events/_simple_form.html.haml (16.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (18.9ms) Completed 200 OK in 29ms (Views: 20.2ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:31:56 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Brisket Tongue Hamburger", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-ei9w2q.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1lus7ey.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1lus7ey.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1lus7ey.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1lus7ey20150323-33388-1mchosj' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1lus7ey20150323-33388-1mchosj' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1lus7ey.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1lus7ey.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1lus7ey.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1lus7ey20150323-33388-1vu3u0d' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1lus7ey20150323-33388-1vu3u0d'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1t5olvz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-68rjnc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-172ockb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1p1cx1s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-a6id5k.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-y2ces2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-ztet3k.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-np2oqz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-r61c2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-10svn85.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1gzhue.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-11qhmem.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1hom8g3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-j3fq1c.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1xu4ywt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-xzv856.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1nnpf3m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-js762j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-p4me3o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1bgzgx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1yza3bi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-19pgy5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-lrpa4a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-t924vi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-p36ola.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-okd9fr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-nz04o0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-4t0wqa.png' SQL (16.0ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:31:57.115204"], ["title", "Brisket Tongue Hamburger"], ["updated_at", "2015-03-23 22:31:57.115204"]] SQL (12.9ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:31:57.133305"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:31:57.133305"]] SQL (0.6ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:31:57.147967"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:31:56.553053"], ["updated_at", "2015-03-23 22:31:57.147967"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:31:57.173579"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:31:57.173579"]]  (16.1ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 684ms (ActiveRecord: 46.0ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:31:57 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.4ms) Rendered events/_simple_form.html.haml (20.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.7ms) Rendered home/index.html.haml within layouts/application (23.3ms) Completed 200 OK in 38ms (Views: 25.1ms | ActiveRecord: 0.7ms)  (0.5ms) SELECT COUNT(*) FROM "events" Event Load (0.5ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.6ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (3.2ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.3ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (5.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:31:57 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.5ms) Rendered events/_simple_form.html.haml (18.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.9ms) Rendered home/index.html.haml within layouts/application (20.5ms) Completed 200 OK in 32ms (Views: 21.9ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:31:57 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Beef Ribs Porchetta Tongue", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:31:57.974427"], ["title", "Beef Ribs Porchetta Tongue"], ["updated_at", "2015-03-23 22:31:57.974427"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:31:57.976284"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:31:57.976284"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:31:57.978010"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:31:57.978010"]]  (0.4ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 12ms (ActiveRecord: 1.7ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:31:57 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.9ms) Rendered events/_simple_form.html.haml (18.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (3.0ms) Rendered home/index.html.haml within layouts/application (22.5ms) Completed 200 OK in 35ms (Views: 24.2ms | ActiveRecord: 0.0ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.4ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.6ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.3ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (22.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:31:58 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.6ms) Rendered events/_simple_form.html.haml (17.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (19.4ms) Completed 200 OK in 30ms (Views: 20.7ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:32:00 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Short Loin Shank Cow", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427149918892"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][1427149918892][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427149919196"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][1427149919196][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427149919780"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427149919780][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-50xs21.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-nu0y53.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-nu0y53.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-nu0y53.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-nu0y5320150323-33388-1glwuvf' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-nu0y5320150323-33388-1glwuvf' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-nu0y53.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-nu0y53.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-nu0y53.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-nu0y5320150323-33388-ure7xp' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-nu0y5320150323-33388-ure7xp' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-cp121v.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-8iqkwy.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-8iqkwy.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-8iqkwy.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-8iqkwy20150323-33388-p4rz7x' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-8iqkwy20150323-33388-p4rz7x' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-8iqkwy.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-8iqkwy.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-8iqkwy.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-8iqkwy20150323-33388-1packaq' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-8iqkwy20150323-33388-1packaq' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1jcjawb.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1fgx5gx.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1fgx5gx.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1fgx5gx.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1fgx5gx20150323-33388-1hrmxgt' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1fgx5gx20150323-33388-1hrmxgt' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1fgx5gx.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1fgx5gx.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1fgx5gx.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1fgx5gx20150323-33388-1a21uqh' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1fgx5gx20150323-33388-1a21uqh' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-15nvvh5.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1c9f7k.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1c9f7k.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1c9f7k.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1c9f7k20150323-33388-16vokql' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1c9f7k20150323-33388-16vokql' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1c9f7k.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1c9f7k.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1c9f7k.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1c9f7k20150323-33388-146jd11' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1c9f7k20150323-33388-146jd11' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1a4t41p.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-rxfb8k.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-rxfb8k.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-rxfb8k.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-rxfb8k20150323-33388-3juedb' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-rxfb8k20150323-33388-3juedb' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-rxfb8k.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-rxfb8k.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-rxfb8k.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-rxfb8k20150323-33388-1nrrfcv' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-rxfb8k20150323-33388-1nrrfcv'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1jm1jxd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1oug4pw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-ygblz6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-3z2iry.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-7vol4s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-29y572.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1crp3lu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-aa3s3x.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1no7zk7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-18417xe.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-vcud1q.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1b9d0xy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1tc87t8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1tymdcz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1i7n1px.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-ti1t1f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-euln90.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1ektzl0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1tljunc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1p8ctev.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1oyvcjo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-mnuejj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-a0bkg2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1awo5ms.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-ii5l63.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1hrzmyh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-rg0ga4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1q9iumf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-2694rw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-jh37vm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1ddqnem.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1i21rim.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-sddakz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-84vrb5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-13cmk6o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-twieci.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1qcdv0e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-elrdm0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-kqkrz7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-x8yrh8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1e17pwj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-3f7b8a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1q2sqwf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1l8vln2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-624hp0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-i5207j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-7ozr4b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-104sk07.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-4u4jah.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-8087rh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-lex5nv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-9e740e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-147a21s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-cvoqlv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-ncvkqs.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-g03omw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-11y3dto.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1uz3jhb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-jghufj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1f7jr7t.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-181iy7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-tvz36m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-nw0d1u.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-38jd91.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1961bkz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-5btj0d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1txeswy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1wgkd9m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-207yzc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1ifu6s6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-107w8a7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-vdqod0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-19vf19f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1tl3v90.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-akodyn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-zuaitt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-f8wctt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-r3ud83.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-11n27fr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1mc8mxw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-op4x5j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-b4ozvp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1t31ti3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-ctguaq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1k0snwh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1xyrmr0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-vcrnel.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-b55vma.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-ju8hel.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1asn78w.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1ee08qk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1yhksmu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-tlu6hy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-344xyq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1sxe4cf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1vx86sv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-uhb6d7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-dzoqi2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1uj74ri.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-6slmt3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-12dlm3u.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-g7nnep.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-h42grp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-rtjqun.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1hnzjxj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-x2l1d5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-14clazy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-64huii.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-yyx7kv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-ivfasj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-fsysa8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-sp8zxc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1lx9w2u.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1d9izr8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-8e74qo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1ir5b11.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-c8mqq0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-14m7v2y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-fwejoz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-5a2zx7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-rxu7tt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-xaqo55.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-uanunr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-3thkq6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-xtu6oe.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-8pl1nd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-oyxloy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-xsrbdp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-h37d8j.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1vcmc6r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-126y4wd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-4pkoe0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-zo4fi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-nhs6no.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1ijp0nq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-10468hz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-502b11.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-rpsn52.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-10r5r64.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-wr68om.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1llurm6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-tzdxev.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1e7tb6a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1m6vxci.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1io3t02.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-6mgok8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1q5fdad.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1w0pnbr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1v0nvji.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1ott8yo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-uz3kc7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1aagrsj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-iyqhvv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-17p84w5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-11zzd55.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-q9s1ii.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1waksn3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-e28vyk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1mizou9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-151m3qs.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1cvlrpm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-mo7uar.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-mchs2u.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-68efrh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1khesb4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-xdhstk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1rwde0e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1esj665.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1f7ow2i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1j1x4gn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1t59shz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1tq2v93.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1xpw9hy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-194knpt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-afv2oo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-rewrqo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1smhgpc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1dilm46.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-19pyj9u.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-19pg6b5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1mc7lbx.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-6yxssz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-232109.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-19j9en1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1vec462.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1alsmm4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-ppmnnm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-d4keax.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-nfppwu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-au5z9h.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1sm0hke.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-11unwi8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-6wt8k7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1t40206.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1og627a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1ldzb5z.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-jj9py3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-udrvo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-lcmf4r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1ysak0w.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1o160lk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-hm6nyj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1w90hv1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-wq7mnl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1owllrr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-7tpeoy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1jdazw5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-137y19h.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-kknhwj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-alza8n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-qplyrl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-14ptrj1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-y9crve.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1sqmlr5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-d0uh4e.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-z2qz1t.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-19ag5ox.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1mggf7n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-v0im2g.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-14ys3rm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-z3b8a5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-wjzl5x.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-9m2ngy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1ls32bd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-19rxefh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-15nuhko.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-g58stk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-fdhwzl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1t28zto.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-4xlty7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-flk6iw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-943o9s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-90xu0o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-wf6vzs.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1qmm23p.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-19eeed6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1258q93.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-l1oqke.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-xjtxtn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-153p2je.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-ixla9m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-72uey0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1lrult1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-eqewm9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-x90rap.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-o5vlvo.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-prpjea.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1mm2qqb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-1ikq9nr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33388-qt37g1.png' SQL (15.8ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:32:04.152182"], ["title", "Short Loin Shank Cow"], ["updated_at", "2015-03-23 22:32:04.152182"]] SQL (16.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:32:04.170005"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:32:04.170005"]] SQL (16.0ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:32:04.189738"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:32:00.207932"], ["updated_at", "2015-03-23 22:32:04.189738"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:32:04.231613"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:32:00.478367"], ["updated_at", "2015-03-23 22:32:04.231613"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:32:04.253389"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:32:00.742738"], ["updated_at", "2015-03-23 22:32:04.253389"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:32:04.274457"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:32:04.274457"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:32:04.276957"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:32:01.004379"], ["updated_at", "2015-03-23 22:32:04.276957"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:32:04.389587"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:32:01.322110"], ["updated_at", "2015-03-23 22:32:04.389587"]]  (15.7ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 4326ms (ActiveRecord: 65.3ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:32:04 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (11.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (2.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (11.5ms) Rendered events/_simple_form.html.haml (30.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.3ms) Rendered events/_form.html.haml (2.7ms) Rendered home/index.html.haml within layouts/application (35.9ms) Completed 200 OK in 53ms (Views: 38.8ms | ActiveRecord: 0.0ms)  (0.5ms) SELECT COUNT(*) FROM "events" Event Load (0.3ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.6ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.6ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.2ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (35.6ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2015-03-23 16:36:52 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (7.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (3.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (23.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (0.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.7ms) Rendered events/_simple_form.html.haml (106.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (1.0ms) Rendered events/_form.html.haml (5.2ms) Rendered home/index.html.haml within layouts/application (133.7ms) Completed 200 OK in 274ms (Views: 189.4ms | ActiveRecord: 7.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-03-23 16:36:52 -0600 Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2015-03-23 16:36:53 -0600 Started GET "/assets/application.js" for 127.0.0.1 at 2015-03-23 16:36:53 -0600 Started POST "/events" for 127.0.0.1 at 2015-03-23 16:36:55 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Pastrami Kevin Tri Tip", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427150213910"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][1427150213910][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427150214216"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][1427150214216][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427150214783"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427150214783][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-lsi775.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1f07zm4.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1f07zm4.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1f07zm4.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1f07zm420150323-33965-d8k89y' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1f07zm420150323-33965-d8k89y' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1f07zm4.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1f07zm4.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1f07zm4.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1f07zm420150323-33965-o6xe1u' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1f07zm420150323-33965-o6xe1u' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1vm3ahz.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-a4l0ec.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-a4l0ec.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-a4l0ec.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-a4l0ec20150323-33965-lj3nou' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-a4l0ec20150323-33965-lj3nou' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-a4l0ec.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-a4l0ec.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-a4l0ec.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-a4l0ec20150323-33965-r5xw7o' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-a4l0ec20150323-33965-r5xw7o' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-76yyly.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-2mcw60.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-2mcw60.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-2mcw60.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-2mcw6020150323-33965-13ofg36' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-2mcw6020150323-33965-13ofg36' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-2mcw60.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-2mcw60.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-2mcw60.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-2mcw6020150323-33965-yc1ba6' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-2mcw6020150323-33965-yc1ba6' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-w3un08.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-urdipv.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-urdipv.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-urdipv.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-urdipv20150323-33965-jdxng2' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-urdipv20150323-33965-jdxng2' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-urdipv.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-urdipv.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-urdipv.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-urdipv20150323-33965-pcb0kh' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-urdipv20150323-33965-pcb0kh' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-o8cm64.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1qs2jll.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1qs2jll.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1qs2jll.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1qs2jll20150323-33965-cydhfi' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1qs2jll20150323-33965-cydhfi' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1qs2jll.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1qs2jll.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1qs2jll.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1qs2jll20150323-33965-dhf5ln' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1qs2jll20150323-33965-dhf5ln'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1mqdrdi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-ft4h6i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1xjt8pm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-z8hlsi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-18fxk2g.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-7icgim.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-9tq62o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-l4a42z.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1gofarl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1edhzn5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1h4mwv6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-182i1cq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-c57woj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-b559og.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-4txez8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1wgxunp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-nmwlzt.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1spyb0a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1630mh7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1k7wca3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1brrjoz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-c39ww2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-19nc1vy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-rhtopy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-g9ydie.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-110jgn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-cb2cir.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-zxtqdm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-wpmj2k.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-vyz6i3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-10ndniu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-zxzvf4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1i8sqjw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1xfs8os.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-12ojpbi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1hater0.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-oitplg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-uyqaf1.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1gzlpjy.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-18swhgz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-hojte2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-10m3lpr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-v5hc4a.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-f4vk3w.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1asqzc8.png' SQL (32.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:36:56.929956"], ["title", "Pastrami Kevin Tri Tip"], ["updated_at", "2015-03-23 22:36:56.929956"]] SQL (1.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:36:56.968129"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:36:56.968129"]] SQL (1.1ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:36:56.971068"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:36:55.173993"], ["updated_at", "2015-03-23 22:36:56.971068"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:36:56.984081"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:36:55.489099"], ["updated_at", "2015-03-23 22:36:56.984081"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:36:56.995437"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:36:55.776798"], ["updated_at", "2015-03-23 22:36:56.995437"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:36:57.006785"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:36:57.006785"]] SQL (0.2ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:36:57.008318"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:36:56.027813"], ["updated_at", "2015-03-23 22:36:57.008318"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:36:57.018988"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:36:56.273012"], ["updated_at", "2015-03-23 22:36:57.018988"]]  (15.6ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1912ms (ActiveRecord: 52.3ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:36:57 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.3ms) Rendered events/_simple_form.html.haml (17.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (20.5ms) Completed 200 OK in 35ms (Views: 22.2ms | ActiveRecord: 3.1ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (19.2ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:36:57 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.0ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.7ms) Rendered events/_simple_form.html.haml (16.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (18.9ms) Completed 200 OK in 29ms (Views: 20.3ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:36:58 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Turkey Jerky Strip Steak", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427150218140"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427150218140][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}, "1427150218443"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][1427150218443][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1saoc98.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-fxaccf.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-fxaccf.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-fxaccf.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-fxaccf20150323-33965-7yy9oo' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-fxaccf20150323-33965-7yy9oo' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-fxaccf.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-fxaccf.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-fxaccf.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-fxaccf20150323-33965-1bftgb1' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-fxaccf20150323-33965-1bftgb1' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-58jn02.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-6u35wd.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-6u35wd.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-6u35wd.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-6u35wd20150323-33965-7kp0ja' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-6u35wd20150323-33965-7kp0ja' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-6u35wd.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-6u35wd.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-6u35wd.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-6u35wd20150323-33965-1l00d74' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-6u35wd20150323-33965-1l00d74' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-j1fb6p.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-gg81hz.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-gg81hz.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-gg81hz.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-gg81hz20150323-33965-10metnh' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-gg81hz20150323-33965-10metnh' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-gg81hz.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-gg81hz.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-gg81hz.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-gg81hz20150323-33965-1yprhhm' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-gg81hz20150323-33965-1yprhhm'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1x4ax1f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1hutspi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-dzp7ud.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-jy3ac.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-rzd1is.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-vzglfq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-7vck9o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-zd3c71.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-nuasn8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1pee1k7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-83juzj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-hrepgi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-a9ziic.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-qtsps7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-ntxvbc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-16wb1j7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1i72vud.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1osvt0s.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-cqawzd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-xnaewb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-887bwv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-j402c4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1bjsb2d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-fq1q56.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-jai811.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-3qpy5o.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-mar7xz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-r1tpkg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-5nnnpz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-mi1lv4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-fauwzz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1t7564y.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-x8i6yk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1k8ohzi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-39st16.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-kufiyv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1tq81hl.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1wbrz9g.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-jo5tfv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1i2urmr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-ay765b.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1tb3sxb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-n3pe1q.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1rr8uhd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-e4p7t8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-udf8k3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-16tcsje.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-qsfcoh.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-9g3a7c.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-jfa35k.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-bndibk.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-lpoo89.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-118759k.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1haxzng.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-81ypbc.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1anf9ks.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1ascce5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1rqpsz2.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1k07y7q.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1ixcak4.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:37:00.365213"], ["title", "Turkey Jerky Strip Steak"], ["updated_at", "2015-03-23 22:37:00.365213"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:37:00.368272"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:37:00.368272"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:37:00.369964"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:37:00.369964"]] SQL (0.5ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:37:00.371647"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:36:58.952852"], ["updated_at", "2015-03-23 22:37:00.371647"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:37:00.384189"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:36:59.203514"], ["updated_at", "2015-03-23 22:37:00.384189"]] SQL (0.3ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:37:00.396383"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:36:59.454233"], ["updated_at", "2015-03-23 22:37:00.396383"]]  (16.1ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 1600ms (ActiveRecord: 19.0ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:37:00 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.2ms) Rendered events/_simple_form.html.haml (17.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (20.4ms) Completed 200 OK in 34ms (Views: 22.1ms | ActiveRecord: 0.7ms)  (1.0ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (36.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:37:00 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.9ms) Rendered events/_simple_form.html.haml (16.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (18.7ms) Completed 200 OK in 29ms (Views: 20.1ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:37:01 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Jerky Ball Tip T Bone", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[custom_gallery_attributes][custom_photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1wvnams.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1s2ywsf.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1s2ywsf.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1s2ywsf.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1s2ywsf20150323-33965-4dlgf1' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1s2ywsf20150323-33965-4dlgf1' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1s2ywsf.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1s2ywsf.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1s2ywsf.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1s2ywsf20150323-33965-1bsq78c' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1s2ywsf20150323-33965-1bsq78c'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-23hhhi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-xs6r16.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-novkae.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-gmfnr7.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-8pjanv.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1negtvn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-n5ay56.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-14lpwb.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-2dwx3v.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-jcjs5r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-hlg8ib.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-d9ogvu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1kf7f9d.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-10mgszf.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-vjxxrg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-hqszfq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-10teiim.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-d8mxon.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-nkqz9r.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-51m4kn.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1etiew5.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-ki7b9f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-u8je2p.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-5ug5y8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1t4yvtg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1b0c4f6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-172mrsu.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1w1nkpe.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-7fw3si.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1vu277j.png' SQL (0.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:37:02.165484"], ["title", "Jerky Ball Tip T Bone"], ["updated_at", "2015-03-23 22:37:02.165484"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:37:02.168764"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:37:02.168764"]] SQL (0.2ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:37:02.170404"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:37:02.170404"]] SQL (15.6ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:37:02.171987"], ["gallery_id", 2], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:37:01.533919"], ["updated_at", "2015-03-23 22:37:02.171987"]]  (16.1ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 733ms (ActiveRecord: 33.2ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:37:02 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.9ms) Rendered events/_simple_form.html.haml (17.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (20.5ms) Completed 200 OK in 34ms (Views: 22.4ms | ActiveRecord: 0.7ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.4ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.0ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:37:02 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (6.4ms) Rendered events/_simple_form.html.haml (17.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.3ms) Rendered events/_form.html.haml (1.6ms) Rendered home/index.html.haml within layouts/application (20.0ms) Completed 200 OK in 31ms (Views: 21.4ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:37:03 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Leberkas Filet Mignon Biltong", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"photo"=>#, @original_filename="logo_placeholder_medium.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"event[gallery_attributes][photos_attributes][0][photo]\"; filename=\"logo_placeholder_medium.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"Test test test", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"} Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1ma9ca8.png' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-cnc72n.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-cnc72n.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-cnc72n.png[0]' -auto-orient -resize "x300" -crop "300x300+116+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-cnc72n20150323-33965-h430b8' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-cnc72n20150323-33965-h430b8' Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-cnc72n.png[0]' 2>/dev/null Command :: identify -format %m '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-cnc72n.png[0]' Command :: convert '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-cnc72n.png[0]' -auto-orient -resize "x100" -crop "100x100+38+0" +repage '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-cnc72n20150323-33965-1b3jofg' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-cnc72n20150323-33965-1b3jofg'  (0.2ms) BEGIN Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1mrj4ed.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-svq4gq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-o2zu5l.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1ba4gxr.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1g27dv3.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1coz9v6.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-ee8r9p.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-f0nnz.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-15pcfpq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-s7btot.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-ucag94.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-wsoi3n.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-okecbp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1e193ug.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1x2ep8i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-18gw02g.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-z6092f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1i7fez9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1xwv5en.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-iu3lxj.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1ro42vw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-jcnkmg.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1pz08ll.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1ofx5mq.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-rgwom4.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-sfxq8f.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-17hlbzw.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-d92lu9.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-56dhhd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-14soect.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-bllfi.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1idoo8.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-zzvibe.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1jcayzp.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-4u5b2u.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-qleo2i.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-ytr79g.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1mgsvcm.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1p9okyd.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-1vuq12m.png' Command :: file -b --mime '/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/129b4bc3368f2f329e5000480b4d2fe620150323-33965-a9lihh.png' SQL (0.6ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:37:04.058455"], ["title", "Leberkas Filet Mignon Biltong"], ["updated_at", "2015-03-23 22:37:04.058455"]] SQL (0.5ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:37:04.061082"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:37:04.061082"]] SQL (0.4ms) INSERT INTO "polygallery_photos" ("caption", "created_at", "gallery_id", "photo_content_type", "photo_file_name", "photo_file_size", "photo_updated_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["caption", "Test test test"], ["created_at", "2015-03-23 22:37:04.063702"], ["gallery_id", 1], ["photo_content_type", "image/png"], ["photo_file_name", "logo_placeholder_medium.png"], ["photo_file_size", 175637], ["photo_updated_at", "2015-03-23 22:37:03.414259"], ["updated_at", "2015-03-23 22:37:04.063702"]] SQL (0.3ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:37:04.077442"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:37:04.077442"]]  (16.0ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 849ms (ActiveRecord: 17.9ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:37:04 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.7ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (5.9ms) Rendered events/_simple_form.html.haml (17.6ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.5ms) Rendered home/index.html.haml within layouts/application (20.3ms) Completed 200 OK in 32ms (Views: 22.0ms | ActiveRecord: 0.0ms)  (0.6ms) SELECT COUNT(*) FROM "events" Event Load (0.5ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.5ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' ORDER BY "polygallery_photos"."id" ASC LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.3ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'  (7.7ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL Started GET "/" for 127.0.0.1 at 2015-03-23 16:37:04 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.3ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (7.1ms) Rendered events/_simple_form.html.haml (18.4ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.4ms) Rendered home/index.html.haml within layouts/application (20.4ms) Completed 200 OK in 32ms (Views: 21.6ms | ActiveRecord: 0.0ms) Started POST "/events" for 127.0.0.1 at 2015-03-23 16:37:04 -0600 Processing by EventsController#create as HTML Parameters: {"utf8"=>"✓", "event"=>{"title"=>"Tri Tip Jerky Frankfurter", "gallery_attributes"=>{"title"=>"gallery", "photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}, "custom_gallery_attributes"=>{"title"=>"custom_gallery", "custom_photos_attributes"=>{"0"=>{"caption"=>"", "_destroy"=>"false"}}}}, "commit"=>"Create Event"}  (0.2ms) BEGIN SQL (16.7ms) INSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-23 22:37:04.894946"], ["title", "Tri Tip Jerky Frankfurter"], ["updated_at", "2015-03-23 22:37:04.894946"]] SQL (15.7ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-03-23 22:37:04.912906"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 22:37:04.912906"]] SQL (0.4ms) INSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-23 22:37:04.929821"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["title", "custom_gallery"], ["updated_at", "2015-03-23 22:37:04.929821"]]  (15.9ms) COMMIT Redirected to http://localhost:3003/ Completed 302 Found in 63ms (ActiveRecord: 48.9ms) Started GET "/" for 127.0.0.1 at 2015-03-23 16:37:04 -0600 Processing by HomeController#index as HTML Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (13.1ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (32.5ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.9ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (1.8ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (8.8ms) Rendered events/_simple_form.html.haml (56.2ms) Rendered /Users/smit1625/Sites/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (0.2ms) Rendered events/_form.html.haml (1.8ms) Rendered home/index.html.haml within layouts/application (59.9ms) Completed 200 OK in 77ms (Views: 61.8ms | ActiveRecord: 0.0ms)  (0.5ms) SELECT COUNT(*) FROM "events" Event Load (0.2ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.6ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]] Event Load (0.2ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1 Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]] Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.4ms) SELECT COUNT(*) FROM "polygallery_photos" INNER JOIN "polygallery_galleries" ON "polygallery_photos"."gallery_id" = "polygallery_galleries"."id" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'custom_gallery' [["galleryable_id", 1], ["galleryable_type", "Event"]]  (0.2ms) ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL  (14.9ms) TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL