acts_as_assets 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/app/helpers/acts_as_assets/assets_helper.rb +1 -1
- data/app/views/acts_as_assets/assets/_asset_upload.html.erb +1 -1
- data/app/views/acts_as_assets/assets/index.html.erb +1 -1
- data/lib/acts_as_assets/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +1953 -0
- metadata +3 -3
@@ -47,6 +47,6 @@ module ActsAsAssets::AssetsHelper
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def assets_body
|
50
|
-
j render(:partial => @asset_partial, :locals => {:assets => Array(@assets), :model => @model})
|
50
|
+
j render(:partial => @asset_partial, :locals => {:assets => Array(@assets), :model => @model, read_only: false})
|
51
51
|
end
|
52
52
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<%# encoding: utf-8 %>
|
2
2
|
<% assets ||= @assets %>
|
3
|
-
<div id="<%= asset_id %>" class="
|
3
|
+
<div id="<%= asset_id %>" class="assets">
|
4
4
|
<% if Array(assets).empty? %>
|
5
5
|
<% unless read_only %>
|
6
6
|
<%= render :partial => "acts_as_assets/assets/upload_link", :locals => {:multiple => false, :model => model} %>
|
@@ -1,2 +1,2 @@
|
|
1
1
|
<%# encoding: utf-8 %>
|
2
|
-
<% render :partial => 'acts_as_assets/assets/asset_multiple_upload', :locals => {:model => @model, :multiple => true} %>
|
2
|
+
<% render :partial => 'acts_as_assets/assets/asset_multiple_upload', :locals => {:model => @model, :multiple => true, :read_only => false} %>
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/spec/dummy/log/test.log
CHANGED
@@ -1363,3 +1363,1956 @@ Completed 404 Not Found in 10ms (Views: 7.3ms | ActiveRecord: 0.2ms)
|
|
1363
1363
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 29], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1364
1364
|
[paperclip] Saving attachments.
|
1365
1365
|
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
1366
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
1367
|
+
[1m[35m (22.2ms)[0m DROP TABLE "books"
|
1368
|
+
[1m[36m (2.5ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) [0m
|
1369
|
+
[1m[35m (2.7ms)[0m DROP TABLE "books_assets"
|
1370
|
+
[1m[36m (3.3ms)[0m [1mCREATE TABLE "books_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "book_id" integer, "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
1371
|
+
[1m[35m (2.8ms)[0m DROP TABLE "chapters"
|
1372
|
+
[1m[36m (2.7ms)[0m [1mCREATE TABLE "chapters" ("name" varchar(255) NOT NULL) [0m
|
1373
|
+
[1m[35m (3.2ms)[0m DROP TABLE "chapters_assets"
|
1374
|
+
[1m[36m (2.3ms)[0m [1mCREATE TABLE "chapters_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "chapter_name" varchar(255), "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
1375
|
+
[1m[35m (2.6ms)[0m DROP TABLE "rt_tipi_pannello"
|
1376
|
+
[1m[36m (2.9ms)[0m [1mCREATE TABLE "rt_tipi_pannello" ("name" varchar(255) NOT NULL) [0m
|
1377
|
+
[1m[35m (2.8ms)[0m DROP TABLE "rt_tipi_pannello_assets"
|
1378
|
+
[1m[36m (3.0ms)[0m [1mCREATE TABLE "rt_tipi_pannello_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "displayable" boolean DEFAULT 'f' NOT NULL, "tipo_pannello_name" varchar(255)) [0m
|
1379
|
+
[1m[35mSQL (3.3ms)[0m DELETE FROM "books_assets"
|
1380
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
1381
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books"
|
1382
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
1383
|
+
[1m[35mSQL (2.7ms)[0m DELETE FROM "books_assets"
|
1384
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
1385
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
1386
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
1387
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books"
|
1388
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
1389
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
1390
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
1391
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
1392
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
1393
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books"
|
1394
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
1395
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
1396
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
1397
|
+
[1m[35mSQL (2.6ms)[0m DELETE FROM "books_assets"
|
1398
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
1399
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books"
|
1400
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
1401
|
+
[1m[35mSQL (2.5ms)[0m DELETE FROM "books_assets"
|
1402
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
1403
|
+
[1m[35mSQL (2.7ms)[0m DELETE FROM "books_assets"
|
1404
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
1405
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books"
|
1406
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
1407
|
+
[1m[35mSQL (2.5ms)[0m DELETE FROM "books_assets"
|
1408
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books"[0m
|
1409
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1410
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1411
|
+
[1m[35m (1.8ms)[0m commit transaction
|
1412
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1413
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 1
|
1414
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 1], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1415
|
+
[paperclip] Saving attachments.
|
1416
|
+
[1m[35m (2.1ms)[0m commit transaction
|
1417
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
1418
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
1419
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
1420
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1421
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1422
|
+
[1m[35m (1.5ms)[0m commit transaction
|
1423
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1424
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 2
|
1425
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 2], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1426
|
+
[paperclip] Saving attachments.
|
1427
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1428
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
1429
|
+
[1m[35mSQL (2.7ms)[0m DELETE FROM "books_assets"
|
1430
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
1431
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1432
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1433
|
+
[1m[35m (1.5ms)[0m commit transaction
|
1434
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1435
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 3
|
1436
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 3], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1437
|
+
[paperclip] Saving attachments.
|
1438
|
+
[1m[35m (1.7ms)[0m commit transaction
|
1439
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
1440
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
1441
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
1442
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1443
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "rt_tipi_pannello" ("name") VALUES (?)[0m [["name", "Suntech STP"]]
|
1444
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1445
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1446
|
+
[1m[35mTipiPannello::Documenti::SchedaTecnica Load (0.2ms)[0m SELECT "rt_tipi_pannello_assets".* FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP' LIMIT 1
|
1447
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("rt_tipi_pannello_assets"."counter") AS max_id FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP'[0m
|
1448
|
+
[1m[35mSQL (30.5ms)[0m INSERT INTO "rt_tipi_pannello_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "counter", "displayable", "tipo_pannello_name", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:49:21 UTC +00:00], ["counter", 1], ["displayable", false], ["tipo_pannello_name", "Suntech STP"], ["type", "TipiPannello::Documenti::SchedaTecnica"]]
|
1449
|
+
[paperclip] Saving attachments.
|
1450
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
1451
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
1452
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
1453
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books"
|
1454
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1455
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
1456
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
1457
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1458
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 4[0m
|
1459
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 4], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1460
|
+
[paperclip] Saving attachments.
|
1461
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
1462
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
1463
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
1464
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books"
|
1465
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL[0m
|
1466
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
1467
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
1468
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
1469
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1470
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL
|
1471
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1472
|
+
[paperclip] Saving attachments.
|
1473
|
+
[1m[35m (2.0ms)[0m commit transaction
|
1474
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1475
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL
|
1476
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1477
|
+
[paperclip] Saving attachments.
|
1478
|
+
[1m[35m (2.0ms)[0m commit transaction
|
1479
|
+
[1m[36mBooks::Asset Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1[0m [["id", 5]]
|
1480
|
+
[1m[35mBooks::Asset Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1 [["id", 6]]
|
1481
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
1482
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
1483
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
1484
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1485
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1486
|
+
[1m[35m (2.1ms)[0m commit transaction
|
1487
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1488
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 5
|
1489
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:49:21 UTC +00:00], ["book_id", 5], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1490
|
+
[paperclip] Saving attachments.
|
1491
|
+
[1m[35m (2.2ms)[0m commit transaction
|
1492
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
1493
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
1494
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
1495
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1496
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1497
|
+
[1m[35m (1.5ms)[0m commit transaction
|
1498
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1499
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 6
|
1500
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:49:21 UTC +00:00], ["book_id", 6], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1501
|
+
[paperclip] Saving attachments.
|
1502
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1503
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
1504
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
1505
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
1506
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1507
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "chapters" ("name") VALUES (?)[0m [["name", "a new chapter"]]
|
1508
|
+
[1m[35m (1.7ms)[0m commit transaction
|
1509
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1510
|
+
[1m[35m (0.6ms)[0m SELECT MAX("chapters_assets"."counter") AS max_id FROM "chapters_assets" WHERE "chapters_assets"."type" IN ('Chapters::Assets::Paragraph') AND "chapters_assets"."chapter_name" = 'a new chapter'
|
1511
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:49:21 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 1], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
|
1512
|
+
[paperclip] Saving attachments.
|
1513
|
+
[1m[35m (1.7ms)[0m commit transaction
|
1514
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
1515
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
1516
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books"[0m
|
1517
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1518
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "chapters" ("name") VALUES (?)[0m [["name", "a new chapter"]]
|
1519
|
+
[1m[35m (2.0ms)[0m commit transaction
|
1520
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1521
|
+
[1m[35m (0.4ms)[0m SELECT MAX("chapters_assets"."counter") AS max_id FROM "chapters_assets" WHERE "chapters_assets"."type" IN ('Chapters::Assets::Paragraph') AND "chapters_assets"."chapter_name" = 'a new chapter'
|
1522
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:49:21 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 2], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
|
1523
|
+
[paperclip] Saving attachments.
|
1524
|
+
[1m[35m (2.0ms)[0m commit transaction
|
1525
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
1526
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
1527
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
1528
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
1529
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
1530
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books"
|
1531
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
1532
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
1533
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
1534
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1535
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1536
|
+
[1m[35m (2.2ms)[0m commit transaction
|
1537
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25478-so8d1j[0]'
|
1538
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25478-so8d1j[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-1xypsx'
|
1539
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-1xypsx20120525-25478-y5n2hk[0]'
|
1540
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-1xypsx20120525-25478-y5n2hk[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-1xypsx20120525-25478-y5n2hk20120525-25478-1v6h03y'
|
1541
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-1xypsx20120525-25478-y5n2hk[0]'
|
1542
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-1xypsx20120525-25478-y5n2hk[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-1xypsx20120525-25478-y5n2hk20120525-25478-1jziuds'
|
1543
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1544
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 7
|
1545
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Fri, 25 May 2012 10:49:21 UTC +00:00], ["book_id", 7], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
1546
|
+
[paperclip] Saving attachments.
|
1547
|
+
[1m[35m (18.6ms)[0m commit transaction
|
1548
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
1549
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
1550
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
1551
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1552
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1553
|
+
[1m[35m (2.2ms)[0m commit transaction
|
1554
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25478-byun4i[0]'
|
1555
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25478-byun4i[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-hl0xgx'
|
1556
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-hl0xgx20120525-25478-1oilfbb[0]'
|
1557
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-hl0xgx20120525-25478-1oilfbb[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-hl0xgx20120525-25478-1oilfbb20120525-25478-87g6ea'
|
1558
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-hl0xgx20120525-25478-1oilfbb[0]'
|
1559
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-hl0xgx20120525-25478-1oilfbb[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-hl0xgx20120525-25478-1oilfbb20120525-25478-1t1wsjc'
|
1560
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1561
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 8
|
1562
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Fri, 25 May 2012 10:49:22 UTC +00:00], ["book_id", 8], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
1563
|
+
[paperclip] Saving attachments.
|
1564
|
+
[1m[35m (2.0ms)[0m commit transaction
|
1565
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
1566
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
1567
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
1568
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
1569
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
1570
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books"
|
1571
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
1572
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
1573
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
1574
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
1575
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
1576
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books"
|
1577
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
1578
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
1579
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
1580
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
1581
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
1582
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books"
|
1583
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
1584
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
1585
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
1586
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
1587
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
1588
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books"
|
1589
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
1590
|
+
[1m[35mSQL (2.5ms)[0m DELETE FROM "books_assets"
|
1591
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
1592
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1593
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1594
|
+
[1m[35m (1.5ms)[0m commit transaction
|
1595
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1596
|
+
[1m[35mBooks::Assets::UniqueTestDoc Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
|
1597
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9[0m
|
1598
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 9], ["counter", 1], ["displayable", false], ["type", "Books::Assets::UniqueTestDoc"]]
|
1599
|
+
[paperclip] Saving attachments.
|
1600
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
1601
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1602
|
+
[1m[36mBooks::Assets::UniqueTestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1[0m
|
1603
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1604
|
+
[1m[36mBooks::Assets::UniqueTestDoc Load (0.4ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1[0m
|
1605
|
+
[1m[35mBooks::Assets::UniqueTestDoc Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
|
1606
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
1607
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books_assets"
|
1608
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books"[0m
|
1609
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1610
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1611
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1612
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1613
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10
|
1614
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 10], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1615
|
+
[paperclip] Saving attachments.
|
1616
|
+
[1m[35m (2.3ms)[0m commit transaction
|
1617
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1618
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10
|
1619
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 10], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1620
|
+
[paperclip] Saving attachments.
|
1621
|
+
[1m[35m (2.0ms)[0m commit transaction
|
1622
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
1623
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
1624
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
1625
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1626
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1627
|
+
[1m[35m (1.8ms)[0m commit transaction
|
1628
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1629
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 11
|
1630
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:49:22 UTC +00:00], ["book_id", 11], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1631
|
+
[paperclip] Saving attachments.
|
1632
|
+
[1m[35m (2.2ms)[0m commit transaction
|
1633
|
+
Processing by Books::AssetsController#index as HTML
|
1634
|
+
Parameters: {"multiple"=>true, "book_id"=>"11", "type"=>"Assets/TestDoc"}
|
1635
|
+
[1m[36mBook Load (0.3ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "11"]]
|
1636
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 11
|
1637
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (14.3ms)
|
1638
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/index.html.erb (20.9ms)
|
1639
|
+
Completed 500 Internal Server Error in 35ms
|
1640
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
1641
|
+
[1m[35mSQL (2.5ms)[0m DELETE FROM "books_assets"
|
1642
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
1643
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1644
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1645
|
+
[1m[35m (1.7ms)[0m commit transaction
|
1646
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1647
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 12
|
1648
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:49:22 UTC +00:00], ["book_id", 12], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1649
|
+
[paperclip] Saving attachments.
|
1650
|
+
[1m[35m (2.2ms)[0m commit transaction
|
1651
|
+
Processing by Books::AssetsController#index as HTML
|
1652
|
+
Parameters: {"target"=>"target_div", "book_id"=>"12", "type"=>"Assets/TestDoc"}
|
1653
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "12"]]
|
1654
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 12
|
1655
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (10.3ms)
|
1656
|
+
Completed 500 Internal Server Error in 13ms
|
1657
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
1658
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
1659
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
1660
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1661
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1662
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1663
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1664
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 13
|
1665
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:49:22 UTC +00:00], ["book_id", 13], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1666
|
+
[paperclip] Saving attachments.
|
1667
|
+
[1m[35m (2.0ms)[0m commit transaction
|
1668
|
+
Processing by Books::AssetsController#index as HTML
|
1669
|
+
Parameters: {"target"=>"target_div", "book_id"=>"13", "type"=>"Assets/TestDoc"}
|
1670
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "13"]]
|
1671
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 13
|
1672
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (8.5ms)
|
1673
|
+
Completed 500 Internal Server Error in 11ms
|
1674
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
1675
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
1676
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
1677
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1678
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1679
|
+
[1m[35m (1.6ms)[0m commit transaction
|
1680
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1681
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 14
|
1682
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:49:22 UTC +00:00], ["book_id", 14], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1683
|
+
[paperclip] Saving attachments.
|
1684
|
+
[1m[35m (2.1ms)[0m commit transaction
|
1685
|
+
Processing by Books::AssetsController#index as HTML
|
1686
|
+
Parameters: {"target"=>"target_div", "book_id"=>"14", "type"=>"Assets/TestDoc"}
|
1687
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "14"]]
|
1688
|
+
[1m[35mBooks::Assets::TestDoc Load (0.4ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 14
|
1689
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (8.8ms)
|
1690
|
+
Completed 500 Internal Server Error in 12ms
|
1691
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
1692
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
1693
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
1694
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1695
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1696
|
+
[1m[35m (2.1ms)[0m commit transaction
|
1697
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1698
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 15
|
1699
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:49:22 UTC +00:00], ["book_id", 15], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1700
|
+
[paperclip] Saving attachments.
|
1701
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1702
|
+
Processing by Books::AssetsController#index as HTML
|
1703
|
+
Parameters: {"target"=>"target_div", "book_id"=>"15", "type"=>"Assets/TestDoc"}
|
1704
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "15"]]
|
1705
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 15
|
1706
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (9.9ms)
|
1707
|
+
Completed 500 Internal Server Error in 12ms
|
1708
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
1709
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
1710
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
1711
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1712
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1713
|
+
[1m[35m (1.8ms)[0m commit transaction
|
1714
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1715
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 16
|
1716
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:49:23 UTC +00:00], ["book_id", 16], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1717
|
+
[paperclip] Saving attachments.
|
1718
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1719
|
+
Processing by Books::AssetsController#index as JSON
|
1720
|
+
Parameters: {"target"=>"target_div", "book_id"=>"16", "type"=>"Assets/TestDoc"}
|
1721
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "16"]]
|
1722
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 16
|
1723
|
+
Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.5ms)
|
1724
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
1725
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
1726
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
1727
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1728
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1729
|
+
[1m[35m (1.8ms)[0m commit transaction
|
1730
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1731
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 17
|
1732
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:49:23 UTC +00:00], ["book_id", 17], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1733
|
+
[paperclip] Saving attachments.
|
1734
|
+
[1m[35m (2.2ms)[0m commit transaction
|
1735
|
+
Processing by Books::AssetsController#index as JSON
|
1736
|
+
Parameters: {"target"=>"target_div", "book_id"=>"17", "type"=>"Assets/TestDoc"}
|
1737
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "17"]]
|
1738
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 17
|
1739
|
+
Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.4ms)
|
1740
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
1741
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
1742
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
1743
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1744
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1745
|
+
[1m[35m (1.8ms)[0m commit transaction
|
1746
|
+
Processing by Books::AssetsController#create as JS
|
1747
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fdc01506920 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25478-1xzil2q>>, "book_id"=>"18", "type"=>"Assets/TestDoc"}
|
1748
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "18"]]
|
1749
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1750
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 18[0m
|
1751
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:49:23 UTC +00:00], ["book_id", 18], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1752
|
+
[paperclip] Saving attachments.
|
1753
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
1754
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 18
|
1755
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (15.3ms)
|
1756
|
+
Completed 500 Internal Server Error in 35ms
|
1757
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
1758
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
1759
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books"[0m
|
1760
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1761
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1762
|
+
[1m[35m (1.6ms)[0m commit transaction
|
1763
|
+
Processing by Books::AssetsController#create as JS
|
1764
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fdc00ccd650 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25478-bcjox6>>, "book_id"=>"19", "type"=>"Assets/TestDoc"}
|
1765
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "19"]]
|
1766
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1767
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 19[0m
|
1768
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:49:23 UTC +00:00], ["book_id", 19], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1769
|
+
[paperclip] Saving attachments.
|
1770
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
1771
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 19
|
1772
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (12.9ms)
|
1773
|
+
Completed 500 Internal Server Error in 27ms
|
1774
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
1775
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
1776
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books"[0m
|
1777
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1778
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1779
|
+
[1m[35m (1.7ms)[0m commit transaction
|
1780
|
+
Processing by Books::AssetsController#create as JS
|
1781
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fdc037c4318 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25478-1gnb1oa>>, "book_id"=>"20", "type"=>"Assets/TestDoc"}
|
1782
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "20"]]
|
1783
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1784
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 20[0m
|
1785
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:49:23 UTC +00:00], ["book_id", 20], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1786
|
+
[paperclip] Saving attachments.
|
1787
|
+
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
1788
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 20
|
1789
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (10.5ms)
|
1790
|
+
Completed 500 Internal Server Error in 24ms
|
1791
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
1792
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
1793
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
1794
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1795
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1796
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1797
|
+
Processing by Books::AssetsController#create as JS
|
1798
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fdc037dcf08 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25478-ijb6rp>>, "book_id"=>"21", "type"=>"Assets/TestDoc"}
|
1799
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "21"]]
|
1800
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1801
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 21[0m
|
1802
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:49:23 UTC +00:00], ["book_id", 21], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1803
|
+
[paperclip] Saving attachments.
|
1804
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
1805
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 21
|
1806
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (11.1ms)
|
1807
|
+
Completed 500 Internal Server Error in 25ms
|
1808
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
1809
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books_assets"
|
1810
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
1811
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1812
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1813
|
+
[1m[35m (1.8ms)[0m commit transaction
|
1814
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1815
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 22
|
1816
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:49:23 UTC +00:00], ["book_id", 22], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1817
|
+
[paperclip] Saving attachments.
|
1818
|
+
[1m[35m (2.0ms)[0m commit transaction
|
1819
|
+
Processing by Books::AssetsController#destroy as JS
|
1820
|
+
Parameters: {"type"=>"Assets/TestDoc", "target"=>"target_div", "book_id"=>"22", "asset_id"=>"25"}
|
1821
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "22"]]
|
1822
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 25 LIMIT 1
|
1823
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1824
|
+
[paperclip] Scheduling attachments for deletion.
|
1825
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 25]]
|
1826
|
+
[paperclip] Deleting attachments.
|
1827
|
+
[paperclip] deleting public/system/books/22/assets/test_doc.jpg
|
1828
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
1829
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 22
|
1830
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (8.3ms)
|
1831
|
+
Completed 500 Internal Server Error in 21ms
|
1832
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
1833
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
1834
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
1835
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1836
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1837
|
+
[1m[35m (1.6ms)[0m commit transaction
|
1838
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1839
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 23
|
1840
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:49:23 UTC +00:00], ["book_id", 23], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1841
|
+
[paperclip] Saving attachments.
|
1842
|
+
[1m[35m (1.8ms)[0m commit transaction
|
1843
|
+
Processing by Books::AssetsController#destroy as JS
|
1844
|
+
Parameters: {"type"=>"Assets/TestDoc", "target"=>"target_div", "book_id"=>"23", "asset_id"=>"26"}
|
1845
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "23"]]
|
1846
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 26 LIMIT 1
|
1847
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1848
|
+
[paperclip] Scheduling attachments for deletion.
|
1849
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 26]]
|
1850
|
+
[paperclip] Deleting attachments.
|
1851
|
+
[paperclip] deleting public/system/books/23/assets/test_doc.jpg
|
1852
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
1853
|
+
[1m[35mBooks::Assets::TestDoc Load (1.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 23
|
1854
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (10.5ms)
|
1855
|
+
Completed 500 Internal Server Error in 22ms
|
1856
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
1857
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
1858
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books"[0m
|
1859
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1860
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1861
|
+
[1m[35m (1.7ms)[0m commit transaction
|
1862
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1863
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 24
|
1864
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:49:23 UTC +00:00], ["book_id", 24], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1865
|
+
[paperclip] Saving attachments.
|
1866
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1867
|
+
Processing by Books::AssetsController#destroy as JS
|
1868
|
+
Parameters: {"type"=>"Assets/TestDoc", "target"=>"target_div", "book_id"=>"24", "asset_id"=>"27"}
|
1869
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "24"]]
|
1870
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 27 LIMIT 1
|
1871
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1872
|
+
[paperclip] Scheduling attachments for deletion.
|
1873
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 27]]
|
1874
|
+
[paperclip] Deleting attachments.
|
1875
|
+
[paperclip] deleting public/system/books/24/assets/test_doc.jpg
|
1876
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
1877
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 24
|
1878
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (8.6ms)
|
1879
|
+
Completed 500 Internal Server Error in 41ms
|
1880
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
1881
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
1882
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
1883
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1884
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1885
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1886
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1887
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 25
|
1888
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:49:23 UTC +00:00], ["book_id", 25], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1889
|
+
[paperclip] Saving attachments.
|
1890
|
+
[1m[35m (1.7ms)[0m commit transaction
|
1891
|
+
Processing by Books::AssetsController#destroy as JS
|
1892
|
+
Parameters: {"type"=>"Assets/TestDoc", "target"=>"target_div", "book_id"=>"25", "asset_id"=>"28"}
|
1893
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "25"]]
|
1894
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 28 LIMIT 1
|
1895
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1896
|
+
[paperclip] Scheduling attachments for deletion.
|
1897
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 28]]
|
1898
|
+
[paperclip] Deleting attachments.
|
1899
|
+
[paperclip] deleting public/system/books/25/assets/test_doc.jpg
|
1900
|
+
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
1901
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 25
|
1902
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (8.9ms)
|
1903
|
+
Completed 500 Internal Server Error in 20ms
|
1904
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
1905
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
1906
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
1907
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1908
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1909
|
+
[1m[35m (2.0ms)[0m commit transaction
|
1910
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1911
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 26
|
1912
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:49:23 UTC +00:00], ["book_id", 26], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1913
|
+
[paperclip] Saving attachments.
|
1914
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1915
|
+
Processing by Books::AssetsController#get as HTML
|
1916
|
+
Parameters: {"book_id"=>"26", "asset_id"=>"29", "type"=>"Assets/TestDoc"}
|
1917
|
+
[1m[36mBooks::Assets::TestDoc Load (0.4ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? LIMIT 1[0m [["id", "29"]]
|
1918
|
+
Sent file public/system/books/26/assets/test_doc.jpg (0.2ms)
|
1919
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
|
1920
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
1921
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
1922
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books"
|
1923
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1924
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
1925
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
1926
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25478-wpa97m[0]'
|
1927
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25478-wpa97m[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-1axuv7i'
|
1928
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-1axuv7i20120525-25478-1j1rn5a[0]'
|
1929
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-1axuv7i20120525-25478-1j1rn5a[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-1axuv7i20120525-25478-1j1rn5a20120525-25478-1f5ey8k'
|
1930
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-1axuv7i20120525-25478-1j1rn5a[0]'
|
1931
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-1axuv7i20120525-25478-1j1rn5a[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-1axuv7i20120525-25478-1j1rn5a20120525-25478-u5337m'
|
1932
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1933
|
+
[1m[36m (0.4ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 27[0m
|
1934
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Fri, 25 May 2012 10:49:23 UTC +00:00], ["book_id", 27], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
1935
|
+
[paperclip] Saving attachments.
|
1936
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
1937
|
+
Processing by Books::AssetsController#get as HTML
|
1938
|
+
Parameters: {"book_id"=>"27", "asset_id"=>"30", "style"=>"thumb", "type"=>"Assets/TestImage"}
|
1939
|
+
[1m[35mBooks::Assets::TestImage Load (0.4ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."id" = ? LIMIT 1 [["id", "30"]]
|
1940
|
+
Sent file public/system/books/27/assets/thumb/test_image.jpg (0.2ms)
|
1941
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.4ms)
|
1942
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
1943
|
+
[1m[35mSQL (2.5ms)[0m DELETE FROM "books_assets"
|
1944
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
1945
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1946
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1947
|
+
[1m[35m (2.4ms)[0m commit transaction
|
1948
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25478-snbdnc[0]'
|
1949
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25478-snbdnc[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-q0ezd3'
|
1950
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-q0ezd320120525-25478-1scsdkr[0]'
|
1951
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-q0ezd320120525-25478-1scsdkr[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-q0ezd320120525-25478-1scsdkr20120525-25478-quqtjf'
|
1952
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-q0ezd320120525-25478-1scsdkr[0]'
|
1953
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-q0ezd320120525-25478-1scsdkr[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-q0ezd320120525-25478-1scsdkr20120525-25478-19e6ra4'
|
1954
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1955
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 28
|
1956
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Fri, 25 May 2012 10:49:23 UTC +00:00], ["book_id", 28], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
1957
|
+
[paperclip] Saving attachments.
|
1958
|
+
[1m[35m (2.2ms)[0m commit transaction
|
1959
|
+
Processing by Books::AssetsController#get as HTML
|
1960
|
+
Parameters: {"book_id"=>"28", "asset_id"=>"31", "style"=>"thumb", "type"=>"Assets/TestImage"}
|
1961
|
+
[1m[36mBooks::Assets::TestImage Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."id" = ? LIMIT 1[0m [["id", "31"]]
|
1962
|
+
Sent file public/system/books/28/assets/thumb/test_image.jpg (0.2ms)
|
1963
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
|
1964
|
+
[32mCommand[0m :: identify -format %wx%h '/opt/code/fractalgarden/acts_as_assets/spec/temp/test.jpg[0]'
|
1965
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
1966
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
1967
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books"
|
1968
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1969
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
1970
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
1971
|
+
Processing by Books::AssetsController#get as HTML
|
1972
|
+
Parameters: {"book_id"=>"29", "asset_id"=>"123456789", "type"=>"Assets/TestDoc"}
|
1973
|
+
[1m[35mBooks::Assets::TestDoc Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? LIMIT 1 [["id", "123456789"]]
|
1974
|
+
Completed 404 Not Found in 9ms (Views: 6.6ms | ActiveRecord: 0.2ms)
|
1975
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
1976
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
1977
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
1978
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
1979
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
1980
|
+
[1m[35mSQL (1.5ms)[0m DELETE FROM "books"
|
1981
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
1982
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
1983
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
1984
|
+
[1m[35mSQL (8.5ms)[0m DELETE FROM "books_assets"
|
1985
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
1986
|
+
[1m[35mSQL (1.5ms)[0m DELETE FROM "books"
|
1987
|
+
[1m[36mSQL (4.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
1988
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
1989
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books"[0m
|
1990
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
1991
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
1992
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books"
|
1993
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
1994
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
1995
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
1996
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
1997
|
+
[1m[35m (3.6ms)[0m DROP TABLE "books"
|
1998
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) [0m
|
1999
|
+
[1m[35m (2.8ms)[0m DROP TABLE "books_assets"
|
2000
|
+
[1m[36m (2.5ms)[0m [1mCREATE TABLE "books_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "book_id" integer, "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
2001
|
+
[1m[35m (1.8ms)[0m DROP TABLE "chapters"
|
2002
|
+
[1m[36m (2.7ms)[0m [1mCREATE TABLE "chapters" ("name" varchar(255) NOT NULL) [0m
|
2003
|
+
[1m[35m (2.2ms)[0m DROP TABLE "chapters_assets"
|
2004
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "chapters_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "chapter_name" varchar(255), "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
2005
|
+
[1m[35m (2.3ms)[0m DROP TABLE "rt_tipi_pannello"
|
2006
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "rt_tipi_pannello" ("name" varchar(255) NOT NULL) [0m
|
2007
|
+
[1m[35m (2.4ms)[0m DROP TABLE "rt_tipi_pannello_assets"
|
2008
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "rt_tipi_pannello_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "displayable" boolean DEFAULT 'f' NOT NULL, "tipo_pannello_name" varchar(255)) [0m
|
2009
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
2010
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
2011
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books"
|
2012
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
2013
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
2014
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
2015
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
2016
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
2017
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books"
|
2018
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
2019
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
2020
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
2021
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
2022
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
2023
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
2024
|
+
[1m[36mSQL (2.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
2025
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
2026
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
2027
|
+
[1m[35mSQL (2.5ms)[0m DELETE FROM "books_assets"
|
2028
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
2029
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books"
|
2030
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
2031
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
2032
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books"[0m
|
2033
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
2034
|
+
[1m[36mSQL (4.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
2035
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books"
|
2036
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
2037
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
2038
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books"[0m
|
2039
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2040
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2041
|
+
[1m[35m (2.2ms)[0m commit transaction
|
2042
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2043
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 1
|
2044
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 1], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2045
|
+
[paperclip] Saving attachments.
|
2046
|
+
[1m[35m (2.4ms)[0m commit transaction
|
2047
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
2048
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
2049
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
2050
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2051
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2052
|
+
[1m[35m (1.6ms)[0m commit transaction
|
2053
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2054
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 2
|
2055
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 2], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2056
|
+
[paperclip] Saving attachments.
|
2057
|
+
[1m[35m (1.8ms)[0m commit transaction
|
2058
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
2059
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
2060
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
2061
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2062
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2063
|
+
[1m[35m (2.4ms)[0m commit transaction
|
2064
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2065
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 3
|
2066
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 3], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2067
|
+
[paperclip] Saving attachments.
|
2068
|
+
[1m[35m (2.1ms)[0m commit transaction
|
2069
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
2070
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
2071
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
2072
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2073
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "rt_tipi_pannello" ("name") VALUES (?)[0m [["name", "Suntech STP"]]
|
2074
|
+
[1m[35m (1.9ms)[0m commit transaction
|
2075
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2076
|
+
[1m[35mTipiPannello::Documenti::SchedaTecnica Load (0.2ms)[0m SELECT "rt_tipi_pannello_assets".* FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP' LIMIT 1
|
2077
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("rt_tipi_pannello_assets"."counter") AS max_id FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP'[0m
|
2078
|
+
[1m[35mSQL (1.6ms)[0m INSERT INTO "rt_tipi_pannello_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "counter", "displayable", "tipo_pannello_name", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:56:00 UTC +00:00], ["counter", 1], ["displayable", false], ["tipo_pannello_name", "Suntech STP"], ["type", "TipiPannello::Documenti::SchedaTecnica"]]
|
2079
|
+
[paperclip] Saving attachments.
|
2080
|
+
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
|
2081
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
2082
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
2083
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books"
|
2084
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2085
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
2086
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
2087
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2088
|
+
[1m[36m (0.4ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 4[0m
|
2089
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 4], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2090
|
+
[paperclip] Saving attachments.
|
2091
|
+
[1m[36m (2.9ms)[0m [1mcommit transaction[0m
|
2092
|
+
[1m[35mSQL (2.5ms)[0m DELETE FROM "books_assets"
|
2093
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
2094
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books"
|
2095
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL[0m
|
2096
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
2097
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
2098
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
2099
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2100
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL
|
2101
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2102
|
+
[paperclip] Saving attachments.
|
2103
|
+
[1m[35m (2.4ms)[0m commit transaction
|
2104
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2105
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL
|
2106
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2107
|
+
[paperclip] Saving attachments.
|
2108
|
+
[1m[35m (2.0ms)[0m commit transaction
|
2109
|
+
[1m[36mBooks::Asset Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1[0m [["id", 5]]
|
2110
|
+
[1m[35mBooks::Asset Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1 [["id", 6]]
|
2111
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
2112
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
2113
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books"[0m
|
2114
|
+
[1m[35m (0.2ms)[0m begin transaction
|
2115
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2116
|
+
[1m[35m (2.0ms)[0m commit transaction
|
2117
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2118
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 5
|
2119
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:56:00 UTC +00:00], ["book_id", 5], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2120
|
+
[paperclip] Saving attachments.
|
2121
|
+
[1m[35m (2.8ms)[0m commit transaction
|
2122
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
2123
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
2124
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books"[0m
|
2125
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2126
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2127
|
+
[1m[35m (2.5ms)[0m commit transaction
|
2128
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2129
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 6
|
2130
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:56:00 UTC +00:00], ["book_id", 6], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2131
|
+
[paperclip] Saving attachments.
|
2132
|
+
[1m[35m (1.8ms)[0m commit transaction
|
2133
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
2134
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
2135
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
2136
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2137
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "chapters" ("name") VALUES (?)[0m [["name", "a new chapter"]]
|
2138
|
+
[1m[35m (1.7ms)[0m commit transaction
|
2139
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2140
|
+
[1m[35m (0.4ms)[0m SELECT MAX("chapters_assets"."counter") AS max_id FROM "chapters_assets" WHERE "chapters_assets"."type" IN ('Chapters::Assets::Paragraph') AND "chapters_assets"."chapter_name" = 'a new chapter'
|
2141
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:56:00 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 1], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
|
2142
|
+
[paperclip] Saving attachments.
|
2143
|
+
[1m[35m (2.3ms)[0m commit transaction
|
2144
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
2145
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
2146
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
2147
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2148
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "chapters" ("name") VALUES (?)[0m [["name", "a new chapter"]]
|
2149
|
+
[1m[35m (1.8ms)[0m commit transaction
|
2150
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2151
|
+
[1m[35m (0.4ms)[0m SELECT MAX("chapters_assets"."counter") AS max_id FROM "chapters_assets" WHERE "chapters_assets"."type" IN ('Chapters::Assets::Paragraph') AND "chapters_assets"."chapter_name" = 'a new chapter'
|
2152
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:56:00 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 2], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
|
2153
|
+
[paperclip] Saving attachments.
|
2154
|
+
[1m[35m (2.4ms)[0m commit transaction
|
2155
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
2156
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
2157
|
+
[1m[36mSQL (2.6ms)[0m [1mDELETE FROM "books"[0m
|
2158
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
2159
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
2160
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books"
|
2161
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
2162
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
2163
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
2164
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2165
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2166
|
+
[1m[35m (1.6ms)[0m commit transaction
|
2167
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25576-14vas2[0]'
|
2168
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25576-14vas2[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-1rzbak0'
|
2169
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-1rzbak020120525-25576-1gvq2py[0]'
|
2170
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-1rzbak020120525-25576-1gvq2py[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-1rzbak020120525-25576-1gvq2py20120525-25576-y5rzqe'
|
2171
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-1rzbak020120525-25576-1gvq2py[0]'
|
2172
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-1rzbak020120525-25576-1gvq2py[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-1rzbak020120525-25576-1gvq2py20120525-25576-1xdcu31'
|
2173
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2174
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 7
|
2175
|
+
[1m[36mSQL (320.6ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Fri, 25 May 2012 10:56:00 UTC +00:00], ["book_id", 7], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
2176
|
+
[paperclip] Saving attachments.
|
2177
|
+
[1m[35m (606.6ms)[0m commit transaction
|
2178
|
+
[1m[36mSQL (268.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
2179
|
+
[1m[35mSQL (60.5ms)[0m DELETE FROM "books_assets"
|
2180
|
+
[1m[36mSQL (88.7ms)[0m [1mDELETE FROM "books"[0m
|
2181
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2182
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2183
|
+
[1m[35m (1.8ms)[0m commit transaction
|
2184
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25576-1ng2vaa[0]'
|
2185
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25576-1ng2vaa[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-y1bgd3'
|
2186
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-y1bgd320120525-25576-1kjn99h[0]'
|
2187
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-y1bgd320120525-25576-1kjn99h[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-y1bgd320120525-25576-1kjn99h20120525-25576-13oq6oz'
|
2188
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-y1bgd320120525-25576-1kjn99h[0]'
|
2189
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-y1bgd320120525-25576-1kjn99h[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-y1bgd320120525-25576-1kjn99h20120525-25576-z5lnsk'
|
2190
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2191
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 8
|
2192
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Fri, 25 May 2012 10:56:03 UTC +00:00], ["book_id", 8], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
2193
|
+
[paperclip] Saving attachments.
|
2194
|
+
[1m[35m (2.1ms)[0m commit transaction
|
2195
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
2196
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
2197
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
2198
|
+
[1m[35mSQL (3.3ms)[0m DELETE FROM "books_assets"
|
2199
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
2200
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books"
|
2201
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
2202
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
2203
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books"[0m
|
2204
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
2205
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
2206
|
+
[1m[35mSQL (1.5ms)[0m DELETE FROM "books"
|
2207
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
2208
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
2209
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books"[0m
|
2210
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
2211
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
2212
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books"
|
2213
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
2214
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
2215
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books"[0m
|
2216
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
2217
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
2218
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books"
|
2219
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
2220
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
2221
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
2222
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2223
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2224
|
+
[1m[35m (1.7ms)[0m commit transaction
|
2225
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2226
|
+
[1m[35mBooks::Assets::UniqueTestDoc Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
|
2227
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9[0m
|
2228
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 9], ["counter", 1], ["displayable", false], ["type", "Books::Assets::UniqueTestDoc"]]
|
2229
|
+
[paperclip] Saving attachments.
|
2230
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
2231
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2232
|
+
[1m[36mBooks::Assets::UniqueTestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1[0m
|
2233
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2234
|
+
[1m[36mBooks::Assets::UniqueTestDoc Load (0.4ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1[0m
|
2235
|
+
[1m[35mBooks::Assets::UniqueTestDoc Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
|
2236
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
2237
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
2238
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
2239
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2240
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2241
|
+
[1m[35m (1.6ms)[0m commit transaction
|
2242
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2243
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10
|
2244
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 10], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2245
|
+
[paperclip] Saving attachments.
|
2246
|
+
[1m[35m (2.0ms)[0m commit transaction
|
2247
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2248
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10
|
2249
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 10], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2250
|
+
[paperclip] Saving attachments.
|
2251
|
+
[1m[35m (2.0ms)[0m commit transaction
|
2252
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
2253
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
2254
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books"[0m
|
2255
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2256
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2257
|
+
[1m[35m (1.6ms)[0m commit transaction
|
2258
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2259
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 11
|
2260
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:56:04 UTC +00:00], ["book_id", 11], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2261
|
+
[paperclip] Saving attachments.
|
2262
|
+
[1m[35m (1.8ms)[0m commit transaction
|
2263
|
+
Processing by Books::AssetsController#index as HTML
|
2264
|
+
Parameters: {"multiple"=>true, "book_id"=>"11", "type"=>"Assets/TestDoc"}
|
2265
|
+
[1m[36mBook Load (0.3ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "11"]]
|
2266
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 11
|
2267
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (14.0ms)
|
2268
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/index.html.erb (20.5ms)
|
2269
|
+
Completed 500 Internal Server Error in 34ms
|
2270
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
2271
|
+
[1m[35mSQL (2.7ms)[0m DELETE FROM "books_assets"
|
2272
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
2273
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2274
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2275
|
+
[1m[35m (1.7ms)[0m commit transaction
|
2276
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2277
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 12
|
2278
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:56:04 UTC +00:00], ["book_id", 12], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2279
|
+
[paperclip] Saving attachments.
|
2280
|
+
[1m[35m (2.1ms)[0m commit transaction
|
2281
|
+
Processing by Books::AssetsController#index as HTML
|
2282
|
+
Parameters: {"target"=>"target_div", "book_id"=>"12", "type"=>"Assets/TestDoc"}
|
2283
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "12"]]
|
2284
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 12
|
2285
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (11.5ms)
|
2286
|
+
Completed 500 Internal Server Error in 14ms
|
2287
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
2288
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
2289
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
2290
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2291
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2292
|
+
[1m[35m (1.8ms)[0m commit transaction
|
2293
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2294
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 13
|
2295
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:56:04 UTC +00:00], ["book_id", 13], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2296
|
+
[paperclip] Saving attachments.
|
2297
|
+
[1m[35m (1.7ms)[0m commit transaction
|
2298
|
+
Processing by Books::AssetsController#index as HTML
|
2299
|
+
Parameters: {"target"=>"target_div", "book_id"=>"13", "type"=>"Assets/TestDoc"}
|
2300
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "13"]]
|
2301
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 13
|
2302
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (9.1ms)
|
2303
|
+
Completed 500 Internal Server Error in 11ms
|
2304
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
2305
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
2306
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
2307
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2308
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2309
|
+
[1m[35m (1.7ms)[0m commit transaction
|
2310
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2311
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 14
|
2312
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:56:04 UTC +00:00], ["book_id", 14], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2313
|
+
[paperclip] Saving attachments.
|
2314
|
+
[1m[35m (2.1ms)[0m commit transaction
|
2315
|
+
Processing by Books::AssetsController#index as HTML
|
2316
|
+
Parameters: {"target"=>"target_div", "book_id"=>"14", "type"=>"Assets/TestDoc"}
|
2317
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "14"]]
|
2318
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 14
|
2319
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (8.7ms)
|
2320
|
+
Completed 500 Internal Server Error in 11ms
|
2321
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
2322
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
2323
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books"[0m
|
2324
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2325
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2326
|
+
[1m[35m (1.6ms)[0m commit transaction
|
2327
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2328
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 15
|
2329
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:56:04 UTC +00:00], ["book_id", 15], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2330
|
+
[paperclip] Saving attachments.
|
2331
|
+
[1m[35m (1.9ms)[0m commit transaction
|
2332
|
+
Processing by Books::AssetsController#index as HTML
|
2333
|
+
Parameters: {"target"=>"target_div", "book_id"=>"15", "type"=>"Assets/TestDoc"}
|
2334
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "15"]]
|
2335
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 15
|
2336
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (8.6ms)
|
2337
|
+
Completed 500 Internal Server Error in 11ms
|
2338
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
2339
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
2340
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
2341
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2342
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2343
|
+
[1m[35m (1.5ms)[0m commit transaction
|
2344
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2345
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 16
|
2346
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:56:04 UTC +00:00], ["book_id", 16], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2347
|
+
[paperclip] Saving attachments.
|
2348
|
+
[1m[35m (2.0ms)[0m commit transaction
|
2349
|
+
Processing by Books::AssetsController#index as JSON
|
2350
|
+
Parameters: {"target"=>"target_div", "book_id"=>"16", "type"=>"Assets/TestDoc"}
|
2351
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "16"]]
|
2352
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 16
|
2353
|
+
Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.4ms)
|
2354
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
2355
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books_assets"
|
2356
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books"[0m
|
2357
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2358
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2359
|
+
[1m[35m (1.8ms)[0m commit transaction
|
2360
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2361
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 17
|
2362
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:56:04 UTC +00:00], ["book_id", 17], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2363
|
+
[paperclip] Saving attachments.
|
2364
|
+
[1m[35m (2.3ms)[0m commit transaction
|
2365
|
+
Processing by Books::AssetsController#index as JSON
|
2366
|
+
Parameters: {"target"=>"target_div", "book_id"=>"17", "type"=>"Assets/TestDoc"}
|
2367
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "17"]]
|
2368
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 17
|
2369
|
+
Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.4ms)
|
2370
|
+
[1m[36mSQL (2.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
2371
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
2372
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
2373
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2374
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2375
|
+
[1m[35m (1.6ms)[0m commit transaction
|
2376
|
+
Processing by Books::AssetsController#create as JS
|
2377
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fea9cd20eb8 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25576-h6tod8>>, "book_id"=>"18", "type"=>"Assets/TestDoc"}
|
2378
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "18"]]
|
2379
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2380
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 18[0m
|
2381
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:56:04 UTC +00:00], ["book_id", 18], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2382
|
+
[paperclip] Saving attachments.
|
2383
|
+
[1m[36m (2.9ms)[0m [1mcommit transaction[0m
|
2384
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 18
|
2385
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (3.9ms)
|
2386
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (4.6ms)
|
2387
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (6.3ms)
|
2388
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (13.7ms)
|
2389
|
+
Completed 200 OK in 33ms (Views: 20.2ms | ActiveRecord: 4.2ms)
|
2390
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
2391
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
2392
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books"[0m
|
2393
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2394
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2395
|
+
[1m[35m (2.2ms)[0m commit transaction
|
2396
|
+
Processing by Books::AssetsController#create as JS
|
2397
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fea9acf8370 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25576-1xzrsip>>, "book_id"=>"19", "type"=>"Assets/TestDoc"}
|
2398
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "19"]]
|
2399
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2400
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 19[0m
|
2401
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:56:04 UTC +00:00], ["book_id", 19], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2402
|
+
[paperclip] Saving attachments.
|
2403
|
+
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
|
2404
|
+
[1m[35mBooks::Assets::TestDoc Load (2.4ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 19
|
2405
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.5ms)
|
2406
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.3ms)
|
2407
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.6ms)
|
2408
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.7ms)
|
2409
|
+
Completed 200 OK in 21ms (Views: 6.7ms | ActiveRecord: 5.7ms)
|
2410
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
2411
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
2412
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
2413
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2414
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2415
|
+
[1m[35m (1.7ms)[0m commit transaction
|
2416
|
+
Processing by Books::AssetsController#create as JS
|
2417
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fea9c8b14e0 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25576-1mi96d5>>, "book_id"=>"20", "type"=>"Assets/TestDoc"}
|
2418
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "20"]]
|
2419
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2420
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 20[0m
|
2421
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:56:04 UTC +00:00], ["book_id", 20], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2422
|
+
[paperclip] Saving attachments.
|
2423
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
2424
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 20
|
2425
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.5ms)
|
2426
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.2ms)
|
2427
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.5ms)
|
2428
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.5ms)
|
2429
|
+
Completed 200 OK in 17ms (Views: 6.3ms | ActiveRecord: 3.4ms)
|
2430
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
2431
|
+
[1m[35mSQL (3.0ms)[0m DELETE FROM "books_assets"
|
2432
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
2433
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2434
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2435
|
+
[1m[35m (1.9ms)[0m commit transaction
|
2436
|
+
Processing by Books::AssetsController#create as JS
|
2437
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fea9aaec748 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25576-zdcouc>>, "book_id"=>"21", "type"=>"Assets/TestDoc"}
|
2438
|
+
[1m[36mBook Load (0.3ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "21"]]
|
2439
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2440
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 21[0m
|
2441
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:56:04 UTC +00:00], ["book_id", 21], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2442
|
+
[paperclip] Saving attachments.
|
2443
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
2444
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 21
|
2445
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.3ms)
|
2446
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (1.9ms)
|
2447
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.2ms)
|
2448
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.0ms)
|
2449
|
+
Completed 200 OK in 17ms (Views: 5.7ms | ActiveRecord: 3.0ms)
|
2450
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
2451
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
2452
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books"[0m
|
2453
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2454
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2455
|
+
[1m[35m (1.7ms)[0m commit transaction
|
2456
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2457
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 22
|
2458
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:56:04 UTC +00:00], ["book_id", 22], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2459
|
+
[paperclip] Saving attachments.
|
2460
|
+
[1m[35m (2.0ms)[0m commit transaction
|
2461
|
+
Processing by Books::AssetsController#destroy as JS
|
2462
|
+
Parameters: {"type"=>"Assets/TestDoc", "target"=>"target_div", "book_id"=>"22", "asset_id"=>"25"}
|
2463
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "22"]]
|
2464
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 25 LIMIT 1
|
2465
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2466
|
+
[paperclip] Scheduling attachments for deletion.
|
2467
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 25]]
|
2468
|
+
[paperclip] Deleting attachments.
|
2469
|
+
[paperclip] deleting public/system/books/22/assets/test_doc.jpg
|
2470
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
2471
|
+
[1m[35mBooks::Assets::TestDoc Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 22
|
2472
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.5ms)
|
2473
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
2474
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.2ms)
|
2475
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.2ms)
|
2476
|
+
Completed 200 OK in 15ms (Views: 5.7ms | ActiveRecord: 3.1ms)
|
2477
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
2478
|
+
[1m[35mSQL (3.2ms)[0m DELETE FROM "books_assets"
|
2479
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
2480
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2481
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2482
|
+
[1m[35m (1.7ms)[0m commit transaction
|
2483
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2484
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 23
|
2485
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:56:04 UTC +00:00], ["book_id", 23], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2486
|
+
[paperclip] Saving attachments.
|
2487
|
+
[1m[35m (2.2ms)[0m commit transaction
|
2488
|
+
Processing by Books::AssetsController#destroy as JS
|
2489
|
+
Parameters: {"type"=>"Assets/TestDoc", "target"=>"target_div", "book_id"=>"23", "asset_id"=>"26"}
|
2490
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "23"]]
|
2491
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 26 LIMIT 1
|
2492
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2493
|
+
[paperclip] Scheduling attachments for deletion.
|
2494
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 26]]
|
2495
|
+
[paperclip] Deleting attachments.
|
2496
|
+
[paperclip] deleting public/system/books/23/assets/test_doc.jpg
|
2497
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
2498
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 23
|
2499
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.4ms)
|
2500
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
2501
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.2ms)
|
2502
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.2ms)
|
2503
|
+
Completed 200 OK in 12ms (Views: 3.9ms | ActiveRecord: 3.0ms)
|
2504
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
2505
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
2506
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
2507
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2508
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2509
|
+
[1m[35m (1.6ms)[0m commit transaction
|
2510
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2511
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 24
|
2512
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:56:04 UTC +00:00], ["book_id", 24], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2513
|
+
[paperclip] Saving attachments.
|
2514
|
+
[1m[35m (2.0ms)[0m commit transaction
|
2515
|
+
Processing by Books::AssetsController#destroy as JS
|
2516
|
+
Parameters: {"type"=>"Assets/TestDoc", "target"=>"target_div", "book_id"=>"24", "asset_id"=>"27"}
|
2517
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "24"]]
|
2518
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 27 LIMIT 1
|
2519
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2520
|
+
[paperclip] Scheduling attachments for deletion.
|
2521
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 27]]
|
2522
|
+
[paperclip] Deleting attachments.
|
2523
|
+
[paperclip] deleting public/system/books/24/assets/test_doc.jpg
|
2524
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
2525
|
+
[1m[35mBooks::Assets::TestDoc Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 24
|
2526
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (2.6ms)
|
2527
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
2528
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.2ms)
|
2529
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (3.5ms)
|
2530
|
+
Completed 200 OK in 13ms (Views: 5.4ms | ActiveRecord: 2.7ms)
|
2531
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
2532
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
2533
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
2534
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2535
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2536
|
+
[1m[35m (1.9ms)[0m commit transaction
|
2537
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2538
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 25
|
2539
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:56:04 UTC +00:00], ["book_id", 25], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2540
|
+
[paperclip] Saving attachments.
|
2541
|
+
[1m[35m (2.3ms)[0m commit transaction
|
2542
|
+
Processing by Books::AssetsController#destroy as JS
|
2543
|
+
Parameters: {"type"=>"Assets/TestDoc", "target"=>"target_div", "book_id"=>"25", "asset_id"=>"28"}
|
2544
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "25"]]
|
2545
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 28 LIMIT 1
|
2546
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2547
|
+
[paperclip] Scheduling attachments for deletion.
|
2548
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 28]]
|
2549
|
+
[paperclip] Deleting attachments.
|
2550
|
+
[paperclip] deleting public/system/books/25/assets/test_doc.jpg
|
2551
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
2552
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 25
|
2553
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.6ms)
|
2554
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
2555
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.2ms)
|
2556
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.4ms)
|
2557
|
+
Completed 200 OK in 13ms (Views: 4.2ms | ActiveRecord: 3.0ms)
|
2558
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
2559
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
2560
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books"[0m
|
2561
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2562
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2563
|
+
[1m[35m (1.8ms)[0m commit transaction
|
2564
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2565
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 26
|
2566
|
+
[1m[36mSQL (63.1ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:56:04 UTC +00:00], ["book_id", 26], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2567
|
+
[paperclip] Saving attachments.
|
2568
|
+
[1m[35m (1.9ms)[0m commit transaction
|
2569
|
+
Processing by Books::AssetsController#get as HTML
|
2570
|
+
Parameters: {"book_id"=>"26", "asset_id"=>"29", "type"=>"Assets/TestDoc"}
|
2571
|
+
[1m[36mBooks::Assets::TestDoc Load (0.4ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? LIMIT 1[0m [["id", "29"]]
|
2572
|
+
Sent file public/system/books/26/assets/test_doc.jpg (0.2ms)
|
2573
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
|
2574
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
2575
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
2576
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books"
|
2577
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2578
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
2579
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
2580
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25576-1ju6dm0[0]'
|
2581
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25576-1ju6dm0[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-9ngdol'
|
2582
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-9ngdol20120525-25576-n8q07d[0]'
|
2583
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-9ngdol20120525-25576-n8q07d[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-9ngdol20120525-25576-n8q07d20120525-25576-i4aw0f'
|
2584
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-9ngdol20120525-25576-n8q07d[0]'
|
2585
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-9ngdol20120525-25576-n8q07d[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-9ngdol20120525-25576-n8q07d20120525-25576-1iuatxt'
|
2586
|
+
[1m[35m (0.2ms)[0m begin transaction
|
2587
|
+
[1m[36m (0.4ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 27[0m
|
2588
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Fri, 25 May 2012 10:56:04 UTC +00:00], ["book_id", 27], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
2589
|
+
[paperclip] Saving attachments.
|
2590
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
2591
|
+
Processing by Books::AssetsController#get as HTML
|
2592
|
+
Parameters: {"book_id"=>"27", "asset_id"=>"30", "style"=>"thumb", "type"=>"Assets/TestImage"}
|
2593
|
+
[1m[35mBooks::Assets::TestImage Load (0.4ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."id" = ? LIMIT 1 [["id", "30"]]
|
2594
|
+
Sent file public/system/books/27/assets/thumb/test_image.jpg (0.2ms)
|
2595
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.4ms)
|
2596
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
2597
|
+
[1m[35mSQL (3.0ms)[0m DELETE FROM "books_assets"
|
2598
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books"[0m
|
2599
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2600
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2601
|
+
[1m[35m (1.9ms)[0m commit transaction
|
2602
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25576-1m4eiv3[0]'
|
2603
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25576-1m4eiv3[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-19luf9e'
|
2604
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-19luf9e20120525-25576-10n98zb[0]'
|
2605
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-19luf9e20120525-25576-10n98zb[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-19luf9e20120525-25576-10n98zb20120525-25576-1gqy59p'
|
2606
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-19luf9e20120525-25576-10n98zb[0]'
|
2607
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-19luf9e20120525-25576-10n98zb[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-19luf9e20120525-25576-10n98zb20120525-25576-1k6vwqx'
|
2608
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2609
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 28
|
2610
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Fri, 25 May 2012 10:56:05 UTC +00:00], ["book_id", 28], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
2611
|
+
[paperclip] Saving attachments.
|
2612
|
+
[1m[35m (2.0ms)[0m commit transaction
|
2613
|
+
Processing by Books::AssetsController#get as HTML
|
2614
|
+
Parameters: {"book_id"=>"28", "asset_id"=>"31", "style"=>"thumb", "type"=>"Assets/TestImage"}
|
2615
|
+
[1m[36mBooks::Assets::TestImage Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."id" = ? LIMIT 1[0m [["id", "31"]]
|
2616
|
+
Sent file public/system/books/28/assets/thumb/test_image.jpg (0.2ms)
|
2617
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
|
2618
|
+
[32mCommand[0m :: identify -format %wx%h '/opt/code/fractalgarden/acts_as_assets/spec/temp/test.jpg[0]'
|
2619
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
2620
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
2621
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books"
|
2622
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2623
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
2624
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
2625
|
+
Processing by Books::AssetsController#get as HTML
|
2626
|
+
Parameters: {"book_id"=>"29", "asset_id"=>"123456789", "type"=>"Assets/TestDoc"}
|
2627
|
+
[1m[35mBooks::Assets::TestDoc Load (0.1ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? LIMIT 1 [["id", "123456789"]]
|
2628
|
+
Completed 404 Not Found in 8ms (Views: 5.8ms | ActiveRecord: 0.1ms)
|
2629
|
+
[1m[36mSQL (2.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
2630
|
+
[1m[35mSQL (2.5ms)[0m DELETE FROM "books_assets"
|
2631
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
2632
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
2633
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
2634
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books"
|
2635
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
2636
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
2637
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
2638
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
2639
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
2640
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books"
|
2641
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
2642
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books_assets"
|
2643
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
2644
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
2645
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
2646
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books"
|
2647
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
2648
|
+
[1m[35mSQL (2.5ms)[0m DELETE FROM "books_assets"
|
2649
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
2650
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
2651
|
+
[1m[35m (3.2ms)[0m DROP TABLE "books"
|
2652
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) [0m
|
2653
|
+
[1m[35m (2.6ms)[0m DROP TABLE "books_assets"
|
2654
|
+
[1m[36m (2.3ms)[0m [1mCREATE TABLE "books_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "book_id" integer, "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
2655
|
+
[1m[35m (2.2ms)[0m DROP TABLE "chapters"
|
2656
|
+
[1m[36m (3.4ms)[0m [1mCREATE TABLE "chapters" ("name" varchar(255) NOT NULL) [0m
|
2657
|
+
[1m[35m (2.6ms)[0m DROP TABLE "chapters_assets"
|
2658
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "chapters_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "chapter_name" varchar(255), "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
2659
|
+
[1m[35m (2.4ms)[0m DROP TABLE "rt_tipi_pannello"
|
2660
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "rt_tipi_pannello" ("name" varchar(255) NOT NULL) [0m
|
2661
|
+
[1m[35m (2.5ms)[0m DROP TABLE "rt_tipi_pannello_assets"
|
2662
|
+
[1m[36m (2.5ms)[0m [1mCREATE TABLE "rt_tipi_pannello_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "displayable" boolean DEFAULT 'f' NOT NULL, "tipo_pannello_name" varchar(255)) [0m
|
2663
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
2664
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
2665
|
+
[1m[35mSQL (2.5ms)[0m DELETE FROM "books"
|
2666
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
2667
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
2668
|
+
[1m[36mSQL (2.6ms)[0m [1mDELETE FROM "books"[0m
|
2669
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
2670
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
2671
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books"
|
2672
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
2673
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
2674
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
2675
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
2676
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
2677
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books"
|
2678
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
2679
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
2680
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
2681
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
2682
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
2683
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books"
|
2684
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
2685
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
2686
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
2687
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
2688
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
2689
|
+
[1m[35mSQL (1.5ms)[0m DELETE FROM "books"
|
2690
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
2691
|
+
[1m[35mSQL (2.6ms)[0m DELETE FROM "books_assets"
|
2692
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
2693
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2694
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2695
|
+
[1m[35m (1.5ms)[0m commit transaction
|
2696
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2697
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 1
|
2698
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 1], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2699
|
+
[paperclip] Saving attachments.
|
2700
|
+
[1m[35m (2.8ms)[0m commit transaction
|
2701
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
2702
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
2703
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
2704
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2705
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2706
|
+
[1m[35m (1.9ms)[0m commit transaction
|
2707
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2708
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 2
|
2709
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 2], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2710
|
+
[paperclip] Saving attachments.
|
2711
|
+
[1m[35m (2.1ms)[0m commit transaction
|
2712
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
2713
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
2714
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
2715
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2716
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2717
|
+
[1m[35m (1.5ms)[0m commit transaction
|
2718
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2719
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 3
|
2720
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 3], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2721
|
+
[paperclip] Saving attachments.
|
2722
|
+
[1m[35m (1.9ms)[0m commit transaction
|
2723
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
2724
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
2725
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
2726
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2727
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "rt_tipi_pannello" ("name") VALUES (?)[0m [["name", "Suntech STP"]]
|
2728
|
+
[1m[35m (1.8ms)[0m commit transaction
|
2729
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2730
|
+
[1m[35mTipiPannello::Documenti::SchedaTecnica Load (0.3ms)[0m SELECT "rt_tipi_pannello_assets".* FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP' LIMIT 1
|
2731
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("rt_tipi_pannello_assets"."counter") AS max_id FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP'[0m
|
2732
|
+
[1m[35mSQL (1.6ms)[0m INSERT INTO "rt_tipi_pannello_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "counter", "displayable", "tipo_pannello_name", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:57:22 UTC +00:00], ["counter", 1], ["displayable", false], ["tipo_pannello_name", "Suntech STP"], ["type", "TipiPannello::Documenti::SchedaTecnica"]]
|
2733
|
+
[paperclip] Saving attachments.
|
2734
|
+
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
2735
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
2736
|
+
[1m[36mSQL (2.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
2737
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books"
|
2738
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2739
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
2740
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
2741
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2742
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 4[0m
|
2743
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 4], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2744
|
+
[paperclip] Saving attachments.
|
2745
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
2746
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
2747
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
2748
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books"
|
2749
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL[0m
|
2750
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
2751
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
2752
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
2753
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2754
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL
|
2755
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2756
|
+
[paperclip] Saving attachments.
|
2757
|
+
[1m[35m (2.0ms)[0m commit transaction
|
2758
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2759
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL
|
2760
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2761
|
+
[paperclip] Saving attachments.
|
2762
|
+
[1m[35m (2.5ms)[0m commit transaction
|
2763
|
+
[1m[36mBooks::Asset Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1[0m [["id", 5]]
|
2764
|
+
[1m[35mBooks::Asset Load (0.1ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1 [["id", 6]]
|
2765
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
2766
|
+
[1m[35mSQL (2.6ms)[0m DELETE FROM "books_assets"
|
2767
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
2768
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2769
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2770
|
+
[1m[35m (1.8ms)[0m commit transaction
|
2771
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2772
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 5
|
2773
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:57:22 UTC +00:00], ["book_id", 5], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2774
|
+
[paperclip] Saving attachments.
|
2775
|
+
[1m[35m (2.1ms)[0m commit transaction
|
2776
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
2777
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
2778
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
2779
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2780
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2781
|
+
[1m[35m (4.3ms)[0m commit transaction
|
2782
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2783
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 6
|
2784
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:57:22 UTC +00:00], ["book_id", 6], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2785
|
+
[paperclip] Saving attachments.
|
2786
|
+
[1m[35m (2.2ms)[0m commit transaction
|
2787
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
2788
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
2789
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
2790
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2791
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "chapters" ("name") VALUES (?)[0m [["name", "a new chapter"]]
|
2792
|
+
[1m[35m (1.8ms)[0m commit transaction
|
2793
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2794
|
+
[1m[35m (0.3ms)[0m SELECT MAX("chapters_assets"."counter") AS max_id FROM "chapters_assets" WHERE "chapters_assets"."type" IN ('Chapters::Assets::Paragraph') AND "chapters_assets"."chapter_name" = 'a new chapter'
|
2795
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:57:22 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 1], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
|
2796
|
+
[paperclip] Saving attachments.
|
2797
|
+
[1m[35m (2.1ms)[0m commit transaction
|
2798
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
2799
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
2800
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
2801
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2802
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "chapters" ("name") VALUES (?)[0m [["name", "a new chapter"]]
|
2803
|
+
[1m[35m (2.0ms)[0m commit transaction
|
2804
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2805
|
+
[1m[35m (0.7ms)[0m SELECT MAX("chapters_assets"."counter") AS max_id FROM "chapters_assets" WHERE "chapters_assets"."type" IN ('Chapters::Assets::Paragraph') AND "chapters_assets"."chapter_name" = 'a new chapter'
|
2806
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:57:22 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 2], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
|
2807
|
+
[paperclip] Saving attachments.
|
2808
|
+
[1m[35m (2.1ms)[0m commit transaction
|
2809
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
2810
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
2811
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books"[0m
|
2812
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
2813
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
2814
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books"
|
2815
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
2816
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
2817
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
2818
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2819
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2820
|
+
[1m[35m (1.9ms)[0m commit transaction
|
2821
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25631-4hbfp2[0]'
|
2822
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25631-4hbfp2[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-vrxrnl'
|
2823
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-vrxrnl20120525-25631-13q4t6q[0]'
|
2824
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-vrxrnl20120525-25631-13q4t6q[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-vrxrnl20120525-25631-13q4t6q20120525-25631-bz6wn7'
|
2825
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-vrxrnl20120525-25631-13q4t6q[0]'
|
2826
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-vrxrnl20120525-25631-13q4t6q[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-vrxrnl20120525-25631-13q4t6q20120525-25631-1973ddb'
|
2827
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2828
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 7
|
2829
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Fri, 25 May 2012 10:57:23 UTC +00:00], ["book_id", 7], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
2830
|
+
[paperclip] Saving attachments.
|
2831
|
+
[1m[35m (1.9ms)[0m commit transaction
|
2832
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
2833
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
2834
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books"[0m
|
2835
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2836
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2837
|
+
[1m[35m (1.5ms)[0m commit transaction
|
2838
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25631-3r2g2c[0]'
|
2839
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25631-3r2g2c[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-13mnh2d'
|
2840
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-13mnh2d20120525-25631-1b479j2[0]'
|
2841
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-13mnh2d20120525-25631-1b479j2[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-13mnh2d20120525-25631-1b479j220120525-25631-1s83a1t'
|
2842
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-13mnh2d20120525-25631-1b479j2[0]'
|
2843
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-13mnh2d20120525-25631-1b479j2[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-13mnh2d20120525-25631-1b479j220120525-25631-1q40zk7'
|
2844
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2845
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 8
|
2846
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Fri, 25 May 2012 10:57:23 UTC +00:00], ["book_id", 8], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
2847
|
+
[paperclip] Saving attachments.
|
2848
|
+
[1m[35m (2.0ms)[0m commit transaction
|
2849
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
2850
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
2851
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books"[0m
|
2852
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
2853
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
2854
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books"
|
2855
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
2856
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
2857
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
2858
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
2859
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
2860
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
2861
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
2862
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
2863
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
2864
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
2865
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
2866
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books"
|
2867
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
2868
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
2869
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
2870
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
2871
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
2872
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books"
|
2873
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
2874
|
+
[1m[35mSQL (2.6ms)[0m DELETE FROM "books_assets"
|
2875
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
2876
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2877
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2878
|
+
[1m[35m (2.0ms)[0m commit transaction
|
2879
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2880
|
+
[1m[35mBooks::Assets::UniqueTestDoc Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
|
2881
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9[0m
|
2882
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 9], ["counter", 1], ["displayable", false], ["type", "Books::Assets::UniqueTestDoc"]]
|
2883
|
+
[paperclip] Saving attachments.
|
2884
|
+
[1m[36m (2.5ms)[0m [1mcommit transaction[0m
|
2885
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2886
|
+
[1m[36mBooks::Assets::UniqueTestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1[0m
|
2887
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2888
|
+
[1m[36mBooks::Assets::UniqueTestDoc Load (0.6ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1[0m
|
2889
|
+
[1m[35mBooks::Assets::UniqueTestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
|
2890
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
2891
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
2892
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
2893
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2894
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2895
|
+
[1m[35m (1.7ms)[0m commit transaction
|
2896
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2897
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10
|
2898
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 10], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2899
|
+
[paperclip] Saving attachments.
|
2900
|
+
[1m[35m (2.0ms)[0m commit transaction
|
2901
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2902
|
+
[1m[35m (0.6ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10
|
2903
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 10], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2904
|
+
[paperclip] Saving attachments.
|
2905
|
+
[1m[35m (2.1ms)[0m commit transaction
|
2906
|
+
[1m[36mSQL (2.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
2907
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
2908
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
2909
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2910
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2911
|
+
[1m[35m (1.7ms)[0m commit transaction
|
2912
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2913
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 11
|
2914
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:57:23 UTC +00:00], ["book_id", 11], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2915
|
+
[paperclip] Saving attachments.
|
2916
|
+
[1m[35m (2.3ms)[0m commit transaction
|
2917
|
+
Processing by Books::AssetsController#index as HTML
|
2918
|
+
Parameters: {"multiple"=>true, "book_id"=>"11", "type"=>"Assets/TestDoc"}
|
2919
|
+
[1m[36mBook Load (0.3ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "11"]]
|
2920
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (3.0ms)
|
2921
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 11
|
2922
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.8ms)
|
2923
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (4.1ms)
|
2924
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (10.7ms)
|
2925
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/index.html.erb (17.4ms)
|
2926
|
+
Completed 200 OK in 31ms (Views: 27.7ms | ActiveRecord: 0.6ms)
|
2927
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
2928
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
2929
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
2930
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2931
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2932
|
+
[1m[35m (1.7ms)[0m commit transaction
|
2933
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2934
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 12
|
2935
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:57:23 UTC +00:00], ["book_id", 12], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2936
|
+
[paperclip] Saving attachments.
|
2937
|
+
[1m[35m (2.0ms)[0m commit transaction
|
2938
|
+
Processing by Books::AssetsController#index as HTML
|
2939
|
+
Parameters: {"target"=>"target_div", "book_id"=>"12", "type"=>"Assets/TestDoc"}
|
2940
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "12"]]
|
2941
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.2ms)
|
2942
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 12
|
2943
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (1.9ms)
|
2944
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.2ms)
|
2945
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.7ms)
|
2946
|
+
Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.5ms)
|
2947
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
2948
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
2949
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
2950
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2951
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2952
|
+
[1m[35m (1.7ms)[0m commit transaction
|
2953
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2954
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 13
|
2955
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:57:23 UTC +00:00], ["book_id", 13], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2956
|
+
[paperclip] Saving attachments.
|
2957
|
+
[1m[35m (1.9ms)[0m commit transaction
|
2958
|
+
Processing by Books::AssetsController#index as HTML
|
2959
|
+
Parameters: {"target"=>"target_div", "book_id"=>"13", "type"=>"Assets/TestDoc"}
|
2960
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "13"]]
|
2961
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.2ms)
|
2962
|
+
[1m[35mBooks::Assets::TestDoc Load (0.4ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 13
|
2963
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (1.9ms)
|
2964
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.2ms)
|
2965
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.8ms)
|
2966
|
+
Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.5ms)
|
2967
|
+
[1m[36mSQL (3.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
2968
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
2969
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books"[0m
|
2970
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2971
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2972
|
+
[1m[35m (1.7ms)[0m commit transaction
|
2973
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2974
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 14
|
2975
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:57:23 UTC +00:00], ["book_id", 14], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2976
|
+
[paperclip] Saving attachments.
|
2977
|
+
[1m[35m (2.1ms)[0m commit transaction
|
2978
|
+
Processing by Books::AssetsController#index as HTML
|
2979
|
+
Parameters: {"target"=>"target_div", "book_id"=>"14", "type"=>"Assets/TestDoc"}
|
2980
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "14"]]
|
2981
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.3ms)
|
2982
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 14
|
2983
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.2ms)
|
2984
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.5ms)
|
2985
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (5.1ms)
|
2986
|
+
Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.5ms)
|
2987
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
2988
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
2989
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
2990
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2991
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
2992
|
+
[1m[35m (2.4ms)[0m commit transaction
|
2993
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2994
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 15
|
2995
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:57:23 UTC +00:00], ["book_id", 15], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
2996
|
+
[paperclip] Saving attachments.
|
2997
|
+
[1m[35m (2.0ms)[0m commit transaction
|
2998
|
+
Processing by Books::AssetsController#index as HTML
|
2999
|
+
Parameters: {"target"=>"target_div", "book_id"=>"15", "type"=>"Assets/TestDoc"}
|
3000
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "15"]]
|
3001
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.2ms)
|
3002
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 15
|
3003
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.0ms)
|
3004
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.3ms)
|
3005
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (5.0ms)
|
3006
|
+
Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.5ms)
|
3007
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
3008
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
3009
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
3010
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3011
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
3012
|
+
[1m[35m (2.0ms)[0m commit transaction
|
3013
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3014
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 16
|
3015
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:57:23 UTC +00:00], ["book_id", 16], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
3016
|
+
[paperclip] Saving attachments.
|
3017
|
+
[1m[35m (2.4ms)[0m commit transaction
|
3018
|
+
Processing by Books::AssetsController#index as JSON
|
3019
|
+
Parameters: {"target"=>"target_div", "book_id"=>"16", "type"=>"Assets/TestDoc"}
|
3020
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "16"]]
|
3021
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 16
|
3022
|
+
Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.5ms)
|
3023
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
3024
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
3025
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
3026
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3027
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
3028
|
+
[1m[35m (1.7ms)[0m commit transaction
|
3029
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3030
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 17
|
3031
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:57:24 UTC +00:00], ["book_id", 17], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
3032
|
+
[paperclip] Saving attachments.
|
3033
|
+
[1m[35m (2.1ms)[0m commit transaction
|
3034
|
+
Processing by Books::AssetsController#index as JSON
|
3035
|
+
Parameters: {"target"=>"target_div", "book_id"=>"17", "type"=>"Assets/TestDoc"}
|
3036
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "17"]]
|
3037
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 17
|
3038
|
+
Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.4ms)
|
3039
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
3040
|
+
[1m[35mSQL (3.2ms)[0m DELETE FROM "books_assets"
|
3041
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
3042
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3043
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
3044
|
+
[1m[35m (1.6ms)[0m commit transaction
|
3045
|
+
Processing by Books::AssetsController#create as JS
|
3046
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007f9471a51358 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25631-1iaglhz>>, "book_id"=>"18", "type"=>"Assets/TestDoc"}
|
3047
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "18"]]
|
3048
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3049
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 18[0m
|
3050
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:57:24 UTC +00:00], ["book_id", 18], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
3051
|
+
[paperclip] Saving attachments.
|
3052
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
3053
|
+
[1m[35mBooks::Assets::TestDoc Load (0.4ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 18
|
3054
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (3.4ms)
|
3055
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (5.3ms)
|
3056
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (7.1ms)
|
3057
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (13.6ms)
|
3058
|
+
Completed 200 OK in 31ms (Views: 19.6ms | ActiveRecord: 3.4ms)
|
3059
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
3060
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
3061
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
3062
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3063
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
3064
|
+
[1m[35m (1.9ms)[0m commit transaction
|
3065
|
+
Processing by Books::AssetsController#create as JS
|
3066
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007f9473baf4c8 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25631-di19ru>>, "book_id"=>"19", "type"=>"Assets/TestDoc"}
|
3067
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "19"]]
|
3068
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3069
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 19[0m
|
3070
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:57:24 UTC +00:00], ["book_id", 19], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
3071
|
+
[paperclip] Saving attachments.
|
3072
|
+
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
3073
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 19
|
3074
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.3ms)
|
3075
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.1ms)
|
3076
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.4ms)
|
3077
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.3ms)
|
3078
|
+
Completed 200 OK in 17ms (Views: 6.2ms | ActiveRecord: 3.5ms)
|
3079
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
3080
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books_assets"
|
3081
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
3082
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3083
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
3084
|
+
[1m[35m (1.5ms)[0m commit transaction
|
3085
|
+
Processing by Books::AssetsController#create as JS
|
3086
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007f9472b5d430 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25631-1i5n6qk>>, "book_id"=>"20", "type"=>"Assets/TestDoc"}
|
3087
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "20"]]
|
3088
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3089
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 20[0m
|
3090
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:57:24 UTC +00:00], ["book_id", 20], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
3091
|
+
[paperclip] Saving attachments.
|
3092
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
3093
|
+
[1m[35mBooks::Assets::TestDoc Load (0.4ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 20
|
3094
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.4ms)
|
3095
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.0ms)
|
3096
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.2ms)
|
3097
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.1ms)
|
3098
|
+
Completed 200 OK in 17ms (Views: 5.9ms | ActiveRecord: 3.3ms)
|
3099
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
3100
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
3101
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
3102
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3103
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
3104
|
+
[1m[35m (1.5ms)[0m commit transaction
|
3105
|
+
Processing by Books::AssetsController#create as JS
|
3106
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007f94756953c8 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25631-1f0ga3j>>, "book_id"=>"21", "type"=>"Assets/TestDoc"}
|
3107
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "21"]]
|
3108
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3109
|
+
[1m[36m (0.4ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 21[0m
|
3110
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:57:24 UTC +00:00], ["book_id", 21], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
3111
|
+
[paperclip] Saving attachments.
|
3112
|
+
[1m[36m (2.2ms)[0m [1mcommit transaction[0m
|
3113
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 21
|
3114
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.3ms)
|
3115
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.0ms)
|
3116
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.3ms)
|
3117
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.1ms)
|
3118
|
+
Completed 200 OK in 19ms (Views: 6.1ms | ActiveRecord: 3.7ms)
|
3119
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
3120
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
3121
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
3122
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3123
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
3124
|
+
[1m[35m (1.7ms)[0m commit transaction
|
3125
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3126
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 22
|
3127
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:57:24 UTC +00:00], ["book_id", 22], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
3128
|
+
[paperclip] Saving attachments.
|
3129
|
+
[1m[35m (1.8ms)[0m commit transaction
|
3130
|
+
Processing by Books::AssetsController#destroy as JS
|
3131
|
+
Parameters: {"type"=>"Assets/TestDoc", "target"=>"target_div", "book_id"=>"22", "asset_id"=>"25"}
|
3132
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "22"]]
|
3133
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 25 LIMIT 1
|
3134
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3135
|
+
[paperclip] Scheduling attachments for deletion.
|
3136
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 25]]
|
3137
|
+
[paperclip] Deleting attachments.
|
3138
|
+
[paperclip] deleting public/system/books/22/assets/test_doc.jpg
|
3139
|
+
[1m[36m (2.2ms)[0m [1mcommit transaction[0m
|
3140
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 22
|
3141
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.5ms)
|
3142
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
3143
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.2ms)
|
3144
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.2ms)
|
3145
|
+
Completed 200 OK in 16ms (Views: 6.0ms | ActiveRecord: 3.5ms)
|
3146
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
3147
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
3148
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
3149
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3150
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
3151
|
+
[1m[35m (1.7ms)[0m commit transaction
|
3152
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3153
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 23
|
3154
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:57:24 UTC +00:00], ["book_id", 23], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
3155
|
+
[paperclip] Saving attachments.
|
3156
|
+
[1m[35m (1.8ms)[0m commit transaction
|
3157
|
+
Processing by Books::AssetsController#destroy as JS
|
3158
|
+
Parameters: {"type"=>"Assets/TestDoc", "target"=>"target_div", "book_id"=>"23", "asset_id"=>"26"}
|
3159
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "23"]]
|
3160
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 26 LIMIT 1
|
3161
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3162
|
+
[paperclip] Scheduling attachments for deletion.
|
3163
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 26]]
|
3164
|
+
[paperclip] Deleting attachments.
|
3165
|
+
[paperclip] deleting public/system/books/23/assets/test_doc.jpg
|
3166
|
+
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
3167
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 23
|
3168
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.8ms)
|
3169
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
3170
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.3ms)
|
3171
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.8ms)
|
3172
|
+
Completed 200 OK in 14ms (Views: 4.7ms | ActiveRecord: 3.8ms)
|
3173
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
3174
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
3175
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
3176
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3177
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
3178
|
+
[1m[35m (1.6ms)[0m commit transaction
|
3179
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3180
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 24
|
3181
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:57:24 UTC +00:00], ["book_id", 24], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
3182
|
+
[paperclip] Saving attachments.
|
3183
|
+
[1m[35m (1.8ms)[0m commit transaction
|
3184
|
+
Processing by Books::AssetsController#destroy as JS
|
3185
|
+
Parameters: {"type"=>"Assets/TestDoc", "target"=>"target_div", "book_id"=>"24", "asset_id"=>"27"}
|
3186
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "24"]]
|
3187
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 27 LIMIT 1
|
3188
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3189
|
+
[paperclip] Scheduling attachments for deletion.
|
3190
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 27]]
|
3191
|
+
[paperclip] Deleting attachments.
|
3192
|
+
[paperclip] deleting public/system/books/24/assets/test_doc.jpg
|
3193
|
+
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
3194
|
+
[1m[35mBooks::Assets::TestDoc Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 24
|
3195
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.4ms)
|
3196
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
3197
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.2ms)
|
3198
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.1ms)
|
3199
|
+
Completed 200 OK in 13ms (Views: 3.7ms | ActiveRecord: 3.8ms)
|
3200
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
3201
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
3202
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
3203
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3204
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
3205
|
+
[1m[35m (1.7ms)[0m commit transaction
|
3206
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3207
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 25
|
3208
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:57:24 UTC +00:00], ["book_id", 25], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
3209
|
+
[paperclip] Saving attachments.
|
3210
|
+
[1m[35m (2.1ms)[0m commit transaction
|
3211
|
+
Processing by Books::AssetsController#destroy as JS
|
3212
|
+
Parameters: {"type"=>"Assets/TestDoc", "target"=>"target_div", "book_id"=>"25", "asset_id"=>"28"}
|
3213
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "25"]]
|
3214
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 28 LIMIT 1
|
3215
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3216
|
+
[paperclip] Scheduling attachments for deletion.
|
3217
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 28]]
|
3218
|
+
[paperclip] Deleting attachments.
|
3219
|
+
[paperclip] deleting public/system/books/25/assets/test_doc.jpg
|
3220
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
3221
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 25
|
3222
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.4ms)
|
3223
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
3224
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.2ms)
|
3225
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.1ms)
|
3226
|
+
Completed 200 OK in 13ms (Views: 3.9ms | ActiveRecord: 3.1ms)
|
3227
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
3228
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
3229
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books"[0m
|
3230
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3231
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
3232
|
+
[1m[35m (2.1ms)[0m commit transaction
|
3233
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3234
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 26
|
3235
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 25 May 2012 10:57:24 UTC +00:00], ["book_id", 26], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
3236
|
+
[paperclip] Saving attachments.
|
3237
|
+
[1m[35m (2.1ms)[0m commit transaction
|
3238
|
+
Processing by Books::AssetsController#get as HTML
|
3239
|
+
Parameters: {"book_id"=>"26", "asset_id"=>"29", "type"=>"Assets/TestDoc"}
|
3240
|
+
[1m[36mBooks::Assets::TestDoc Load (0.4ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? LIMIT 1[0m [["id", "29"]]
|
3241
|
+
Sent file public/system/books/26/assets/test_doc.jpg (0.2ms)
|
3242
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
|
3243
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
3244
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
3245
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books"
|
3246
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3247
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
3248
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
3249
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25631-17ezegi[0]'
|
3250
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25631-17ezegi[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-1r4z7m7'
|
3251
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-1r4z7m720120525-25631-xhp388[0]'
|
3252
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-1r4z7m720120525-25631-xhp388[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-1r4z7m720120525-25631-xhp38820120525-25631-eeg20z'
|
3253
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-1r4z7m720120525-25631-xhp388[0]'
|
3254
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-1r4z7m720120525-25631-xhp388[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-1r4z7m720120525-25631-xhp38820120525-25631-a2xz96'
|
3255
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3256
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 27[0m
|
3257
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Fri, 25 May 2012 10:57:24 UTC +00:00], ["book_id", 27], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
3258
|
+
[paperclip] Saving attachments.
|
3259
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
3260
|
+
Processing by Books::AssetsController#get as HTML
|
3261
|
+
Parameters: {"book_id"=>"27", "asset_id"=>"30", "style"=>"thumb", "type"=>"Assets/TestImage"}
|
3262
|
+
[1m[35mBooks::Assets::TestImage Load (0.4ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."id" = ? LIMIT 1 [["id", "30"]]
|
3263
|
+
Sent file public/system/books/27/assets/thumb/test_image.jpg (0.2ms)
|
3264
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.4ms)
|
3265
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
3266
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
3267
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
3268
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3269
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
3270
|
+
[1m[35m (1.6ms)[0m commit transaction
|
3271
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25631-kwz0mj[0]'
|
3272
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25631-kwz0mj[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-1z0nsf9'
|
3273
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-1z0nsf920120525-25631-141yik2[0]'
|
3274
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-1z0nsf920120525-25631-141yik2[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-1z0nsf920120525-25631-141yik220120525-25631-u26xp1'
|
3275
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-1z0nsf920120525-25631-141yik2[0]'
|
3276
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-1z0nsf920120525-25631-141yik2[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-1z0nsf920120525-25631-141yik220120525-25631-1tz2yz7'
|
3277
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
3278
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 28
|
3279
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Fri, 25 May 2012 10:57:24 UTC +00:00], ["book_id", 28], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
3280
|
+
[paperclip] Saving attachments.
|
3281
|
+
[1m[35m (2.4ms)[0m commit transaction
|
3282
|
+
Processing by Books::AssetsController#get as HTML
|
3283
|
+
Parameters: {"book_id"=>"28", "asset_id"=>"31", "style"=>"thumb", "type"=>"Assets/TestImage"}
|
3284
|
+
[1m[36mBooks::Assets::TestImage Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."id" = ? LIMIT 1[0m [["id", "31"]]
|
3285
|
+
Sent file public/system/books/28/assets/thumb/test_image.jpg (0.2ms)
|
3286
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
|
3287
|
+
[32mCommand[0m :: identify -format %wx%h '/opt/code/fractalgarden/acts_as_assets/spec/temp/test.jpg[0]'
|
3288
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
3289
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
3290
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books"
|
3291
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3292
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
3293
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
3294
|
+
Processing by Books::AssetsController#get as HTML
|
3295
|
+
Parameters: {"book_id"=>"29", "asset_id"=>"123456789", "type"=>"Assets/TestDoc"}
|
3296
|
+
[1m[35mBooks::Assets::TestDoc Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? LIMIT 1 [["id", "123456789"]]
|
3297
|
+
Completed 404 Not Found in 8ms (Views: 6.4ms | ActiveRecord: 0.2ms)
|
3298
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
3299
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
3300
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
3301
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books_assets"
|
3302
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
3303
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books"
|
3304
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
3305
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
3306
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
3307
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
3308
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
3309
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books"
|
3310
|
+
[1m[36mSQL (3.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
3311
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
3312
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
3313
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
3314
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
3315
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books"
|
3316
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
3317
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
3318
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books"[0m
|