saphira 0.1.0.beta3 → 0.1.0.beta4
Sign up to get free protection for your applications and to get access to all the features.
- data/app/views/saphira/file_items/show.html.erb +3 -1
- data/lib/saphira/version.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/features/manage_file_items.feature +12 -1
- data/test/dummy/features/support/files/some-text.txt +99 -0
- data/test/dummy/log/development.log +350 -0
- data/test/dummy/log/test.log +365 -0
- data/test/dummy/system/files/development/2011/09/07/07_50_33_143_Aptana +437 -0
- data/test/dummy/system/files/development/2011/09/07/07_50_33_143_Aptana.meta +1 -0
- data/test/dummy/system/files/test/2011/09/07/07_48_50_913_eos_550d_wrong_orientation.jpg +0 -0
- data/test/dummy/system/files/test/2011/09/07/07_48_50_913_eos_550d_wrong_orientation.jpg.meta +1 -0
- data/test/dummy/system/files/test/2011/09/07/07_48_51_188_some_text.txt +99 -0
- data/test/dummy/system/files/test/2011/09/07/07_48_51_188_some_text.txt.meta +1 -0
- data/test/dummy/system/files/test/2011/09/07/07_52_05_495_eos_550d_wrong_orientation.jpg +0 -0
- data/test/dummy/system/files/test/2011/09/07/07_52_05_495_eos_550d_wrong_orientation.jpg.meta +1 -0
- data/test/dummy/system/files/test/2011/09/07/07_52_05_753_some_text.txt +99 -0
- data/test/dummy/system/files/test/2011/09/07/07_52_05_753_some_text.txt.meta +1 -0
- data/test/dummy/tmp/cache/assets/DF5/250/sprockets%2Fc84b0a387c21ca76a2ddacebf56d5b75 +0 -0
- data/test/dummy/tmp/dragonfly/cache/body/bc/b52ef1fa893093fc9c74237def2dfdd8408f7a +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/18/070a70152465eee702884a4680efcb8ca2c4d8 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/24/d0aebc1b6d4ac3b10caa6cfabf89b0ad8551c5 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/37/fb962d39887389e020d58ef1f745ef1a6107cc +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/78/da9e9f151eb605b427b43e2098640de3fd4a6d +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/8a/00f63a175cfe09352e9103621040457aafc9e8 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/ee/fe74949a8c2a0bbc077385a12944d9f98a12e0 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/f9/67ac04386c59253bd80f4034d18af166cc5691 +0 -0
- data/test/dummy/tmp/pids/server.pid +1 -0
- metadata +32 -2
data/test/dummy/log/test.log
CHANGED
@@ -634,3 +634,368 @@ Started GET "/admin/saphira/files/my-first-image" for 127.0.0.1 at 2011-09-06 17
|
|
634
634
|
[1m[35mSaphira::FileItem Load (0.2ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."id" IS NULL LIMIT 1
|
635
635
|
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/show.html.erb within layouts/saphira/application (19.7ms)
|
636
636
|
Completed 200 OK in 25ms (Views: 22.0ms | ActiveRecord: 0.7ms)
|
637
|
+
|
638
|
+
|
639
|
+
Started GET "/admin/saphira/files" for 127.0.0.1 at 2011-09-07 07:48:49 +0200
|
640
|
+
Processing by Saphira::FileItemsController#index as HTML
|
641
|
+
[1m[36mSaphira::FileItem Load (0.9ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL[0m
|
642
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (25.6ms)
|
643
|
+
Completed 200 OK in 112ms (Views: 95.2ms | ActiveRecord: 1.1ms)
|
644
|
+
|
645
|
+
|
646
|
+
Started GET "/admin/saphira/files/new?type=folder" for 127.0.0.1 at 2011-09-07 07:48:49 +0200
|
647
|
+
Processing by Saphira::FileItemsController#new as HTML
|
648
|
+
Parameters: {"type"=>"folder"}
|
649
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.6ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" IS NULL AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)
|
650
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/_form.html.erb (237.5ms)
|
651
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/new_folder.html.erb within layouts/saphira/application (254.1ms)
|
652
|
+
Completed 200 OK in 257ms (Views: 255.1ms | ActiveRecord: 1.1ms)
|
653
|
+
|
654
|
+
|
655
|
+
Started POST "/admin/saphira/files" for 127.0.0.1 at 2011-09-07 07:48:50 +0200
|
656
|
+
Processing by Saphira::FileItemsController#create as HTML
|
657
|
+
Parameters: {"utf8"=>"✓", "file_item"=>{"name"=>"My first folder", "tag_list"=>"", "item_type"=>"folder", "parent_id"=>""}, "commit"=>"Create"}
|
658
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
659
|
+
[1m[35mSaphira::FileItem Load (0.2ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL AND ("slug" = 'my-first-folder' OR "slug" LIKE 'my-first-folder--%') ORDER BY LENGTH("slug") DESC, "slug" DESC LIMIT 1
|
660
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "saphira_file_items" WHERE ("saphira_file_items"."name" = 'My first folder' AND "saphira_file_items"."parent_id" IS NULL) LIMIT 1[0m
|
661
|
+
[1m[35m (0.5ms)[0m SELECT MAX("saphira_file_items"."rgt") AS max_id FROM "saphira_file_items"
|
662
|
+
[1m[36mSQL (7.8ms)[0m [1mINSERT INTO "saphira_file_items" ("created_at", "dynamic_attributes", "file_name", "file_uid", "item_type", "lft", "name", "parent_id", "path", "rgt", "slug", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 07 Sep 2011 05:48:50 UTC +00:00], ["dynamic_attributes", "--- \n"], ["file_name", nil], ["file_uid", nil], ["item_type", "folder"], ["lft", 1], ["name", "My first folder"], ["parent_id", nil], ["path", "my-first-folder"], ["rgt", 2], ["slug", "my-first-folder"], ["updated_at", Wed, 07 Sep 2011 05:48:50 UTC +00:00]]
|
663
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.2ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)
|
664
|
+
[1m[36mActsAsTaggableOn::Tagging Load (0.1ms)[0m [1mSELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."tagger_type" IS NULL AND "taggings"."tagger_id" IS NULL AND "taggings"."context" = 'tags' AND "taggings"."tag_id" IN (NULL)[0m
|
665
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
666
|
+
Redirected to http://www.example.com/admin/saphira/files/my-first-folder
|
667
|
+
Completed 302 Found in 250ms
|
668
|
+
|
669
|
+
|
670
|
+
Started GET "/admin/saphira/files/my-first-folder" for 127.0.0.1 at 2011-09-07 07:48:50 +0200
|
671
|
+
Processing by Saphira::FileItemsController#show as HTML
|
672
|
+
Parameters: {"id"=>"my-first-folder"}
|
673
|
+
[1m[36mSaphira::FileItem Load (0.2ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."path" = 'my-first-folder' LIMIT 1[0m
|
674
|
+
[1m[35mSaphira::FileItem Load (0.2ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."id" IS NULL LIMIT 1
|
675
|
+
[1m[36mSaphira::FileItem Load (0.2ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" = 1 ORDER BY "lft"[0m
|
676
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (21.0ms)
|
677
|
+
Completed 200 OK in 24ms (Views: 21.8ms | ActiveRecord: 0.5ms)
|
678
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
679
|
+
[1m[36mSaphira::FileItem Load (0.3ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL AND ("slug" = 'my-first-folder' OR "slug" LIKE 'my-first-folder--%') ORDER BY LENGTH("slug") DESC, "slug" DESC LIMIT 1[0m
|
680
|
+
[1m[35m (0.1ms)[0m SELECT 1 FROM "saphira_file_items" WHERE ("saphira_file_items"."name" = 'My first folder' AND "saphira_file_items"."parent_id" IS NULL) LIMIT 1
|
681
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("saphira_file_items"."rgt") AS max_id FROM "saphira_file_items" [0m
|
682
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "saphira_file_items" ("created_at", "dynamic_attributes", "file_name", "file_uid", "item_type", "lft", "name", "parent_id", "path", "rgt", "slug", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 07 Sep 2011 05:48:50 UTC +00:00], ["dynamic_attributes", "--- \n"], ["file_name", nil], ["file_uid", nil], ["item_type", "folder"], ["lft", 1], ["name", "My first folder"], ["parent_id", nil], ["path", "my-first-folder"], ["rgt", 2], ["slug", "my-first-folder"], ["updated_at", Wed, 07 Sep 2011 05:48:50 UTC +00:00]]
|
683
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
684
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
685
|
+
[1m[36mSaphira::FileItem Load (0.2ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL AND ("slug" = 'my-second-folder' OR "slug" LIKE 'my-second-folder--%') ORDER BY LENGTH("slug") DESC, "slug" DESC LIMIT 1[0m
|
686
|
+
[1m[35m (0.1ms)[0m SELECT 1 FROM "saphira_file_items" WHERE ("saphira_file_items"."name" = 'My second folder' AND "saphira_file_items"."parent_id" IS NULL) LIMIT 1
|
687
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("saphira_file_items"."rgt") AS max_id FROM "saphira_file_items" [0m
|
688
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "saphira_file_items" ("created_at", "dynamic_attributes", "file_name", "file_uid", "item_type", "lft", "name", "parent_id", "path", "rgt", "slug", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 07 Sep 2011 05:48:50 UTC +00:00], ["dynamic_attributes", "--- \n"], ["file_name", nil], ["file_uid", nil], ["item_type", "folder"], ["lft", 3], ["name", "My second folder"], ["parent_id", nil], ["path", "my-second-folder"], ["rgt", 4], ["slug", "my-second-folder"], ["updated_at", Wed, 07 Sep 2011 05:48:50 UTC +00:00]]
|
689
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
690
|
+
|
691
|
+
|
692
|
+
Started GET "/admin/saphira/files" for 127.0.0.1 at 2011-09-07 07:48:50 +0200
|
693
|
+
Processing by Saphira::FileItemsController#index as HTML
|
694
|
+
[1m[35mSaphira::FileItem Load (0.2ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL
|
695
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (6.5ms)
|
696
|
+
Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.2ms)
|
697
|
+
|
698
|
+
|
699
|
+
Started DELETE "/admin/saphira/files/my-first-folder" for 127.0.0.1 at 2011-09-07 07:48:50 +0200
|
700
|
+
Processing by Saphira::FileItemsController#destroy as HTML
|
701
|
+
Parameters: {"id"=>"my-first-folder"}
|
702
|
+
[1m[36mSaphira::FileItem Load (0.2ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."path" = 'my-first-folder' LIMIT 1[0m
|
703
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
704
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "saphira_file_items" WHERE ("lft" > 1 AND "rgt" < 2)[0m
|
705
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "saphira_file_items" SET "lft" = ("lft" - 2) WHERE "saphira_file_items"."id" IN (SELECT "saphira_file_items"."id" FROM "saphira_file_items" WHERE ("lft" > 2) ORDER BY "lft")
|
706
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "saphira_file_items" SET "rgt" = ("rgt" - 2) WHERE "saphira_file_items"."id" IN (SELECT "saphira_file_items"."id" FROM "saphira_file_items" WHERE ("rgt" > 2) ORDER BY "lft")[0m
|
707
|
+
[1m[35mActsAsTaggableOn::Tagging Load (0.1ms)[0m SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem'
|
708
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "taggings"."id" AS t0_r0, "taggings"."tag_id" AS t0_r1, "taggings"."taggable_id" AS t0_r2, "taggings"."taggable_type" AS t0_r3, "taggings"."tagger_id" AS t0_r4, "taggings"."tagger_type" AS t0_r5, "taggings"."context" AS t0_r6, "taggings"."created_at" AS t0_r7, "tags"."id" AS t1_r0, "tags"."name" AS t1_r1 FROM "taggings" LEFT OUTER JOIN "tags" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.tag_id = tags.id AND taggings.context = 'tags')[0m
|
709
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "saphira_file_items" WHERE "saphira_file_items"."id" = ? [["id", 1]]
|
710
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
711
|
+
Redirected to http://www.example.com/admin/saphira/files
|
712
|
+
Completed 302 Found in 90ms
|
713
|
+
|
714
|
+
|
715
|
+
Started GET "/admin/saphira/files" for 127.0.0.1 at 2011-09-07 07:48:50 +0200
|
716
|
+
Processing by Saphira::FileItemsController#index as HTML
|
717
|
+
[1m[35mSaphira::FileItem Load (0.2ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL
|
718
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (3.4ms)
|
719
|
+
Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.2ms)
|
720
|
+
|
721
|
+
|
722
|
+
Started GET "/admin/saphira/files" for 127.0.0.1 at 2011-09-07 07:48:50 +0200
|
723
|
+
Processing by Saphira::FileItemsController#index as HTML
|
724
|
+
[1m[36mSaphira::FileItem Load (0.2ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL[0m
|
725
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (1.1ms)
|
726
|
+
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)
|
727
|
+
|
728
|
+
|
729
|
+
Started GET "/admin/saphira/files/new?type=file" for 127.0.0.1 at 2011-09-07 07:48:50 +0200
|
730
|
+
Processing by Saphira::FileItemsController#new as HTML
|
731
|
+
Parameters: {"type"=>"file"}
|
732
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.2ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" IS NULL AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)
|
733
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/_form.html.erb (4.7ms)
|
734
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/new_file.html.erb within layouts/saphira/application (5.9ms)
|
735
|
+
Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.2ms)
|
736
|
+
|
737
|
+
|
738
|
+
Started POST "/admin/saphira/files" for 127.0.0.1 at 2011-09-07 07:48:50 +0200
|
739
|
+
Processing by Saphira::FileItemsController#create as HTML
|
740
|
+
Parameters: {"utf8"=>"✓", "file_item"=>{"name"=>"My first image", "file"=>#<ActionDispatch::Http::UploadedFile:0x000001026ad0d0 @original_filename="eos-550d-wrong-orientation.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"file_item[file]\"; filename=\"eos-550d-wrong-orientation.jpg\"\r\nContent-Type: image/jpeg\r\nContent-Length: 77008\r\n", @tempfile=#<File:/var/folders/j5/j5YeT6owHCOVwWrGfycQx++++TI/-Tmp-/RackMultipart20110907-55438-61reu0>>, "tag_list"=>"Trash, Orange, Berlin", "item_type"=>"file", "parent_id"=>""}, "commit"=>"Create"}
|
741
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
742
|
+
[1m[35mSaphira::FileItem Load (0.3ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL AND ("slug" = 'my-first-image' OR "slug" LIKE 'my-first-image--%') ORDER BY LENGTH("slug") DESC, "slug" DESC LIMIT 1
|
743
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "saphira_file_items" WHERE ("saphira_file_items"."name" = 'My first image' AND "saphira_file_items"."parent_id" IS NULL) LIMIT 1[0m
|
744
|
+
[1m[35m (0.3ms)[0m SELECT MAX("saphira_file_items"."rgt") AS max_id FROM "saphira_file_items"
|
745
|
+
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "saphira_file_items" ("created_at", "dynamic_attributes", "file_name", "file_uid", "item_type", "lft", "name", "parent_id", "path", "rgt", "slug", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 07 Sep 2011 05:48:50 UTC +00:00], ["dynamic_attributes", "--- \n:field_image_capture_date: 2011-08-26 14:04:10 +02:00\n:field_image_exposure_time: !ruby/object:Rational \n denominator: 40\n numerator: 1\n:field_image_f_number: !ruby/object:Rational \n denominator: 1\n numerator: 10\n:field_image_make: Canon\n:field_image_model: Canon EOS 550D\n:field_image_orientation: 8\n:field_image_orientation_transformed: true\n"], ["file_name", "eos-550d-wrong-orientation.jpg"], ["file_uid", "2011/09/07/07_48_50_913_eos_550d_wrong_orientation.jpg"], ["item_type", "file"], ["lft", 1], ["name", "My first image"], ["parent_id", nil], ["path", "my-first-image"], ["rgt", 2], ["slug", "my-first-image"], ["updated_at", Wed, 07 Sep 2011 05:48:50 UTC +00:00]]
|
746
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.2ms)[0m SELECT "tags".* FROM "tags" WHERE (name LIKE 'Trash' OR name LIKE 'Orange' OR name LIKE 'Berlin')
|
747
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "tags" WHERE "tags"."name" = 'Trash' LIMIT 1[0m
|
748
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "Trash"]]
|
749
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "tags" WHERE "tags"."name" = 'Orange' LIMIT 1[0m
|
750
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "Orange"]]
|
751
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "tags" WHERE "tags"."name" = 'Berlin' LIMIT 1[0m
|
752
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "Berlin"]]
|
753
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m
|
754
|
+
[1m[35mActsAsTaggableOn::Tagging Load (0.2ms)[0m SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."tagger_type" IS NULL AND "taggings"."tagger_id" IS NULL AND "taggings"."context" = 'tags' AND "taggings"."tag_id" IN (NULL)
|
755
|
+
[1m[36m (0.2ms)[0m [1mSELECT 1 FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."taggable_id" = 1 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
756
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type", "tagger_id", "tagger_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["context", "tags"], ["created_at", Wed, 07 Sep 2011 05:48:50 UTC +00:00], ["tag_id", 1], ["taggable_id", 1], ["taggable_type", "Saphira::FileItem"], ["tagger_id", nil], ["tagger_type", nil]]
|
757
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."taggable_id" = 1 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
758
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type", "tagger_id", "tagger_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["context", "tags"], ["created_at", Wed, 07 Sep 2011 05:48:50 UTC +00:00], ["tag_id", 2], ["taggable_id", 1], ["taggable_type", "Saphira::FileItem"], ["tagger_id", nil], ["tagger_type", nil]]
|
759
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "taggings" WHERE ("taggings"."tag_id" = 3 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."taggable_id" = 1 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
760
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type", "tagger_id", "tagger_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["context", "tags"], ["created_at", Wed, 07 Sep 2011 05:48:50 UTC +00:00], ["tag_id", 3], ["taggable_id", 1], ["taggable_type", "Saphira::FileItem"], ["tagger_id", nil], ["tagger_type", nil]]
|
761
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
762
|
+
Redirected to http://www.example.com/admin/saphira/files/my-first-image
|
763
|
+
Completed 302 Found in 303ms
|
764
|
+
|
765
|
+
|
766
|
+
Started GET "/admin/saphira/files/my-first-image" for 127.0.0.1 at 2011-09-07 07:48:51 +0200
|
767
|
+
Processing by Saphira::FileItemsController#show as HTML
|
768
|
+
Parameters: {"id"=>"my-first-image"}
|
769
|
+
[1m[35mSaphira::FileItem Load (0.2ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."path" = 'my-first-image' LIMIT 1
|
770
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m
|
771
|
+
[1m[35mSaphira::FileItem Load (0.2ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."id" IS NULL LIMIT 1
|
772
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/show.html.erb within layouts/saphira/application (15.0ms)
|
773
|
+
Completed 200 OK in 20ms (Views: 17.5ms | ActiveRecord: 0.5ms)
|
774
|
+
|
775
|
+
|
776
|
+
Started GET "/admin/saphira/files" for 127.0.0.1 at 2011-09-07 07:48:51 +0200
|
777
|
+
Processing by Saphira::FileItemsController#index as HTML
|
778
|
+
[1m[36mSaphira::FileItem Load (0.2ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL[0m
|
779
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (1.2ms)
|
780
|
+
Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms)
|
781
|
+
|
782
|
+
|
783
|
+
Started GET "/admin/saphira/files/new?type=file" for 127.0.0.1 at 2011-09-07 07:48:51 +0200
|
784
|
+
Processing by Saphira::FileItemsController#new as HTML
|
785
|
+
Parameters: {"type"=>"file"}
|
786
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.2ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" IS NULL AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)
|
787
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/_form.html.erb (4.8ms)
|
788
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/new_file.html.erb within layouts/saphira/application (5.6ms)
|
789
|
+
Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.2ms)
|
790
|
+
|
791
|
+
|
792
|
+
Started POST "/admin/saphira/files" for 127.0.0.1 at 2011-09-07 07:48:51 +0200
|
793
|
+
Processing by Saphira::FileItemsController#create as HTML
|
794
|
+
Parameters: {"utf8"=>"✓", "file_item"=>{"name"=>"My first text file", "file"=>#<ActionDispatch::Http::UploadedFile:0x0000010473f730 @original_filename="some-text.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"file_item[file]\"; filename=\"some-text.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 30345\r\n", @tempfile=#<File:/var/folders/j5/j5YeT6owHCOVwWrGfycQx++++TI/-Tmp-/RackMultipart20110907-55438-3lieqy>>, "tag_list"=>"Lorem ipsum", "item_type"=>"file", "parent_id"=>""}, "commit"=>"Create"}
|
795
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
796
|
+
[1m[35mSaphira::FileItem Load (0.6ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL AND ("slug" = 'my-first-text-file' OR "slug" LIKE 'my-first-text-file--%') ORDER BY LENGTH("slug") DESC, "slug" DESC LIMIT 1
|
797
|
+
[1m[36m (0.2ms)[0m [1mSELECT 1 FROM "saphira_file_items" WHERE ("saphira_file_items"."name" = 'My first text file' AND "saphira_file_items"."parent_id" IS NULL) LIMIT 1[0m
|
798
|
+
[1m[35m (0.3ms)[0m SELECT MAX("saphira_file_items"."rgt") AS max_id FROM "saphira_file_items"
|
799
|
+
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO "saphira_file_items" ("created_at", "dynamic_attributes", "file_name", "file_uid", "item_type", "lft", "name", "parent_id", "path", "rgt", "slug", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 07 Sep 2011 05:48:51 UTC +00:00], ["dynamic_attributes", "--- \n"], ["file_name", "some-text.txt"], ["file_uid", "2011/09/07/07_48_51_188_some_text.txt"], ["item_type", "file"], ["lft", 1], ["name", "My first text file"], ["parent_id", nil], ["path", "my-first-text-file"], ["rgt", 2], ["slug", "my-first-text-file"], ["updated_at", Wed, 07 Sep 2011 05:48:51 UTC +00:00]]
|
800
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.3ms)[0m SELECT "tags".* FROM "tags" WHERE (name LIKE 'Lorem ipsum')
|
801
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "tags" WHERE "tags"."name" = 'Lorem ipsum' LIMIT 1[0m
|
802
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "Lorem ipsum"]]
|
803
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m
|
804
|
+
[1m[35mActsAsTaggableOn::Tagging Load (0.1ms)[0m SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."tagger_type" IS NULL AND "taggings"."tagger_id" IS NULL AND "taggings"."context" = 'tags' AND "taggings"."tag_id" IN (NULL)
|
805
|
+
[1m[36m (0.2ms)[0m [1mSELECT 1 FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."taggable_id" = 1 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
806
|
+
[1m[35mSQL (1.3ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type", "tagger_id", "tagger_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["context", "tags"], ["created_at", Wed, 07 Sep 2011 05:48:51 UTC +00:00], ["tag_id", 1], ["taggable_id", 1], ["taggable_type", "Saphira::FileItem"], ["tagger_id", nil], ["tagger_type", nil]]
|
807
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
808
|
+
Redirected to http://www.example.com/admin/saphira/files/my-first-text-file
|
809
|
+
Completed 302 Found in 75ms
|
810
|
+
|
811
|
+
|
812
|
+
Started GET "/admin/saphira/files/my-first-text-file" for 127.0.0.1 at 2011-09-07 07:48:51 +0200
|
813
|
+
Processing by Saphira::FileItemsController#show as HTML
|
814
|
+
Parameters: {"id"=>"my-first-text-file"}
|
815
|
+
[1m[35mSaphira::FileItem Load (0.2ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."path" = 'my-first-text-file' LIMIT 1
|
816
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m
|
817
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/show.html.erb within layouts/saphira/application (47.3ms)
|
818
|
+
Completed 500 Internal Server Error in 51ms
|
819
|
+
|
820
|
+
|
821
|
+
Started GET "/admin/saphira/files" for 127.0.0.1 at 2011-09-07 07:52:04 +0200
|
822
|
+
Processing by Saphira::FileItemsController#index as HTML
|
823
|
+
[1m[36mSaphira::FileItem Load (0.1ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL[0m
|
824
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (25.4ms)
|
825
|
+
Completed 200 OK in 110ms (Views: 94.8ms | ActiveRecord: 0.3ms)
|
826
|
+
|
827
|
+
|
828
|
+
Started GET "/admin/saphira/files/new?type=folder" for 127.0.0.1 at 2011-09-07 07:52:04 +0200
|
829
|
+
Processing by Saphira::FileItemsController#new as HTML
|
830
|
+
Parameters: {"type"=>"folder"}
|
831
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.2ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" IS NULL AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)
|
832
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/_form.html.erb (237.3ms)
|
833
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/new_folder.html.erb within layouts/saphira/application (253.5ms)
|
834
|
+
Completed 200 OK in 256ms (Views: 254.6ms | ActiveRecord: 0.7ms)
|
835
|
+
|
836
|
+
|
837
|
+
Started POST "/admin/saphira/files" for 127.0.0.1 at 2011-09-07 07:52:04 +0200
|
838
|
+
Processing by Saphira::FileItemsController#create as HTML
|
839
|
+
Parameters: {"utf8"=>"✓", "file_item"=>{"name"=>"My first folder", "tag_list"=>"", "item_type"=>"folder", "parent_id"=>""}, "commit"=>"Create"}
|
840
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
841
|
+
[1m[35mSaphira::FileItem Load (0.2ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL AND ("slug" = 'my-first-folder' OR "slug" LIKE 'my-first-folder--%') ORDER BY LENGTH("slug") DESC, "slug" DESC LIMIT 1
|
842
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "saphira_file_items" WHERE ("saphira_file_items"."name" = 'My first folder' AND "saphira_file_items"."parent_id" IS NULL) LIMIT 1[0m
|
843
|
+
[1m[35m (0.2ms)[0m SELECT MAX("saphira_file_items"."rgt") AS max_id FROM "saphira_file_items"
|
844
|
+
[1m[36mSQL (93.8ms)[0m [1mINSERT INTO "saphira_file_items" ("created_at", "dynamic_attributes", "file_name", "file_uid", "item_type", "lft", "name", "parent_id", "path", "rgt", "slug", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 07 Sep 2011 05:52:05 UTC +00:00], ["dynamic_attributes", "--- \n"], ["file_name", nil], ["file_uid", nil], ["item_type", "folder"], ["lft", 1], ["name", "My first folder"], ["parent_id", nil], ["path", "my-first-folder"], ["rgt", 2], ["slug", "my-first-folder"], ["updated_at", Wed, 07 Sep 2011 05:52:05 UTC +00:00]]
|
845
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.2ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)
|
846
|
+
[1m[36mActsAsTaggableOn::Tagging Load (0.1ms)[0m [1mSELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."tagger_type" IS NULL AND "taggings"."tagger_id" IS NULL AND "taggings"."context" = 'tags' AND "taggings"."tag_id" IN (NULL)[0m
|
847
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
848
|
+
Redirected to http://www.example.com/admin/saphira/files/my-first-folder
|
849
|
+
Completed 302 Found in 324ms
|
850
|
+
|
851
|
+
|
852
|
+
Started GET "/admin/saphira/files/my-first-folder" for 127.0.0.1 at 2011-09-07 07:52:05 +0200
|
853
|
+
Processing by Saphira::FileItemsController#show as HTML
|
854
|
+
Parameters: {"id"=>"my-first-folder"}
|
855
|
+
[1m[36mSaphira::FileItem Load (0.2ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."path" = 'my-first-folder' LIMIT 1[0m
|
856
|
+
[1m[35mSaphira::FileItem Load (0.1ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."id" IS NULL LIMIT 1
|
857
|
+
[1m[36mSaphira::FileItem Load (0.2ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" = 1 ORDER BY "lft"[0m
|
858
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (20.8ms)
|
859
|
+
Completed 200 OK in 24ms (Views: 21.5ms | ActiveRecord: 0.5ms)
|
860
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
861
|
+
[1m[36mSaphira::FileItem Load (0.3ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL AND ("slug" = 'my-first-folder' OR "slug" LIKE 'my-first-folder--%') ORDER BY LENGTH("slug") DESC, "slug" DESC LIMIT 1[0m
|
862
|
+
[1m[35m (0.1ms)[0m SELECT 1 FROM "saphira_file_items" WHERE ("saphira_file_items"."name" = 'My first folder' AND "saphira_file_items"."parent_id" IS NULL) LIMIT 1
|
863
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("saphira_file_items"."rgt") AS max_id FROM "saphira_file_items" [0m
|
864
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "saphira_file_items" ("created_at", "dynamic_attributes", "file_name", "file_uid", "item_type", "lft", "name", "parent_id", "path", "rgt", "slug", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 07 Sep 2011 05:52:05 UTC +00:00], ["dynamic_attributes", "--- \n"], ["file_name", nil], ["file_uid", nil], ["item_type", "folder"], ["lft", 1], ["name", "My first folder"], ["parent_id", nil], ["path", "my-first-folder"], ["rgt", 2], ["slug", "my-first-folder"], ["updated_at", Wed, 07 Sep 2011 05:52:05 UTC +00:00]]
|
865
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
866
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
867
|
+
[1m[36mSaphira::FileItem Load (0.2ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL AND ("slug" = 'my-second-folder' OR "slug" LIKE 'my-second-folder--%') ORDER BY LENGTH("slug") DESC, "slug" DESC LIMIT 1[0m
|
868
|
+
[1m[35m (0.1ms)[0m SELECT 1 FROM "saphira_file_items" WHERE ("saphira_file_items"."name" = 'My second folder' AND "saphira_file_items"."parent_id" IS NULL) LIMIT 1
|
869
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("saphira_file_items"."rgt") AS max_id FROM "saphira_file_items" [0m
|
870
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "saphira_file_items" ("created_at", "dynamic_attributes", "file_name", "file_uid", "item_type", "lft", "name", "parent_id", "path", "rgt", "slug", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 07 Sep 2011 05:52:05 UTC +00:00], ["dynamic_attributes", "--- \n"], ["file_name", nil], ["file_uid", nil], ["item_type", "folder"], ["lft", 3], ["name", "My second folder"], ["parent_id", nil], ["path", "my-second-folder"], ["rgt", 4], ["slug", "my-second-folder"], ["updated_at", Wed, 07 Sep 2011 05:52:05 UTC +00:00]]
|
871
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
872
|
+
|
873
|
+
|
874
|
+
Started GET "/admin/saphira/files" for 127.0.0.1 at 2011-09-07 07:52:05 +0200
|
875
|
+
Processing by Saphira::FileItemsController#index as HTML
|
876
|
+
[1m[35mSaphira::FileItem Load (0.2ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL
|
877
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (6.5ms)
|
878
|
+
Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.2ms)
|
879
|
+
|
880
|
+
|
881
|
+
Started DELETE "/admin/saphira/files/my-first-folder" for 127.0.0.1 at 2011-09-07 07:52:05 +0200
|
882
|
+
Processing by Saphira::FileItemsController#destroy as HTML
|
883
|
+
Parameters: {"id"=>"my-first-folder"}
|
884
|
+
[1m[36mSaphira::FileItem Load (0.2ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."path" = 'my-first-folder' LIMIT 1[0m
|
885
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
886
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "saphira_file_items" WHERE ("lft" > 1 AND "rgt" < 2)[0m
|
887
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "saphira_file_items" SET "lft" = ("lft" - 2) WHERE "saphira_file_items"."id" IN (SELECT "saphira_file_items"."id" FROM "saphira_file_items" WHERE ("lft" > 2) ORDER BY "lft")
|
888
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "saphira_file_items" SET "rgt" = ("rgt" - 2) WHERE "saphira_file_items"."id" IN (SELECT "saphira_file_items"."id" FROM "saphira_file_items" WHERE ("rgt" > 2) ORDER BY "lft")[0m
|
889
|
+
[1m[35mActsAsTaggableOn::Tagging Load (0.1ms)[0m SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem'
|
890
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "taggings"."id" AS t0_r0, "taggings"."tag_id" AS t0_r1, "taggings"."taggable_id" AS t0_r2, "taggings"."taggable_type" AS t0_r3, "taggings"."tagger_id" AS t0_r4, "taggings"."tagger_type" AS t0_r5, "taggings"."context" AS t0_r6, "taggings"."created_at" AS t0_r7, "tags"."id" AS t1_r0, "tags"."name" AS t1_r1 FROM "taggings" LEFT OUTER JOIN "tags" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.tag_id = tags.id AND taggings.context = 'tags')[0m
|
891
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "saphira_file_items" WHERE "saphira_file_items"."id" = ? [["id", 1]]
|
892
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
893
|
+
Redirected to http://www.example.com/admin/saphira/files
|
894
|
+
Completed 302 Found in 23ms
|
895
|
+
|
896
|
+
|
897
|
+
Started GET "/admin/saphira/files" for 127.0.0.1 at 2011-09-07 07:52:05 +0200
|
898
|
+
Processing by Saphira::FileItemsController#index as HTML
|
899
|
+
[1m[35mSaphira::FileItem Load (0.2ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL
|
900
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (3.4ms)
|
901
|
+
Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.2ms)
|
902
|
+
|
903
|
+
|
904
|
+
Started GET "/admin/saphira/files" for 127.0.0.1 at 2011-09-07 07:52:05 +0200
|
905
|
+
Processing by Saphira::FileItemsController#index as HTML
|
906
|
+
[1m[36mSaphira::FileItem Load (0.2ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL[0m
|
907
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (1.1ms)
|
908
|
+
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)
|
909
|
+
|
910
|
+
|
911
|
+
Started GET "/admin/saphira/files/new?type=file" for 127.0.0.1 at 2011-09-07 07:52:05 +0200
|
912
|
+
Processing by Saphira::FileItemsController#new as HTML
|
913
|
+
Parameters: {"type"=>"file"}
|
914
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.2ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" IS NULL AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)
|
915
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/_form.html.erb (4.7ms)
|
916
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/new_file.html.erb within layouts/saphira/application (5.9ms)
|
917
|
+
Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.2ms)
|
918
|
+
|
919
|
+
|
920
|
+
Started POST "/admin/saphira/files" for 127.0.0.1 at 2011-09-07 07:52:05 +0200
|
921
|
+
Processing by Saphira::FileItemsController#create as HTML
|
922
|
+
Parameters: {"utf8"=>"✓", "file_item"=>{"name"=>"My first image", "file"=>#<ActionDispatch::Http::UploadedFile:0x00000102450990 @original_filename="eos-550d-wrong-orientation.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"file_item[file]\"; filename=\"eos-550d-wrong-orientation.jpg\"\r\nContent-Type: image/jpeg\r\nContent-Length: 77008\r\n", @tempfile=#<File:/var/folders/j5/j5YeT6owHCOVwWrGfycQx++++TI/-Tmp-/RackMultipart20110907-55529-c6zpbj>>, "tag_list"=>"Trash, Orange, Berlin", "item_type"=>"file", "parent_id"=>""}, "commit"=>"Create"}
|
923
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
924
|
+
[1m[35mSaphira::FileItem Load (0.3ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL AND ("slug" = 'my-first-image' OR "slug" LIKE 'my-first-image--%') ORDER BY LENGTH("slug") DESC, "slug" DESC LIMIT 1
|
925
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "saphira_file_items" WHERE ("saphira_file_items"."name" = 'My first image' AND "saphira_file_items"."parent_id" IS NULL) LIMIT 1[0m
|
926
|
+
[1m[35m (0.5ms)[0m SELECT MAX("saphira_file_items"."rgt") AS max_id FROM "saphira_file_items"
|
927
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "saphira_file_items" ("created_at", "dynamic_attributes", "file_name", "file_uid", "item_type", "lft", "name", "parent_id", "path", "rgt", "slug", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 07 Sep 2011 05:52:05 UTC +00:00], ["dynamic_attributes", "--- \n:field_image_capture_date: 2011-08-26 14:04:10 +02:00\n:field_image_exposure_time: !ruby/object:Rational \n denominator: 40\n numerator: 1\n:field_image_f_number: !ruby/object:Rational \n denominator: 1\n numerator: 10\n:field_image_make: Canon\n:field_image_model: Canon EOS 550D\n:field_image_orientation: 8\n:field_image_orientation_transformed: true\n"], ["file_name", "eos-550d-wrong-orientation.jpg"], ["file_uid", "2011/09/07/07_52_05_495_eos_550d_wrong_orientation.jpg"], ["item_type", "file"], ["lft", 1], ["name", "My first image"], ["parent_id", nil], ["path", "my-first-image"], ["rgt", 2], ["slug", "my-first-image"], ["updated_at", Wed, 07 Sep 2011 05:52:05 UTC +00:00]]
|
928
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.2ms)[0m SELECT "tags".* FROM "tags" WHERE (name LIKE 'Trash' OR name LIKE 'Orange' OR name LIKE 'Berlin')
|
929
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "tags" WHERE "tags"."name" = 'Trash' LIMIT 1[0m
|
930
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "Trash"]]
|
931
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "tags" WHERE "tags"."name" = 'Orange' LIMIT 1[0m
|
932
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "Orange"]]
|
933
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "tags" WHERE "tags"."name" = 'Berlin' LIMIT 1[0m
|
934
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "Berlin"]]
|
935
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m
|
936
|
+
[1m[35mActsAsTaggableOn::Tagging Load (0.1ms)[0m SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."tagger_type" IS NULL AND "taggings"."tagger_id" IS NULL AND "taggings"."context" = 'tags' AND "taggings"."tag_id" IN (NULL)
|
937
|
+
[1m[36m (0.2ms)[0m [1mSELECT 1 FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."taggable_id" = 1 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
938
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type", "tagger_id", "tagger_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["context", "tags"], ["created_at", Wed, 07 Sep 2011 05:52:05 UTC +00:00], ["tag_id", 1], ["taggable_id", 1], ["taggable_type", "Saphira::FileItem"], ["tagger_id", nil], ["tagger_type", nil]]
|
939
|
+
[1m[36m (0.2ms)[0m [1mSELECT 1 FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."taggable_id" = 1 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
940
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type", "tagger_id", "tagger_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["context", "tags"], ["created_at", Wed, 07 Sep 2011 05:52:05 UTC +00:00], ["tag_id", 2], ["taggable_id", 1], ["taggable_type", "Saphira::FileItem"], ["tagger_id", nil], ["tagger_type", nil]]
|
941
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "taggings" WHERE ("taggings"."tag_id" = 3 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."taggable_id" = 1 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
942
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type", "tagger_id", "tagger_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["context", "tags"], ["created_at", Wed, 07 Sep 2011 05:52:05 UTC +00:00], ["tag_id", 3], ["taggable_id", 1], ["taggable_type", "Saphira::FileItem"], ["tagger_id", nil], ["tagger_type", nil]]
|
943
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
944
|
+
Redirected to http://www.example.com/admin/saphira/files/my-first-image
|
945
|
+
Completed 302 Found in 254ms
|
946
|
+
|
947
|
+
|
948
|
+
Started GET "/admin/saphira/files/my-first-image" for 127.0.0.1 at 2011-09-07 07:52:05 +0200
|
949
|
+
Processing by Saphira::FileItemsController#show as HTML
|
950
|
+
Parameters: {"id"=>"my-first-image"}
|
951
|
+
[1m[35mSaphira::FileItem Load (0.2ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."path" = 'my-first-image' LIMIT 1
|
952
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m
|
953
|
+
[1m[35mSaphira::FileItem Load (0.2ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."id" IS NULL LIMIT 1
|
954
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/show.html.erb within layouts/saphira/application (15.4ms)
|
955
|
+
Completed 200 OK in 19ms (Views: 17.3ms | ActiveRecord: 0.5ms)
|
956
|
+
|
957
|
+
|
958
|
+
Started GET "/admin/saphira/files" for 127.0.0.1 at 2011-09-07 07:52:05 +0200
|
959
|
+
Processing by Saphira::FileItemsController#index as HTML
|
960
|
+
[1m[36mSaphira::FileItem Load (0.2ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL[0m
|
961
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (1.2ms)
|
962
|
+
Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.2ms)
|
963
|
+
|
964
|
+
|
965
|
+
Started GET "/admin/saphira/files/new?type=file" for 127.0.0.1 at 2011-09-07 07:52:05 +0200
|
966
|
+
Processing by Saphira::FileItemsController#new as HTML
|
967
|
+
Parameters: {"type"=>"file"}
|
968
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.2ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" IS NULL AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)
|
969
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/_form.html.erb (4.7ms)
|
970
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/new_file.html.erb within layouts/saphira/application (5.5ms)
|
971
|
+
Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.2ms)
|
972
|
+
|
973
|
+
|
974
|
+
Started POST "/admin/saphira/files" for 127.0.0.1 at 2011-09-07 07:52:05 +0200
|
975
|
+
Processing by Saphira::FileItemsController#create as HTML
|
976
|
+
Parameters: {"utf8"=>"✓", "file_item"=>{"name"=>"My first text file", "file"=>#<ActionDispatch::Http::UploadedFile:0x00000104f70eb8 @original_filename="some-text.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"file_item[file]\"; filename=\"some-text.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 30345\r\n", @tempfile=#<File:/var/folders/j5/j5YeT6owHCOVwWrGfycQx++++TI/-Tmp-/RackMultipart20110907-55529-1xfd3no>>, "tag_list"=>"Lorem ipsum", "item_type"=>"file", "parent_id"=>""}, "commit"=>"Create"}
|
977
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
978
|
+
[1m[35mSaphira::FileItem Load (0.3ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL AND ("slug" = 'my-first-text-file' OR "slug" LIKE 'my-first-text-file--%') ORDER BY LENGTH("slug") DESC, "slug" DESC LIMIT 1
|
979
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "saphira_file_items" WHERE ("saphira_file_items"."name" = 'My first text file' AND "saphira_file_items"."parent_id" IS NULL) LIMIT 1[0m
|
980
|
+
[1m[35m (0.2ms)[0m SELECT MAX("saphira_file_items"."rgt") AS max_id FROM "saphira_file_items"
|
981
|
+
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "saphira_file_items" ("created_at", "dynamic_attributes", "file_name", "file_uid", "item_type", "lft", "name", "parent_id", "path", "rgt", "slug", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 07 Sep 2011 05:52:05 UTC +00:00], ["dynamic_attributes", "--- \n"], ["file_name", "some-text.txt"], ["file_uid", "2011/09/07/07_52_05_753_some_text.txt"], ["item_type", "file"], ["lft", 1], ["name", "My first text file"], ["parent_id", nil], ["path", "my-first-text-file"], ["rgt", 2], ["slug", "my-first-text-file"], ["updated_at", Wed, 07 Sep 2011 05:52:05 UTC +00:00]]
|
982
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (name LIKE 'Lorem ipsum')
|
983
|
+
[1m[36m (0.2ms)[0m [1mSELECT 1 FROM "tags" WHERE "tags"."name" = 'Lorem ipsum' LIMIT 1[0m
|
984
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "Lorem ipsum"]]
|
985
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.3ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m
|
986
|
+
[1m[35mActsAsTaggableOn::Tagging Load (0.2ms)[0m SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."tagger_type" IS NULL AND "taggings"."tagger_id" IS NULL AND "taggings"."context" = 'tags' AND "taggings"."tag_id" IN (NULL)
|
987
|
+
[1m[36m (0.2ms)[0m [1mSELECT 1 FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."taggable_id" = 1 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
988
|
+
[1m[35mSQL (1.4ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type", "tagger_id", "tagger_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["context", "tags"], ["created_at", Wed, 07 Sep 2011 05:52:05 UTC +00:00], ["tag_id", 1], ["taggable_id", 1], ["taggable_type", "Saphira::FileItem"], ["tagger_id", nil], ["tagger_type", nil]]
|
989
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
990
|
+
Redirected to http://www.example.com/admin/saphira/files/my-first-text-file
|
991
|
+
Completed 302 Found in 67ms
|
992
|
+
|
993
|
+
|
994
|
+
Started GET "/admin/saphira/files/my-first-text-file" for 127.0.0.1 at 2011-09-07 07:52:05 +0200
|
995
|
+
Processing by Saphira::FileItemsController#show as HTML
|
996
|
+
Parameters: {"id"=>"my-first-text-file"}
|
997
|
+
[1m[35mSaphira::FileItem Load (0.2ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."path" = 'my-first-text-file' LIMIT 1
|
998
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m
|
999
|
+
[1m[35mSaphira::FileItem Load (0.2ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."id" IS NULL LIMIT 1
|
1000
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/show.html.erb within layouts/saphira/application (7.0ms)
|
1001
|
+
Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.7ms)
|