test/dummy/log/test.log in polygallery-0.1.2 vs test/dummy/log/test.log in polygallery-0.1.4
- old
+ new
@@ -8945,5 +8945,11644 @@
schemaname = ANY (current_schemas(false))
[0m
[1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
[1m[36m (29.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
[1m[35m (0.5ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (16.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f8d32c9a010 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-66726-10d87go>, @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'
+ [1m[35m (15.9ms)[0m 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'
+ [1m[36mSQL (45.7ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 16:55:35.745131"], ["title", "Beef Pancetta Drumstick"], ["updated_at", "2015-03-21 16:55:35.745131"]]
+ [1m[35mSQL (1.0ms)[0m 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"]]
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 16:55:35.799436"], ["gallery_id", 1], ["updated_at", "2015-03-21 16:55:35.799436"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35m (16.3ms)[0m 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)
+ [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.6ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (16.6ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (16.1ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Load (16.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (3.0ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (25.4ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (2.2ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (9.2ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" 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"}
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (16.3ms)[0m 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"]]
+ [1m[36mSQL (15.4ms)[0m [1mINSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2015-03-21 16:59:10.285415"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 16:59:10.285415"]]
+ [1m[35mSQL (0.6ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.5ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.5ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.1ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (37.6ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fce3ae4b460 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-66820-e3w878>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 16:59:11.885225"], ["title", "Pork Loin Jerky Swine"], ["updated_at", "2015-03-21 16:59:11.885225"]]
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 16:59:11.889944"], ["gallery_id", 1], ["updated_at", "2015-03-21 16:59:11.889944"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35m (16.4ms)[0m 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)
+ [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.5ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.4ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.4ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.0ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (38.4ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"}
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (39.1ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 17:04:12.920244"], ["title", "Swine Kevin Pancetta"], ["updated_at", "2015-03-21 17:04:12.920244"]]
+ [1m[35mSQL (41.2ms)[0m 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"]]
+ [1m[36mSQL (8.7ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 17:04:13.017723"], ["gallery_id", 1], ["updated_at", "2015-03-21 17:04:13.017723"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 17:04:13.029637"], ["gallery_id", 2], ["updated_at", "2015-03-21 17:04:13.029637"]]
+ [1m[35m (6.1ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.7ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (37.1ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" 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"=>#<ActionDispatch::Http::UploadedFile:0x007ffa2555fdd0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-66956-dvjcfm>, @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'
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+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'
+ [1m[35mSQL (0.8ms)[0m 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"]]
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2015-03-21 17:04:14.632512"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-21 17:04:14.632512"]]
+ [1m[35mSQL (0.9ms)[0m 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"]]
+ [1m[36mSQL (21.0ms)[0m [1mINSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (16.2ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.9ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.7ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.4ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.5ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (36.6ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" 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)
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.4ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.2ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (64.7ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"}
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 17:05:34.359294"], ["title", "Corned Beef Bresaola Beef Ribs"], ["updated_at", "2015-03-21 17:05:34.359294"]]
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 17:05:34.366695"], ["gallery_id", 1], ["updated_at", "2015-03-21 17:05:34.366695"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 17:05:34.369824"], ["gallery_id", 2], ["updated_at", "2015-03-21 17:05:34.369824"]]
+ [1m[35m (0.6ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.6ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" 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)
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.5ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.4ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (21.4ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fe539ef2358 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-67027-yu78vv>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 17:05:36.201573"], ["title", "Swine Shoulder Corned Beef"], ["updated_at", "2015-03-21 17:05:36.201573"]]
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 17:05:36.205458"], ["gallery_id", 1], ["updated_at", "2015-03-21 17:05:36.205458"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35m (16.3ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.5ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.4ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Load (0.5ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.5ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.1ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (6.7ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.2ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.6ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f8d995a9708 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-69107-1w8g3ay>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (17.9ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:02:25.979927"], ["title", "Hamburger Filet Mignon Jowl"], ["updated_at", "2015-03-21 18:02:25.979927"]]
+ [1m[35mSQL (15.6ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:02:26.036990"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:02:26.036990"]]
+ [1m[35m (15.7ms)[0m 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)
+ [1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.6ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.8ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.3ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (22.1ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007ffd536c1788 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-69192-1mvisy9>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (19.4ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:05:11.258375"], ["title", "Tongue Ham Hock Bacon"], ["updated_at", "2015-03-21 18:05:11.258375"]]
+ [1m[35mSQL (1.1ms)[0m 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"]]
+ [1m[36mSQL (0.9ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:05:11.344204"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:05:11.344204"]]
+ [1m[35m (15.9ms)[0m 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)
+ [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.7ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (0.9ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (37.3ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.0ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.5ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fa37ac613d8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-69314-z2bgbr>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:07:36.187535"], ["title", "Rump Filet Mignon Strip Steak"], ["updated_at", "2015-03-21 18:07:36.187535"]]
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:07:36.208485"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:07:36.208485"]]
+ [1m[35m (16.0ms)[0m 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)
+ [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.6ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (36.4ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fe5a662da98 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-69366-1ibcneb>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:08:25.164709"], ["title", "Pork Loin Shank Meatloaf"], ["updated_at", "2015-03-21 18:08:25.164709"]]
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:08:25.185980"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:08:25.185980"]]
+ [1m[35m (15.7ms)[0m 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)
+ [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.6ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.7ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.6ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fe1565f5868 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-69427-17077bz>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:09:40.983180"], ["title", "Leberkas Chuck Sirloin"], ["updated_at", "2015-03-21 18:09:40.983180"]]
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:09:41.004706"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:09:41.004706"]]
+ [1m[35m (15.9ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.9ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (37.4ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.7ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f8f5555c710 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-69559-tyepv3>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:14:37.449271"], ["title", "Strip Steak Biltong Frankfurter"], ["updated_at", "2015-03-21 18:14:37.449271"]]
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:14:37.470742"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:14:37.470742"]]
+ [1m[35m (15.6ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.6ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (20.9ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (2.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007ffa7e3556f8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-69682-q7bjh1>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:18:40.940952"], ["title", "Short Loin Flank T Bone"], ["updated_at", "2015-03-21 18:18:40.940952"]]
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:18:40.962609"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:18:40.962609"]]
+ [1m[35m (16.1ms)[0m 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)
+ [1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.8ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.7ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (37.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.7ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.7ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.6ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.6ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.4ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.4ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.7ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.9ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.0ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.6ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.2ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.7ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fb6a6b59870 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-70084-182aq26>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:27:46.277050"], ["title", "Strip Steak Salami Tail"], ["updated_at", "2015-03-21 18:27:46.277050"]]
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:27:46.299828"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:27:46.299828"]]
+ [1m[35m (15.7ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.7ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (21.0ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fef42696e80 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-70296-1m1yzv2>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:39:17.468720"], ["title", "Jowl Swine Ribeye"], ["updated_at", "2015-03-21 18:39:17.468720"]]
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:39:17.491922"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:39:17.491922"]]
+ [1m[35m (15.5ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.8ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.5ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.5ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fbb1761e250 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-70347-1uhczi9>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:39:56.175856"], ["title", "Tri Tip Hamburger Chuck"], ["updated_at", "2015-03-21 18:39:56.175856"]]
+ [1m[35mSQL (0.6ms)[0m 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"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:39:56.198577"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:39:56.198577"]]
+ [1m[35m (16.3ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.9ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.6ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fa57111aeb8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-70407-1li72qn>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:41:16.124332"], ["title", "Ham Meatloaf Short Ribs"], ["updated_at", "2015-03-21 18:41:16.124332"]]
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:41:16.147168"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:41:16.147168"]]
+ [1m[35m (15.7ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.7ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.3ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f82236b24a0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-70454-1fsog4t>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:41:41.646018"], ["title", "Ham Hock Swine Pancetta"], ["updated_at", "2015-03-21 18:41:41.646018"]]
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:41:41.668145"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:41:41.668145"]]
+ [1m[35m (16.0ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.5ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.5ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.6ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fd9b3ebf9d0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-70509-1veve2s>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:42:44.356945"], ["title", "Tongue Beef Doner"], ["updated_at", "2015-03-21 18:42:44.356945"]]
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:42:44.379290"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:42:44.379290"]]
+ [1m[35m (15.9ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.7ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.7ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fa0b936c570 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-70572-1biuy5n>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:44:09.356010"], ["title", "Pork Kielbasa Chicken"], ["updated_at", "2015-03-21 18:44:09.356010"]]
+ [1m[35mSQL (0.6ms)[0m 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"]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:44:09.377638"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:44:09.377638"]]
+ [1m[35m (16.1ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.6ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.3ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.6ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.0ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fc4b37003a8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-70639-1futqb6>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:45:41.464574"], ["title", "Tongue Ball Tip Shankle"], ["updated_at", "2015-03-21 18:45:41.464574"]]
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:45:41.486452"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:45:41.486452"]]
+ [1m[35m (16.3ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.6ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.5ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.6ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.4ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.2ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.1ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.3ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.0ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.4ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.4ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.6ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f978dee85f0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-71103-18q8w84>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:57:11.008305"], ["title", "T Bone Short Loin Kevin"], ["updated_at", "2015-03-21 18:57:11.008305"]]
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:57:11.029236"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:57:11.029236"]]
+ [1m[35m (16.4ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.6ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.5ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.6ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.6ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f91c9090b20 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-71158-dg44o1>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:57:56.969635"], ["title", "Brisket Ham Hock Meatball"], ["updated_at", "2015-03-21 18:57:56.969635"]]
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:57:56.992917"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:57:56.992917"]]
+ [1m[35m (16.0ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.6ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.9ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.4ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fb82adaa770 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-71210-b7e6uo>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:58:43.115120"], ["title", "Tongue Pancetta Capicola"], ["updated_at", "2015-03-21 18:58:43.115120"]]
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:58:43.137942"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:58:43.137942"]]
+ [1m[35m (15.4ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.7ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.6ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fcaea658210 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150321-71256-173ua8r>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:58:59.217741"], ["title", "Leberkas Strip Steak Frankfurter"], ["updated_at", "2015-03-21 18:58:59.217741"]]
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-21 18:58:59.239768"], ["gallery_id", 2], ["updated_at", "2015-03-21 18:58:59.239768"]]
+ [1m[35m (15.6ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.7ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.6ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.2ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.7ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.9ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (16.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.7ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.6ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.4ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (38.6ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.5ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (10.4ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.4ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.8ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.3ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (9.9ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.5ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.2ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.6ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.6ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.7ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.2ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.9ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.7ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007ff0e14fa798 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-22142-1av1hub>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (53.9ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:14:12.211688"], ["title", "Ground Round Rump Hamburger"], ["updated_at", "2015-03-23 18:14:12.211688"]]
+ [1m[35mSQL (21.4ms)[0m 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"]]
+ [1m[36mSQL (9.5ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:14:12.354485"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:14:12.354485"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (30.9ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.4ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (23.7ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fdce13fa8c0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-22208-r1rrh5>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (18.2ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:15:31.877370"], ["title", "Bacon Bresaola Pork"], ["updated_at", "2015-03-23 18:15:31.877370"]]
+ [1m[35mSQL (16.2ms)[0m 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"]]
+ [1m[36mSQL (0.9ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:15:31.934649"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:15:31.934649"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (15.8ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.8ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.4ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.5ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (37.7ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fed5c30e4d0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-22267-icibjp>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (17.7ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:16:05.619369"], ["title", "Beef Fatback Pork Chop"], ["updated_at", "2015-03-23 18:16:05.619369"]]
+ [1m[35mSQL (15.7ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:16:05.677106"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:16:05.677106"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (15.6ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.4ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (23.7ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.6ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.0ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fc2889ade70 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-22374-1it3b3y>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (17.8ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:17:57.589239"], ["title", "Turkey Ball Tip Shank"], ["updated_at", "2015-03-23 18:17:57.589239"]]
+ [1m[35mSQL (15.9ms)[0m 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"]]
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:17:57.631408"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:17:57.631408"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (15.6ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (2.5ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.4ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (22.4ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f827e676418 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-22424-1hjfn90>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (18.2ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:18:11.663857"], ["title", "Andouille Swine Frankfurter"], ["updated_at", "2015-03-23 18:18:11.663857"]]
+ [1m[35mSQL (16.3ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:18:11.706007"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:18:11.706007"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (15.6ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (1.5ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.5ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.3ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.1ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (22.4ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007faf3a031ee8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-22474-1g2otv7>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (18.6ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:18:30.498627"], ["title", "Hamburger Biltong Kevin"], ["updated_at", "2015-03-23 18:18:30.498627"]]
+ [1m[35mSQL (13.3ms)[0m 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"]]
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:18:30.538283"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:18:30.538283"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (15.6ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.8ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.5ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.3ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (0.9ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (21.9ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f96fd49d5b8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-22526-94fwb>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (17.9ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:18:57.015410"], ["title", "Shoulder Shank Pork Belly"], ["updated_at", "2015-03-23 18:18:57.015410"]]
+ [1m[35mSQL (15.8ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:18:57.056806"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:18:57.056806"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (15.4ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (1.6ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.4ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.4ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.8ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (22.3ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fbdae0260e8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-22575-dfxfy8>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (32.8ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:19:15.810761"], ["title", "Doner Pastrami Tenderloin"], ["updated_at", "2015-03-23 18:19:15.810761"]]
+ [1m[35mSQL (1.0ms)[0m 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"]]
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:19:15.852083"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:19:15.852083"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (15.8ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.4ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.4ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.0ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f9e2bb066b8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-22632-11vr0a2>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (17.9ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:20:08.999912"], ["title", "Turkey Swine Frankfurter"], ["updated_at", "2015-03-23 18:20:08.999912"]]
+ [1m[35mSQL (15.4ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:20:09.056770"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:20:09.056770"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (15.7ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.4ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (37.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f89ea836c58 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-22701-1m2bgu7>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (17.8ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:21:55.766752"], ["title", "Shoulder Pastrami Tenderloin"], ["updated_at", "2015-03-23 18:21:55.766752"]]
+ [1m[35mSQL (16.4ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:21:55.808835"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:21:55.808835"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (16.3ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.9ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.4ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.2ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (21.7ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f8de268ddb0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-22755-syqjfh>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (17.9ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:22:35.427473"], ["title", "T Bone Drumstick Rump"], ["updated_at", "2015-03-23 18:22:35.427473"]]
+ [1m[35mSQL (1.2ms)[0m 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"]]
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:22:35.470928"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:22:35.470928"]]
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.7ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.7ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.5ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.3ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.6ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.5ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (22.6ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fd060cf6038 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-22844-1fayaam>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (31.5ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:25:12.338754"], ["title", "Beef Ribs Capicola Cow"], ["updated_at", "2015-03-23 18:25:12.338754"]]
+ [1m[35mSQL (1.0ms)[0m 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"]]
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:25:12.378930"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:25:12.378930"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (15.6ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.9ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.4ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.7ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.6ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.3ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (28.9ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (39.1ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f8498b2a718 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-23040-cvwurg>, @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
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (17.3ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["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"]]
+ [1m[35mSQL (15.7ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:32:51.373312"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:32:51.373312"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:32:51.377347"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:32:51.377347"]]
+ [1m[35m (0.6ms)[0m 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)
+ [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.7ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mSQL (16.0ms)[0m DELETE FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.0ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fe5a940af38 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-23071-8ndfff>, @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
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (28.2ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:33:11.198796"], ["title", "Tongue Landjaeger Shoulder"], ["updated_at", "2015-03-23 18:33:11.198796"]]
+ [1m[35mSQL (1.2ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:33:11.234506"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:33:11.234506"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:33:11.237797"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:33:11.237797"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.5ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.4ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.0ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (37.1ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007ff879d3a170 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-23105-17irpk9>, @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
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (17.5ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:33:42.185047"], ["title", "Boudin Biltong Beef"], ["updated_at", "2015-03-23 18:33:42.185047"]]
+ [1m[35mSQL (15.6ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:33:42.226661"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:33:42.226661"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:33:42.231000"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:33:42.231000"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.5ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.4ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.3ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.1ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (22.2ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fad8c611d40 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-23137-o7af0x>, @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
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (16.1ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:34:03.180522"], ["title", "Ham Hock Chuck Chicken"], ["updated_at", "2015-03-23 18:34:03.180522"]]
+ [1m[35mSQL (15.0ms)[0m 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"]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:34:03.218623"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:34:03.218623"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:34:03.221755"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:34:03.221755"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.5ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.3ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (22.2ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f7faae1a218 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-23173-1fk8r5k>, @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
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (17.4ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:34:49.133870"], ["title", "Shank Meatloaf Boudin"], ["updated_at", "2015-03-23 18:34:49.133870"]]
+ [1m[35mSQL (16.2ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:34:49.174413"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:34:49.174413"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:34:49.178134"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:34:49.178134"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.5ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.9ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.7ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.6ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.7ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (21.0ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fbd16d42828 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-23218-1fvs86m>, @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
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (32.4ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:35:45.205481"], ["title", "Pork Loin Biltong Short Ribs"], ["updated_at", "2015-03-23 18:35:45.205481"]]
+ [1m[35mSQL (1.0ms)[0m 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"]]
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:35:45.245162"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:35:45.245162"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:35:45.249173"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:35:45.249173"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.9ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.8ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.4ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.4ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.4ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (22.7ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fbeb1093d38 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-23281-nnbk3y>, @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
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (18.0ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:38:12.103291"], ["title", "Boudin Meatloaf Fatback"], ["updated_at", "2015-03-23 18:38:12.103291"]]
+ [1m[35mSQL (31.6ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:38:12.159932"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:38:12.159932"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:38:12.164308"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:38:12.164308"]]
+ [1m[35m (0.6ms)[0m 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)
+ [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.6ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.5ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Load (0.2ms)[0m [1mSELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "polygallery_photos" WHERE "polygallery_photos"."id" = $1[0m [["id", 1]]
+ [1m[35m (15.7ms)[0m COMMIT
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.1ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.6ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.6ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007ffb9b4a2100 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-23326-1bxddst>, @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
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (17.7ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:39:05.861045"], ["title", "Swine Landjaeger Meatloaf"], ["updated_at", "2015-03-23 18:39:05.861045"]]
+ [1m[35mSQL (12.6ms)[0m 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"]]
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:39:05.898119"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:39:05.898119"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:39:05.901945"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:39:05.901945"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.6ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (1.0ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.7ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.4ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.6ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (21.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007feb032f1fc0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-23371-fqqhzd>, @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
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (33.0ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:40:21.259272"], ["title", "Pastrami Sirloin Ham Hock"], ["updated_at", "2015-03-23 18:40:21.259272"]]
+ [1m[35mSQL (1.3ms)[0m 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"]]
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:40:21.301225"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:40:21.301225"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:40:21.304854"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:40:21.304854"]]
+ [1m[35m (0.6ms)[0m 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)
+ [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.6ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.8ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.4ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.2ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (0.9ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (37.0ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fa79450f6c0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-23401-uu0lto>, @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
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:40:34.126198"], ["title", "Turducken Brisket Frankfurter"], ["updated_at", "2015-03-23 18:40:34.126198"]]
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:40:34.133666"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:40:34.133666"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:40:34.137526"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:40:34.137526"]]
+ [1m[35m (0.6ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.6ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.4ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.1ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (6.6ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fb778100a18 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-23433-rppkst>, @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
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:40:57.942149"], ["title", "Leberkas Prosciutto Jowl"], ["updated_at", "2015-03-23 18:40:57.942149"]]
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:40:57.949312"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:40:57.949312"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:40:57.953093"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:40:57.953093"]]
+ [1m[35m (0.5ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.6ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.3ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.0ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (68.3ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007ff740996fd0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-23468-1fsubi3>, @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
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (17.9ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:41:32.481956"], ["title", "Hamburger Kevin Corned Beef"], ["updated_at", "2015-03-23 18:41:32.481956"]]
+ [1m[35mSQL (16.1ms)[0m 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"]]
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:41:32.522499"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:41:32.522499"]]
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:41:32.527142"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:41:32.527142"]]
+ [1m[35m (0.5ms)[0m 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)
+ [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (1.1ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.6ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.4ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.7ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.2ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (24.8ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fe7679f9bf0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-23525-1olzviu>, @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
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (32.6ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:43:50.008251"], ["title", "Flank Pork Loin Pork Belly"], ["updated_at", "2015-03-23 18:43:50.008251"]]
+ [1m[35mSQL (1.0ms)[0m 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"]]
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:43:50.048068"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:43:50.048068"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:43:50.051451"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:43:50.051451"]]
+ [1m[35m (0.7ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.6ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.6ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (23.0ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fad35814720 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-23583-lm2rgy>, @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
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (17.8ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:45:01.709298"], ["title", "Pig Doner Flank"], ["updated_at", "2015-03-23 18:45:01.709298"]]
+ [1m[35mSQL (15.6ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:45:01.749180"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:45:01.749180"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:45:01.752967"], ["gallery_id", 2], ["updated_at", "2015-03-23 18:45:01.752967"]]
+ [1m[35m (0.6ms)[0m 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)
+ [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.8ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.5ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (23.4ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fb5a10f3f58 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-23626-os79x7>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (17.5ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:45:50.808025"], ["title", "Kevin Shankle Brisket"], ["updated_at", "2015-03-23 18:45:50.808025"]]
+ [1m[35mSQL (16.5ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 18:45:50.849583"], ["gallery_id", 1], ["updated_at", "2015-03-23 18:45:50.849583"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35m (16.4ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.6ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.5ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (21.3ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.4ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.2ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (33.4ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007feaf2723f28 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-23999-tx3941>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (29.5ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:00:53.510262"], ["title", "Spare Ribs Salami Chuck"], ["updated_at", "2015-03-23 19:00:53.510262"]]
+ [1m[35mSQL (2.0ms)[0m 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"]]
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:00:53.549600"], ["gallery_id", 1], ["updated_at", "2015-03-23 19:00:53.549600"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35m (16.4ms)[0m 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)
+ [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.6ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Photo Load (0.2ms)[0m SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Load (0.2ms)[0m [1mSELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (22.3ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.9ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.4ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.4ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.6ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.4ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.3ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.0ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.7ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.9ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fb6819e30b0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-24553-yw98me>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (17.8ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:18:54.648495"], ["title", "Meatball Spare Ribs Ground Round"], ["updated_at", "2015-03-23 19:18:54.648495"]]
+ [1m[35mSQL (15.7ms)[0m 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"]]
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:18:54.689611"], ["gallery_id", 1], ["updated_at", "2015-03-23 19:18:54.689611"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (16.2ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.6ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.3ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (22.7ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f849c713f18 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-24634-2xq3el>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (18.1ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:21:29.915169"], ["title", "Spare Ribs Pastrami Boudin"], ["updated_at", "2015-03-23 19:21:29.915169"]]
+ [1m[35mSQL (16.4ms)[0m 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"]]
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:21:29.958065"], ["gallery_id", 1], ["updated_at", "2015-03-23 19:21:29.958065"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (15.5ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.3ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (22.0ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007febd9be8a80 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-24714-m7j8o0>, @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'
+ [1m[35m (0.3ms)[0m 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'
+ [1m[36mSQL (17.5ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:23:54.633403"], ["title", "Corned Beef Doner Ham Hock"], ["updated_at", "2015-03-23 19:23:54.633403"]]
+ [1m[35mSQL (15.4ms)[0m 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"]]
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:23:54.673942"], ["gallery_id", 1], ["updated_at", "2015-03-23 19:23:54.673942"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (15.6ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.8ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.4ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.5ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.3ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (13.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fbeda0305c0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-24762-sy01lo>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:24:10.945077"], ["title", "Prosciutto Strip Steak Short Ribs"], ["updated_at", "2015-03-23 19:24:10.945077"]]
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36mSQL (0.7ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:24:10.978409"], ["gallery_id", 2], ["updated_at", "2015-03-23 19:24:10.978409"]]
+ [1m[35m (15.6ms)[0m 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)
+ [1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.6ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.5ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.5ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.4ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.0ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (37.6ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007ff024302bd8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-24881-17itrvz>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007ff024302840 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-24881-82o7ef>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007ff024301e90 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-24881-dcxka4>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (30.6ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:28:00.359753"], ["title", "Tenderloin Tri Tip Frankfurter"], ["updated_at", "2015-03-23 19:28:00.359753"]]
+ [1m[35mSQL (1.2ms)[0m 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"]]
+ [1m[36mSQL (0.9ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:28:00.437203"], ["gallery_id", 2], ["updated_at", "2015-03-23 19:28:00.437203"]]
+ [1m[35m (16.0ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.6ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.4ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.3ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.1ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (22.6ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fdf69169a68 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-24973-69nyzq>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fdf69171cb8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-24973-1jeyaqs>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fdf6b013590 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-24973-691e8j>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (228.7ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:28:28.900404"], ["title", "Strip Steak Salami Pork Chop"], ["updated_at", "2015-03-23 19:28:28.900404"]]
+ [1m[35mSQL (1.2ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:28:29.174024"], ["gallery_id", 2], ["updated_at", "2015-03-23 19:28:29.174024"]]
+ [1m[35m (15.7ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.6ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.4ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.5ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.3ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (21.0ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007ff73ada80c0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-25060-1uuvs8s>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007ff73ad4fec0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-25060-1qrc998>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007ff73ad4f3d0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-25060-1ae909m>, @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'
+ [1m[35m (0.3ms)[0m 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'
+ [1m[36mSQL (17.8ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:28:50.891057"], ["title", "Drumstick Shank Pork"], ["updated_at", "2015-03-23 19:28:50.891057"]]
+ [1m[35mSQL (16.4ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:28:50.969766"], ["gallery_id", 2], ["updated_at", "2015-03-23 19:28:50.969766"]]
+ [1m[35m (15.8ms)[0m 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)
+ [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.7ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.4ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.1ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (22.4ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f95f9fe4e58 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-25205-19bearu>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (17.8ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:32:47.043724"], ["title", "Prosciutto Bresaola Shank"], ["updated_at", "2015-03-23 19:32:47.043724"]]
+ [1m[35mSQL (15.9ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:32:47.085118"], ["gallery_id", 1], ["updated_at", "2015-03-23 19:32:47.085118"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (15.7ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.7ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (1.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.3ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (21.7ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fc44487b378 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-25259-1n70orb>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (17.8ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:33:30.185486"], ["title", "Pork Loin Capicola Shankle"], ["updated_at", "2015-03-23 19:33:30.185486"]]
+ [1m[35mSQL (1.4ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:33:30.220642"], ["gallery_id", 1], ["updated_at", "2015-03-23 19:33:30.220642"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (15.7ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.3ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (22.0ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fde09949988 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-25326-17qbiiy>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fde099495c8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-25326-18snmqt>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fde09949168 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-25326-1rnh7pu>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (18.0ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:34:28.839685"], ["title", "Tenderloin Chicken Venison"], ["updated_at", "2015-03-23 19:34:28.839685"]]
+ [1m[35mSQL (16.4ms)[0m 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"]]
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:34:28.881801"], ["gallery_id", 1], ["updated_at", "2015-03-23 19:34:28.881801"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (16.2ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.6ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.3ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.9ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f90ef6d89e0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-25455-1s8l8a3>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f90ef6d85a8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-25455-11cn52t>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f90ef6d81c0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-25455-u4gtpm>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (18.2ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:37:08.179072"], ["title", "Boudin Drumstick Kielbasa"], ["updated_at", "2015-03-23 19:37:08.179072"]]
+ [1m[35mSQL (15.5ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:37:08.220750"], ["gallery_id", 1], ["updated_at", "2015-03-23 19:37:08.220750"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (31.5ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.8ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.4ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.3ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (2.9ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.4ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fc8a89c0d10 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-25591-1tky0tg>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fc8a89d3c30 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-25591-zsot1b>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fc8a89da350 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-25591-5tvqhn>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (17.8ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:39:59.848129"], ["title", "Hamburger Flank Porchetta"], ["updated_at", "2015-03-23 19:39:59.848129"]]
+ [1m[35mSQL (12.4ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:39:59.886994"], ["gallery_id", 1], ["updated_at", "2015-03-23 19:39:59.886994"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (15.8ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.7ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.3ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (22.4ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fb973199888 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-25692-dj31e0>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fb9731a0bd8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-25692-1blrhre>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fb9731a84f0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-25692-16su2ei>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (17.9ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:41:02.410147"], ["title", "Jerky Sirloin Meatloaf"], ["updated_at", "2015-03-23 19:41:02.410147"]]
+ [1m[35mSQL (16.6ms)[0m 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"]]
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 19:41:02.451995"], ["gallery_id", 1], ["updated_at", "2015-03-23 19:41:02.451995"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (15.8ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.4ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.5ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.3ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.1ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (6.6ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (15.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fd5d3950988 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26376-1hrvznp>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fd5d395a910 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26376-4t18zj>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fd5d3963d58 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26376-n9qhqv>, @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"}
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+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)
+ [1m[35m (2.1ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.8ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.4ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (41.2ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fdd4df94f70 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26431-1np40bl>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fdd4df94a20 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26431-11skt3z>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fdd4df94a48 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26431-1ezn2hd>, @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
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.9ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fbd92d43080 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26464-fkkway>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fbd92d42c70 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26464-1miz1hu>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fbd92d428b0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26464-1wmk3ca>, @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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fe9b5d9b218 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26503-1lz2sbv>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fe9b5d9ad18 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26503-97ixwv>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fe9b5d9a750 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26503-127r0ix>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (32.5ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:09:47.871406"], ["title", "Chicken Pork Loin Venison"], ["updated_at", "2015-03-23 20:09:47.871406"]]
+ [1m[35mSQL (1.0ms)[0m 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"]]
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:09:47.912049"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:09:47.912049"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (31.4ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.3ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.4ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.1ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (7.8ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fa4e9053440 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26630-1tkqllo>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fa4e9052fe0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26630-2s9676>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fa4e9052b80 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26630-ojwc1e>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (17.7ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:12:30.241482"], ["title", "Andouille Bacon Porchetta"], ["updated_at", "2015-03-23 20:12:30.241482"]]
+ [1m[35mSQL (16.3ms)[0m 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"]]
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:12:30.283294"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:12:30.283294"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (15.8ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.7ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (23.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.4ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.2ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (7.2ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fc9e53fb1d0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26733-1xaha6b>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fc9e53fadc0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26733-1rb875x>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fc9e53fa9b0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26733-e3yf0t>, @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'
+ [1m[35m (0.3ms)[0m 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'
+ [1m[36mSQL (17.7ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:13:52.565906"], ["title", "Tongue Short Loin Capicola"], ["updated_at", "2015-03-23 20:13:52.565906"]]
+ [1m[35mSQL (15.5ms)[0m 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"]]
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:13:52.606894"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:13:52.606894"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (15.5ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.9ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.5ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.3ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.0ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (6.5ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f865aa2d6d0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26828-u388bn>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f865aa2d2e8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26828-5is489>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f865aa2ce88 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26828-7cz7eu>, @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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fa57ceb38a8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26856-rwc6bd>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fa57ceb34c0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26856-1bv6314>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fa57ceb30d8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26856-ohuwb3>, @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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f829451fd10 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26893-bi5juf>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f829451f8d8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26893-sounfq>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f829451f518 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-26893-1jq6aku>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (15.9ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:15:39.531956"], ["title", "Turducken Flank Ground Round"], ["updated_at", "2015-03-23 20:15:39.531956"]]
+ [1m[35mSQL (15.1ms)[0m 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"]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:15:39.570528"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:15:39.570528"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (15.8ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.5ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.3ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.1ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (6.6ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fcb84c9b3f8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27028-c3xm2k>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fcb84c9af98 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27028-14emeox>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fcb84c9ab60 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27028-dx33hn>, @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"}
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (17.4ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:18:34.057200"], ["title", "Tri Tip Pancetta Ham"], ["updated_at", "2015-03-23 20:18:34.057200"]]
+ [1m[35mSQL (16.2ms)[0m 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"]]
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:18:34.097461"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:18:34.097461"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:18:34.101023"], ["gallery_id", 2], ["updated_at", "2015-03-23 20:18:34.101023"]]
+ [1m[35m (0.5ms)[0m 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)
+ [1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.7ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Load (0.3ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.3ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.6ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (22.2ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (37.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007faedaa29f50 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27188-15yu9q5>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007faedaa295a0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27188-fcgr0c>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007faedaa29258 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27188-yf2zf1>, @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"}
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (33.3ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:27:32.072610"], ["title", "Fatback Shoulder Ground Round"], ["updated_at", "2015-03-23 20:27:32.072610"]]
+ [1m[35mSQL (31.2ms)[0m 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"]]
+ [1m[36mSQL (32.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:27:32.150173"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:27:32.150173"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:27:32.185230"], ["gallery_id", 2], ["updated_at", "2015-03-23 20:27:32.185230"]]
+ [1m[35m (34.6ms)[0m 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)
+ [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.6ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.3ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.3ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (134.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fec3fed0750 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27241-17hvi5j>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fec3fed0340 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27241-khtnbe>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fec3fed1b00 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27241-w84k14>, @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"}
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (18.3ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:28:33.131602"], ["title", "Pancetta Tri Tip Pig"], ["updated_at", "2015-03-23 20:28:33.131602"]]
+ [1m[35mSQL (15.3ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:28:33.171954"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:28:33.171954"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:28:33.175652"], ["gallery_id", 2], ["updated_at", "2015-03-23 20:28:33.175652"]]
+ [1m[35m (0.6ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.8ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.3ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (21.6ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fc05e63c218 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27275-g4t7bg>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fc05e63e400 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27275-1imd182>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fc05e647d70 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27275-1e1q94d>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (30.5ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:29:15.312334"], ["title", "Ribeye Shank Doner"], ["updated_at", "2015-03-23 20:29:15.312334"]]
+ [1m[35mSQL (1.2ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:29:15.351158"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:29:15.351158"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (15.7ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.5ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.4ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.0ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (6.4ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fda221902b8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27366-j0hjk6>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fda221af898 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27366-14a43d1>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fda221aeda8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27366-13sgnev>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (17.4ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:29:40.037386"], ["title", "Capicola Boudin Beef Ribs"], ["updated_at", "2015-03-23 20:29:40.037386"]]
+ [1m[35mSQL (1.0ms)[0m 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"]]
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:29:40.069045"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:29:40.069045"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (15.6ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.8ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.3ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.5ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.0ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (6.7ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fe66156e600 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27456-dofoua>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fe66156e308 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27456-zn5nic>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fe66156df98 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27456-ui5w0f>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (17.6ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:29:55.384581"], ["title", "Biltong Pork Shankle"], ["updated_at", "2015-03-23 20:29:55.384581"]]
+ [1m[35mSQL (16.0ms)[0m 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"]]
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:29:55.425874"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:29:55.425874"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (15.7ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.4ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.3ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.4ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (36.9ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fa544715278 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27567-65q528>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fa544714e68 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27567-12uo8wj>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fa5447148a0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27567-ggqhba>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (31.7ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:31:31.935068"], ["title", "Cow Drumstick Jowl"], ["updated_at", "2015-03-23 20:31:31.935068"]]
+ [1m[35mSQL (1.2ms)[0m 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"]]
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:31:31.979712"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:31:31.979712"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (16.4ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.5ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.0ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (6.4ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fcf5309a748 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27659-1p6x52t>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fcf5309a3b0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27659-tosnp7>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fcf5309a040 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27659-3fbd84>, @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"}
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (17.9ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:32:00.179479"], ["title", "Swine Short Loin Pancetta"], ["updated_at", "2015-03-23 20:32:00.179479"]]
+ [1m[35mSQL (15.5ms)[0m 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"]]
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:32:00.219726"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:32:00.219726"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:32:00.223724"], ["gallery_id", 2], ["updated_at", "2015-03-23 20:32:00.223724"]]
+ [1m[35m (0.5ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.8ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.4ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Load (0.3ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Photo Exists (0.2ms)[0m SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
+ [1m[36m (0.3ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.2ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (21.9ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007ffccb079d40 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27691-1is3j89>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007ffccb0792f0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27691-ob3f0r>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007ffccb07ac18 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-27691-177g0vo>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:32:31.532064"], ["title", "Ribeye Meatloaf Jowl"], ["updated_at", "2015-03-23 20:32:31.532064"]]
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "polygallery_photos" ("created_at", "gallery_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 20:32:31.539347"], ["gallery_id", 1], ["updated_at", "2015-03-23 20:32:31.539347"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (15.5ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.4ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Photo Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 1]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]
+ [1m[36mPolygallery::Photo Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1[0m [["gallery_id", 2]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.4ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.0ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (6.9ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.4ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (8.3ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.9ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.9ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f8dbbe4a458 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28424-10t9cfq>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f8dbbe49f30 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28424-2sg839>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f8dbbe49c10 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28424-4x85m9>, @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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (8.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f9eced107a8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28548-1sa7adp>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f9eced10190 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28548-1f4mmt5>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f9eced1bf68 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28548-1rds071>, @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
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (8.7ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fe0cfe562a0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28590-1tz5pzg>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fe0cfe55d00 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28590-rad0n5>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fe0cfe559e0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28590-1yqxj55>, @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
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.9ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007ff0fefbd410 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28632-1i1eguc>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007ff0fefbd050 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28632-1d3q2wf>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007ff0fefbcce0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28632-176hogs>, @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
+ [1m[35m (0.5ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.9ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fabfbe6fd80 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28665-buoz72>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fabfbe6f4e8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28665-i2dhqu>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fabfbe6ef98 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28665-78qmsz>, @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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.7ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.3ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fe9327174b0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28733-by8jtd>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fe932717050 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28733-yl99bk>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fe932716d58 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28733-1qv94p7>, @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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.5ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (8.7ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f81930c6748 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28765-1sli41d>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f81930c6298 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28765-128nif6>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f81930c5d70 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28765-y4jy90>, @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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (13.6ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fab4460f878 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28797-1gleogx>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fab4460f1c0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28797-isc7me>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fab4460eb58 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28797-157l34d>, @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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fb08e4b8138 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28841-c1s9ya>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fb08e0f3e30 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28841-1p0ob5q>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fb08e0f3b10 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28841-15nffwk>, @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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.4ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.2ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fa6fb981a80 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28878-1qjqhf6>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fa6fb981698 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28878-19ik0at>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fa6fb981260 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28878-14bt7q1>, @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"}
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (17.2ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 21:19:35.850808"], ["title", "Capicola Doner Beef Ribs"], ["updated_at", "2015-03-23 21:19:35.850808"]]
+ [1m[35mSQL (16.2ms)[0m 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"]]
+ [1m[36m (0.5ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Photo Load (2.5ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.3ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.8ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (22.3ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f8d82b1fcf8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28956-1emijz4>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f8d82b1f910 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28956-13w4cc4>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f8d82b1f2f8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-28956-7nclqq>, @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"}
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (29.2ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 21:22:54.268855"], ["title", "Jowl Meatball Andouille"], ["updated_at", "2015-03-23 21:22:54.268855"]]
+ [1m[35mSQL (1.5ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.4ms)[0m 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)
+ [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.7ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.3ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.3ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.5ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.3ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.3ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.3ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.3ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.3ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.3ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.3ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.3ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.3ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.3ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.3ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.5ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.1ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.1ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mEvent Load (0.2ms)[0m SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.4ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.1ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (7.3ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.6ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.7ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.8ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fa37b9c62a8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29210-17grc2m>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fa37b9c5fb0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29210-74rh0v>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fa37b9c5bf0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29210-u0c5je>, @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"}
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (18.7ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 21:32:10.028702"], ["title", "Meatball Prosciutto Frankfurter"], ["updated_at", "2015-03-23 21:32:10.028702"]]
+ [1m[35mSQL (13.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.5ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.7ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (16.2ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.7ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.1ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (7.1ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007fc8aa4de520 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29247-1bli1mb>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fc8aa4ddff8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29247-4a0ctr>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007fc8aa4ddd00 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29247-1knp75i>, @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
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.4ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.6ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007ff05ce8e910 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29280-mvn3xy>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007ff05ce8e410 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29280-1in67ql>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007ff05ce8dee8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29280-u90em9>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (31.6ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 21:33:41.632522"], ["title", "Shankle Ham Leberkas"], ["updated_at", "2015-03-23 21:33:41.632522"]]
+ [1m[35mSQL (1.4ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35mSQL (1.2ms)[0m 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"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (16.3ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Load (0.5ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.3ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]
+ [1m[36m (0.3ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.4ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.0ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (37.3ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007ffc91bcadc8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29372-gmzg9z>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007ffc91bca760 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29372-1ddwj4d>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007ffc91bca238 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29372-ajefzg>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (229.5ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 21:34:35.799093"], ["title", "Ribeye Pancetta Pork Belly"], ["updated_at", "2015-03-23 21:34:35.799093"]]
+ [1m[35mSQL (0.9ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35mSQL (1.0ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (16.4ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.4ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Load (0.5ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]
+ [1m[36m (0.3ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.4ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.1ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (35.7ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f85f47e37a0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29461-1d6bzg1>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 21:35:03.081793"], ["title", "Sirloin Beef Ribs Shoulder"], ["updated_at", "2015-03-23 21:35:03.081793"]]
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36m (16.2ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.7ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.4ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Load (0.6ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 2]]
+ [1m[36m (0.4ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.2ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" 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"=>#<ActionDispatch::Http::UploadedFile:0x007f85faed01c0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29461-nql64>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f85faee3ec8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29461-v7vwdd>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f85faee3bd0 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29461-34gjjt>, @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'
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+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'
+ [1m[35mSQL (0.7ms)[0m 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"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2015-03-23 21:35:06.268568"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 21:35:06.268568"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35m (16.5ms)[0m 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)
+ [1m[36m (0.9ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.6ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.5ms)[0m [1mSELECT "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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.2ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.1ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" 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"}
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2015-03-23 21:35:07.155595"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 21:35:07.155595"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.4ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.2ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (7.1ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f85fae06e10 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29461-1tzema4>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 21:35:08.926952"], ["title", "Shoulder Fatback Frankfurter"], ["updated_at", "2015-03-23 21:35:08.926952"]]
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (16.0ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.6ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.4ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.6ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.4ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (2.2ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (7.7ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f94b4c7ab78 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29690-3dj2vw>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (17.6ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 21:37:52.341014"], ["title", "Boudin Rump Short Loin"], ["updated_at", "2015-03-23 21:37:52.341014"]]
+ [1m[35mSQL (16.3ms)[0m 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"]]
+ [1m[36mSQL (1.0ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (15.6ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.7ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.7ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.5ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Load (0.4ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.4ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.3ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (36.7ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+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"=>#<ActionDispatch::Http::UploadedFile:0x007f94b4ff1658 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29690-1it3tun>, @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'
+ [1m[35m (0.2ms)[0m 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'
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 21:37:54.014638"], ["title", "Kevin Landjaeger Beef"], ["updated_at", "2015-03-23 21:37:54.014638"]]
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36m (15.9ms)[0m [1mCOMMIT[0m
+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)
+ [1m[35m (0.9ms)[0m SELECT COUNT(*) FROM "events"
+ [1m[36mEvent Load (0.7ms)[0m [1mSELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1[0m
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Load (0.7ms)[0m 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"]]
+ [1m[36mPolygallery::Gallery Load (0.3ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.4ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Photo Load (0.5ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.4ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.1ms)[0m [1mselect table_name from information_schema.views where table_schema = 'polygallery_dummy_test'[0m
+ [1m[35m (38.0ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m
+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"}
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "events" ("created_at", "title", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-23 21:37:54.877913"], ["title", "Andouille Leberkas Sausage"], ["updated_at", "2015-03-23 21:37:54.877913"]]
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.4ms)[0m 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)
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (6.5ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" 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"=>#<ActionDispatch::Http::UploadedFile:0x007f94b4ce0c48 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29690-167uug8>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f94b4ce0928 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29690-1a586aa>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f94b4ce0608 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29690-1bbsy55>, @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'
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+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'
+ [1m[35mSQL (0.6ms)[0m 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"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2015-03-23 21:37:58.413010"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 21:37:58.413010"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35m (16.3ms)[0m 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)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.5ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.4ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.2ms)[0m 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"]]
+ [1m[36m (0.5ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36mPolygallery::Photo Load (0.6ms)[0m [1mSELECT "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[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.4ms)[0m ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL
+ [1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'polygallery_dummy_test'
+ [1m[36m (21.6ms)[0m [1mTRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "events" 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"=>#<ActionDispatch::Http::UploadedFile:0x007f94ba657cb8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29690-8fyf0j>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f94ba657998 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29690-zhkk5p>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f94ba6575d8 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29690-k9r7t3>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f94ba656f70 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29690-1h0jsql>, @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"=>#<ActionDispatch::Http::UploadedFile:0x007f94ba656c28 @tempfile=#<Tempfile:/var/folders/mh/rt5858512b5fm7wl6lrlc95w0000gn/T/RackMultipart20150323-29690-19dg5dp>, @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'
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+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'
+ [1m[35mSQL (148.8ms)[0m 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"]]
+ [1m[36mSQL (3.9ms)[0m [1mINSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2015-03-23 21:38:05.189927"], ["galleryable_id", 1], ["galleryable_type", "Event"], ["updated_at", "2015-03-23 21:38:05.189927"]]
+ [1m[35mSQL (55.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "polygallery_galleries" ("created_at", "galleryable_id", "galleryable_type", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]]
+ [1m[35m (0.5ms)[0m 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)
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "events"[0m
+ [1m[35mEvent Load (0.3ms)[0m SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
+ [1m[36mPolygallery::Gallery Load (0.5ms)[0m [1mSELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35mPolygallery::Gallery Load (0.3ms)[0m 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"]]
+ [1m[36m (0.5ms)[0m [1mSELECT 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'[0m [["galleryable_id", 1], ["galleryable_type", "Event"]]
+ [1m[35m (0.3ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" DISABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" DISABLE TRIGGER ALL[0m
+ [1m[35m (5.7ms)[0m TRUNCATE TABLE "public"."events", "public"."polygallery_galleries", "public"."polygallery_photos" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "events" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_galleries" ENABLE TRIGGER ALL;ALTER TABLE "polygallery_photos" ENABLE TRIGGER ALL[0m