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.
@@ -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="multiple assets">
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} %>
@@ -1,3 +1,3 @@
1
1
  module ActsAsAssets
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
Binary file
@@ -1363,3 +1363,1956 @@ Completed 404 Not Found in 10ms (Views: 7.3ms | ActiveRecord: 0.2ms)
1363
1363
  SQL (0.3ms) 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
   (1.9ms) commit transaction
1366
+  (0.1ms) select sqlite_version(*)
1367
+  (22.2ms) DROP TABLE "books"
1368
+  (2.5ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) 
1369
+  (2.7ms) DROP TABLE "books_assets"
1370
+  (3.3ms) CREATE 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) 
1371
+  (2.8ms) DROP TABLE "chapters"
1372
+  (2.7ms) CREATE TABLE "chapters" ("name" varchar(255) NOT NULL) 
1373
+  (3.2ms) DROP TABLE "chapters_assets"
1374
+  (2.3ms) CREATE 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) 
1375
+  (2.6ms) DROP TABLE "rt_tipi_pannello"
1376
+  (2.9ms) CREATE TABLE "rt_tipi_pannello" ("name" varchar(255) NOT NULL) 
1377
+  (2.8ms) DROP TABLE "rt_tipi_pannello_assets"
1378
+  (3.0ms) CREATE 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)) 
1379
+ SQL (3.3ms) DELETE FROM "books_assets"
1380
+ SQL (2.5ms) DELETE FROM "books_assets"
1381
+ SQL (2.3ms) DELETE FROM "books"
1382
+ SQL (2.2ms) DELETE FROM "books_assets"
1383
+ SQL (2.7ms) DELETE FROM "books_assets"
1384
+ SQL (1.7ms) DELETE FROM "books"
1385
+ SQL (2.0ms) DELETE FROM "books_assets"
1386
+ SQL (2.4ms) DELETE FROM "books_assets"
1387
+ SQL (1.7ms) DELETE FROM "books"
1388
+ SQL (2.5ms) DELETE FROM "books_assets"
1389
+ SQL (2.3ms) DELETE FROM "books_assets"
1390
+ SQL (2.1ms) DELETE FROM "books"
1391
+ SQL (2.3ms) DELETE FROM "books_assets"
1392
+ SQL (2.0ms) DELETE FROM "books_assets"
1393
+ SQL (1.7ms) DELETE FROM "books"
1394
+ SQL (2.5ms) DELETE FROM "books_assets"
1395
+ SQL (2.2ms) DELETE FROM "books_assets"
1396
+ SQL (1.9ms) DELETE FROM "books"
1397
+ SQL (2.6ms) DELETE FROM "books_assets"
1398
+ SQL (2.7ms) DELETE FROM "books_assets"
1399
+ SQL (1.9ms) DELETE FROM "books"
1400
+ SQL (2.5ms) DELETE FROM "books_assets"
1401
+ SQL (2.5ms) DELETE FROM "books_assets"
1402
+ SQL (1.7ms) DELETE FROM "books"
1403
+ SQL (2.7ms) DELETE FROM "books_assets"
1404
+ SQL (2.4ms) DELETE FROM "books_assets"
1405
+ SQL (1.8ms) DELETE FROM "books"
1406
+ SQL (2.7ms) DELETE FROM "books_assets"
1407
+ SQL (2.5ms) DELETE FROM "books_assets"
1408
+ SQL (2.5ms) DELETE FROM "books"
1409
+  (0.1ms) begin transaction
1410
+ SQL (0.5ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1411
+  (1.8ms) commit transaction
1412
+  (0.1ms) begin transaction
1413
+  (0.4ms) 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
+ SQL (0.4ms) 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", 1], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
1415
+ [paperclip] Saving attachments.
1416
+  (2.1ms) commit transaction
1417
+ SQL (2.2ms) DELETE FROM "books_assets"
1418
+ SQL (2.2ms) DELETE FROM "books_assets"
1419
+ SQL (2.0ms) DELETE FROM "books"
1420
+  (0.1ms) begin transaction
1421
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1422
+  (1.5ms) commit transaction
1423
+  (0.1ms) begin transaction
1424
+  (0.3ms) 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
+ SQL (0.3ms) 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", 2], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
1426
+ [paperclip] Saving attachments.
1427
+  (1.9ms) commit transaction
1428
+ SQL (2.3ms) DELETE FROM "books_assets"
1429
+ SQL (2.7ms) DELETE FROM "books_assets"
1430
+ SQL (1.8ms) DELETE FROM "books"
1431
+  (0.1ms) begin transaction
1432
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1433
+  (1.5ms) commit transaction
1434
+  (0.0ms) begin transaction
1435
+  (0.3ms) 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
+ SQL (0.6ms) 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", 3], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
1437
+ [paperclip] Saving attachments.
1438
+  (1.7ms) commit transaction
1439
+ SQL (2.2ms) DELETE FROM "books_assets"
1440
+ SQL (1.7ms) DELETE FROM "books_assets"
1441
+ SQL (2.1ms) DELETE FROM "books"
1442
+  (0.1ms) begin transaction
1443
+ SQL (0.4ms) INSERT INTO "rt_tipi_pannello" ("name") VALUES (?) [["name", "Suntech STP"]]
1444
+  (1.9ms) commit transaction
1445
+  (0.1ms) begin transaction
1446
+ TipiPannello::Documenti::SchedaTecnica Load (0.2ms) 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
+  (0.3ms) SELECT 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'
1448
+ SQL (30.5ms) 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
+  (2.1ms) commit transaction
1451
+ SQL (2.3ms) DELETE FROM "books_assets"
1452
+ SQL (2.3ms) DELETE FROM "books_assets"
1453
+ SQL (2.1ms) DELETE FROM "books"
1454
+  (0.1ms) begin transaction
1455
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1456
+  (1.6ms) commit transaction
1457
+  (0.0ms) begin transaction
1458
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 4
1459
+ SQL (0.3ms) 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
+  (1.9ms) commit transaction
1462
+ SQL (2.3ms) DELETE FROM "books_assets"
1463
+ SQL (2.3ms) DELETE FROM "books_assets"
1464
+ SQL (2.1ms) DELETE FROM "books"
1465
+  (0.2ms) 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
1466
+ SQL (1.9ms) DELETE FROM "books_assets"
1467
+ SQL (2.1ms) DELETE FROM "books_assets"
1468
+ SQL (1.6ms) DELETE FROM "books"
1469
+  (0.1ms) begin transaction
1470
+  (0.2ms) 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
+ SQL (0.3ms) 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", nil], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
1472
+ [paperclip] Saving attachments.
1473
+  (2.0ms) commit transaction
1474
+  (0.1ms) begin transaction
1475
+  (0.3ms) 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
+ SQL (0.3ms) 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", nil], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
1477
+ [paperclip] Saving attachments.
1478
+  (2.0ms) commit transaction
1479
+ Books::Asset Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1 [["id", 5]]
1480
+ Books::Asset Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1 [["id", 6]]
1481
+ SQL (2.2ms) DELETE FROM "books_assets"
1482
+ SQL (2.0ms) DELETE FROM "books_assets"
1483
+ SQL (2.0ms) DELETE FROM "books"
1484
+  (0.1ms) begin transaction
1485
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1486
+  (2.1ms) commit transaction
1487
+  (0.1ms) begin transaction
1488
+  (0.3ms) 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
+ SQL (0.4ms) 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:21 UTC +00:00], ["book_id", 5], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
1490
+ [paperclip] Saving attachments.
1491
+  (2.2ms) commit transaction
1492
+ SQL (2.2ms) DELETE FROM "books_assets"
1493
+ SQL (1.7ms) DELETE FROM "books_assets"
1494
+ SQL (1.7ms) DELETE FROM "books"
1495
+  (0.1ms) begin transaction
1496
+ SQL (0.6ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1497
+  (1.5ms) commit transaction
1498
+  (0.1ms) begin transaction
1499
+  (0.3ms) 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
+ SQL (0.9ms) 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:21 UTC +00:00], ["book_id", 6], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
1501
+ [paperclip] Saving attachments.
1502
+  (1.9ms) commit transaction
1503
+ SQL (2.1ms) DELETE FROM "books_assets"
1504
+ SQL (2.2ms) DELETE FROM "books_assets"
1505
+ SQL (1.9ms) DELETE FROM "books"
1506
+  (0.1ms) begin transaction
1507
+ SQL (0.4ms) INSERT INTO "chapters" ("name") VALUES (?) [["name", "a new chapter"]]
1508
+  (1.7ms) commit transaction
1509
+  (0.1ms) begin transaction
1510
+  (0.6ms) 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
+ SQL (0.6ms) INSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "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:21 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 1], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
1512
+ [paperclip] Saving attachments.
1513
+  (1.7ms) commit transaction
1514
+ SQL (2.3ms) DELETE FROM "books_assets"
1515
+ SQL (2.2ms) DELETE FROM "books_assets"
1516
+ SQL (2.3ms) DELETE FROM "books"
1517
+  (0.1ms) begin transaction
1518
+ SQL (0.3ms) INSERT INTO "chapters" ("name") VALUES (?) [["name", "a new chapter"]]
1519
+  (2.0ms) commit transaction
1520
+  (0.1ms) begin transaction
1521
+  (0.4ms) 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
+ SQL (0.4ms) INSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "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:21 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 2], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
1523
+ [paperclip] Saving attachments.
1524
+  (2.0ms) commit transaction
1525
+ SQL (2.0ms) DELETE FROM "books_assets"
1526
+ SQL (2.2ms) DELETE FROM "books_assets"
1527
+ SQL (2.1ms) DELETE FROM "books"
1528
+ SQL (2.1ms) DELETE FROM "books_assets"
1529
+ SQL (2.0ms) DELETE FROM "books_assets"
1530
+ SQL (2.0ms) DELETE FROM "books"
1531
+ SQL (1.9ms) DELETE FROM "books_assets"
1532
+ SQL (2.0ms) DELETE FROM "books_assets"
1533
+ SQL (2.0ms) DELETE FROM "books"
1534
+  (0.1ms) begin transaction
1535
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1536
+  (2.2ms) commit transaction
1537
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25478-so8d1j[0]'
1538
+ Command :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25478-so8d1j[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-1xypsx'
1539
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-1xypsx20120525-25478-y5n2hk[0]'
1540
+ Command :: 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
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-1xypsx20120525-25478-y5n2hk[0]'
1542
+ Command :: 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
+  (0.2ms) begin transaction
1544
+  (0.4ms) 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
+ SQL (0.6ms) 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:21 UTC +00:00], ["book_id", 7], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
1546
+ [paperclip] Saving attachments.
1547
+  (18.6ms) commit transaction
1548
+ SQL (2.5ms) DELETE FROM "books_assets"
1549
+ SQL (1.9ms) DELETE FROM "books_assets"
1550
+ SQL (1.9ms) DELETE FROM "books"
1551
+  (0.1ms) begin transaction
1552
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1553
+  (2.2ms) commit transaction
1554
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25478-byun4i[0]'
1555
+ Command :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25478-byun4i[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-hl0xgx'
1556
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-hl0xgx20120525-25478-1oilfbb[0]'
1557
+ Command :: 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
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-hl0xgx20120525-25478-1oilfbb[0]'
1559
+ Command :: 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
+  (0.2ms) begin transaction
1561
+  (0.4ms) 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
+ SQL (0.6ms) 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:22 UTC +00:00], ["book_id", 8], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
1563
+ [paperclip] Saving attachments.
1564
+  (2.0ms) commit transaction
1565
+ SQL (2.3ms) DELETE FROM "books_assets"
1566
+ SQL (2.2ms) DELETE FROM "books_assets"
1567
+ SQL (1.9ms) DELETE FROM "books"
1568
+ SQL (1.9ms) DELETE FROM "books_assets"
1569
+ SQL (2.0ms) DELETE FROM "books_assets"
1570
+ SQL (1.7ms) DELETE FROM "books"
1571
+ SQL (1.9ms) DELETE FROM "books_assets"
1572
+ SQL (1.7ms) DELETE FROM "books_assets"
1573
+ SQL (1.7ms) DELETE FROM "books"
1574
+ SQL (2.2ms) DELETE FROM "books_assets"
1575
+ SQL (2.3ms) DELETE FROM "books_assets"
1576
+ SQL (1.9ms) DELETE FROM "books"
1577
+ SQL (2.3ms) DELETE FROM "books_assets"
1578
+ SQL (2.3ms) DELETE FROM "books_assets"
1579
+ SQL (1.9ms) DELETE FROM "books"
1580
+ SQL (2.4ms) DELETE FROM "books_assets"
1581
+ SQL (2.2ms) DELETE FROM "books_assets"
1582
+ SQL (2.0ms) DELETE FROM "books"
1583
+ SQL (1.9ms) DELETE FROM "books_assets"
1584
+ SQL (2.1ms) DELETE FROM "books_assets"
1585
+ SQL (2.0ms) DELETE FROM "books"
1586
+ SQL (2.4ms) DELETE FROM "books_assets"
1587
+ SQL (1.9ms) DELETE FROM "books_assets"
1588
+ SQL (1.8ms) DELETE FROM "books"
1589
+ SQL (2.1ms) DELETE FROM "books_assets"
1590
+ SQL (2.5ms) DELETE FROM "books_assets"
1591
+ SQL (2.1ms) DELETE FROM "books"
1592
+  (0.1ms) begin transaction
1593
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1594
+  (1.5ms) commit transaction
1595
+  (0.1ms) begin transaction
1596
+ Books::Assets::UniqueTestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
1597
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9
1598
+ SQL (0.3ms) 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
+  (2.0ms) commit transaction
1601
+  (0.1ms) begin transaction
1602
+ Books::Assets::UniqueTestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
1603
+  (0.1ms) rollback transaction
1604
+ Books::Assets::UniqueTestDoc Load (0.4ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
1605
+ Books::Assets::UniqueTestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
1606
+ SQL (2.2ms) DELETE FROM "books_assets"
1607
+ SQL (2.8ms) DELETE FROM "books_assets"
1608
+ SQL (2.3ms) DELETE FROM "books"
1609
+  (0.1ms) begin transaction
1610
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1611
+  (1.9ms) commit transaction
1612
+  (0.1ms) begin transaction
1613
+  (0.4ms) 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
+ SQL (0.5ms) 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", 10], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
1615
+ [paperclip] Saving attachments.
1616
+  (2.3ms) commit transaction
1617
+  (0.1ms) begin transaction
1618
+  (0.4ms) 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
+ SQL (0.3ms) 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", 10], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
1620
+ [paperclip] Saving attachments.
1621
+  (2.0ms) commit transaction
1622
+ SQL (2.7ms) DELETE FROM "books_assets"
1623
+ SQL (1.9ms) DELETE FROM "books_assets"
1624
+ SQL (1.8ms) DELETE FROM "books"
1625
+  (0.1ms) begin transaction
1626
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1627
+  (1.8ms) commit transaction
1628
+  (0.1ms) begin transaction
1629
+  (0.3ms) 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
+ SQL (0.4ms) 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:22 UTC +00:00], ["book_id", 11], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
1631
+ [paperclip] Saving attachments.
1632
+  (2.2ms) commit transaction
1633
+ Processing by Books::AssetsController#index as HTML
1634
+ Parameters: {"multiple"=>true, "book_id"=>"11", "type"=>"Assets/TestDoc"}
1635
+ Book Load (0.3ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "11"]]
1636
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.8ms) DELETE FROM "books_assets"
1641
+ SQL (2.5ms) DELETE FROM "books_assets"
1642
+ SQL (1.7ms) DELETE FROM "books"
1643
+  (0.1ms) begin transaction
1644
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1645
+  (1.7ms) commit transaction
1646
+  (0.1ms) begin transaction
1647
+  (0.4ms) 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
+ SQL (0.5ms) 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:22 UTC +00:00], ["book_id", 12], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
1649
+ [paperclip] Saving attachments.
1650
+  (2.2ms) commit transaction
1651
+ Processing by Books::AssetsController#index as HTML
1652
+ Parameters: {"target"=>"target_div", "book_id"=>"12", "type"=>"Assets/TestDoc"}
1653
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "12"]]
1654
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.1ms) DELETE FROM "books_assets"
1658
+ SQL (2.2ms) DELETE FROM "books_assets"
1659
+ SQL (2.1ms) DELETE FROM "books"
1660
+  (0.1ms) begin transaction
1661
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1662
+  (1.4ms) commit transaction
1663
+  (0.1ms) begin transaction
1664
+  (0.3ms) 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
+ SQL (0.5ms) 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:22 UTC +00:00], ["book_id", 13], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
1666
+ [paperclip] Saving attachments.
1667
+  (2.0ms) commit transaction
1668
+ Processing by Books::AssetsController#index as HTML
1669
+ Parameters: {"target"=>"target_div", "book_id"=>"13", "type"=>"Assets/TestDoc"}
1670
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "13"]]
1671
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.0ms) DELETE FROM "books_assets"
1675
+ SQL (2.3ms) DELETE FROM "books_assets"
1676
+ SQL (1.9ms) DELETE FROM "books"
1677
+  (0.1ms) begin transaction
1678
+ SQL (0.5ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1679
+  (1.6ms) commit transaction
1680
+  (0.1ms) begin transaction
1681
+  (0.3ms) 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
+ SQL (0.4ms) 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:22 UTC +00:00], ["book_id", 14], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
1683
+ [paperclip] Saving attachments.
1684
+  (2.1ms) commit transaction
1685
+ Processing by Books::AssetsController#index as HTML
1686
+ Parameters: {"target"=>"target_div", "book_id"=>"14", "type"=>"Assets/TestDoc"}
1687
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "14"]]
1688
+ Books::Assets::TestDoc Load (0.4ms) 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
+ SQL (2.0ms) DELETE FROM "books_assets"
1692
+ SQL (1.9ms) DELETE FROM "books_assets"
1693
+ SQL (2.0ms) DELETE FROM "books"
1694
+  (0.1ms) begin transaction
1695
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1696
+  (2.1ms) commit transaction
1697
+  (0.1ms) begin transaction
1698
+  (0.3ms) 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
+ SQL (0.5ms) 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:22 UTC +00:00], ["book_id", 15], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
1700
+ [paperclip] Saving attachments.
1701
+  (1.9ms) commit transaction
1702
+ Processing by Books::AssetsController#index as HTML
1703
+ Parameters: {"target"=>"target_div", "book_id"=>"15", "type"=>"Assets/TestDoc"}
1704
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "15"]]
1705
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (1.9ms) DELETE FROM "books_assets"
1709
+ SQL (2.2ms) DELETE FROM "books_assets"
1710
+ SQL (2.0ms) DELETE FROM "books"
1711
+  (0.1ms) begin transaction
1712
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1713
+  (1.8ms) commit transaction
1714
+  (0.1ms) begin transaction
1715
+  (0.3ms) 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
+ SQL (0.5ms) 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", 16], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
1717
+ [paperclip] Saving attachments.
1718
+  (1.9ms) commit transaction
1719
+ Processing by Books::AssetsController#index as JSON
1720
+ Parameters: {"target"=>"target_div", "book_id"=>"16", "type"=>"Assets/TestDoc"}
1721
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "16"]]
1722
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (1.8ms) DELETE FROM "books_assets"
1725
+ SQL (2.0ms) DELETE FROM "books_assets"
1726
+ SQL (2.1ms) DELETE FROM "books"
1727
+  (0.1ms) begin transaction
1728
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1729
+  (1.8ms) commit transaction
1730
+  (0.1ms) begin transaction
1731
+  (0.3ms) 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
+ SQL (0.5ms) 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", 17], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
1733
+ [paperclip] Saving attachments.
1734
+  (2.2ms) commit transaction
1735
+ Processing by Books::AssetsController#index as JSON
1736
+ Parameters: {"target"=>"target_div", "book_id"=>"17", "type"=>"Assets/TestDoc"}
1737
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "17"]]
1738
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.1ms) DELETE FROM "books_assets"
1741
+ SQL (2.0ms) DELETE FROM "books_assets"
1742
+ SQL (1.9ms) DELETE FROM "books"
1743
+  (0.1ms) begin transaction
1744
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1745
+  (1.8ms) 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
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "18"]]
1749
+  (0.1ms) begin transaction
1750
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 18
1751
+ SQL (0.8ms) 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
+  (1.7ms) commit transaction
1754
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.4ms) DELETE FROM "books_assets"
1758
+ SQL (2.2ms) DELETE FROM "books_assets"
1759
+ SQL (2.3ms) DELETE FROM "books"
1760
+  (0.1ms) begin transaction
1761
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1762
+  (1.6ms) 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
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "19"]]
1766
+  (0.1ms) begin transaction
1767
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 19
1768
+ SQL (0.5ms) 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
+  (2.0ms) commit transaction
1771
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.3ms) DELETE FROM "books_assets"
1775
+ SQL (2.2ms) DELETE FROM "books_assets"
1776
+ SQL (2.2ms) DELETE FROM "books"
1777
+  (0.1ms) begin transaction
1778
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1779
+  (1.7ms) 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
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "20"]]
1783
+  (0.1ms) begin transaction
1784
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 20
1785
+ SQL (0.5ms) 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
+  (2.8ms) commit transaction
1788
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.0ms) DELETE FROM "books_assets"
1792
+ SQL (2.3ms) DELETE FROM "books_assets"
1793
+ SQL (1.9ms) DELETE FROM "books"
1794
+  (0.1ms) begin transaction
1795
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1796
+  (1.9ms) 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
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "21"]]
1800
+  (0.1ms) begin transaction
1801
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 21
1802
+ SQL (0.5ms) 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
+  (2.1ms) commit transaction
1805
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.0ms) DELETE FROM "books_assets"
1809
+ SQL (2.8ms) DELETE FROM "books_assets"
1810
+ SQL (2.0ms) DELETE FROM "books"
1811
+  (0.1ms) begin transaction
1812
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1813
+  (1.8ms) commit transaction
1814
+  (0.1ms) begin transaction
1815
+  (0.3ms) 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
+ SQL (0.4ms) 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", 22], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
1817
+ [paperclip] Saving attachments.
1818
+  (2.0ms) 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
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "22"]]
1822
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 25 LIMIT 1
1823
+  (0.0ms) begin transaction
1824
+ [paperclip] Scheduling attachments for deletion.
1825
+ SQL (0.4ms) 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
+  (1.5ms) commit transaction
1829
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.2ms) DELETE FROM "books_assets"
1833
+ SQL (2.4ms) DELETE FROM "books_assets"
1834
+ SQL (2.1ms) DELETE FROM "books"
1835
+  (0.1ms) begin transaction
1836
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1837
+  (1.6ms) commit transaction
1838
+  (0.1ms) begin transaction
1839
+  (0.3ms) 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
+ SQL (0.4ms) 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", 23], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
1841
+ [paperclip] Saving attachments.
1842
+  (1.8ms) 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
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "23"]]
1846
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 26 LIMIT 1
1847
+  (0.0ms) begin transaction
1848
+ [paperclip] Scheduling attachments for deletion.
1849
+ SQL (0.4ms) 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
+  (1.9ms) commit transaction
1853
+ Books::Assets::TestDoc Load (1.2ms) 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
+ SQL (2.3ms) DELETE FROM "books_assets"
1857
+ SQL (2.4ms) DELETE FROM "books_assets"
1858
+ SQL (2.2ms) DELETE FROM "books"
1859
+  (0.1ms) begin transaction
1860
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1861
+  (1.7ms) commit transaction
1862
+  (0.1ms) begin transaction
1863
+  (0.3ms) 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
+ SQL (0.4ms) 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", 24], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
1865
+ [paperclip] Saving attachments.
1866
+  (1.9ms) 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
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "24"]]
1870
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 27 LIMIT 1
1871
+  (0.0ms) begin transaction
1872
+ [paperclip] Scheduling attachments for deletion.
1873
+ SQL (0.4ms) 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
+  (1.8ms) commit transaction
1877
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (1.9ms) DELETE FROM "books_assets"
1881
+ SQL (2.1ms) DELETE FROM "books_assets"
1882
+ SQL (1.5ms) DELETE FROM "books"
1883
+  (0.1ms) begin transaction
1884
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1885
+  (1.4ms) commit transaction
1886
+  (0.1ms) begin transaction
1887
+  (0.3ms) 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
+ SQL (0.4ms) 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", 25], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
1889
+ [paperclip] Saving attachments.
1890
+  (1.7ms) 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
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "25"]]
1894
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 28 LIMIT 1
1895
+  (0.0ms) begin transaction
1896
+ [paperclip] Scheduling attachments for deletion.
1897
+ SQL (0.4ms) 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
+  (2.3ms) commit transaction
1901
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (1.9ms) DELETE FROM "books_assets"
1905
+ SQL (2.2ms) DELETE FROM "books_assets"
1906
+ SQL (2.0ms) DELETE FROM "books"
1907
+  (0.1ms) begin transaction
1908
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1909
+  (2.0ms) commit transaction
1910
+  (0.1ms) begin transaction
1911
+  (0.4ms) 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
+ SQL (0.4ms) 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", 26], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
1913
+ [paperclip] Saving attachments.
1914
+  (1.9ms) commit transaction
1915
+ Processing by Books::AssetsController#get as HTML
1916
+ Parameters: {"book_id"=>"26", "asset_id"=>"29", "type"=>"Assets/TestDoc"}
1917
+ Books::Assets::TestDoc Load (0.4ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? LIMIT 1 [["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
+ SQL (2.2ms) DELETE FROM "books_assets"
1921
+ SQL (2.2ms) DELETE FROM "books_assets"
1922
+ SQL (1.7ms) DELETE FROM "books"
1923
+  (0.1ms) begin transaction
1924
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1925
+  (1.7ms) commit transaction
1926
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25478-wpa97m[0]'
1927
+ Command :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25478-wpa97m[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-1axuv7i'
1928
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-1axuv7i20120525-25478-1j1rn5a[0]'
1929
+ Command :: 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
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-1axuv7i20120525-25478-1j1rn5a[0]'
1931
+ Command :: 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
+  (0.1ms) begin transaction
1933
+  (0.4ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 27
1934
+ SQL (0.6ms) 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
+  (1.8ms) commit transaction
1937
+ Processing by Books::AssetsController#get as HTML
1938
+ Parameters: {"book_id"=>"27", "asset_id"=>"30", "style"=>"thumb", "type"=>"Assets/TestImage"}
1939
+ Books::Assets::TestImage Load (0.4ms) 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
+ SQL (2.3ms) DELETE FROM "books_assets"
1943
+ SQL (2.5ms) DELETE FROM "books_assets"
1944
+ SQL (1.7ms) DELETE FROM "books"
1945
+  (0.1ms) begin transaction
1946
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1947
+  (2.4ms) commit transaction
1948
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25478-snbdnc[0]'
1949
+ Command :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25478-snbdnc[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-q0ezd3'
1950
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-q0ezd320120525-25478-1scsdkr[0]'
1951
+ Command :: 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
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25478-q0ezd320120525-25478-1scsdkr[0]'
1953
+ Command :: 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
+  (0.1ms) begin transaction
1955
+  (0.4ms) 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
+ SQL (0.6ms) 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", 28], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
1957
+ [paperclip] Saving attachments.
1958
+  (2.2ms) commit transaction
1959
+ Processing by Books::AssetsController#get as HTML
1960
+ Parameters: {"book_id"=>"28", "asset_id"=>"31", "style"=>"thumb", "type"=>"Assets/TestImage"}
1961
+ Books::Assets::TestImage Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."id" = ? LIMIT 1 [["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
+ Command :: identify -format %wx%h '/opt/code/fractalgarden/acts_as_assets/spec/temp/test.jpg[0]'
1965
+ SQL (2.2ms) DELETE FROM "books_assets"
1966
+ SQL (1.9ms) DELETE FROM "books_assets"
1967
+ SQL (2.1ms) DELETE FROM "books"
1968
+  (0.1ms) begin transaction
1969
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
1970
+  (1.5ms) commit transaction
1971
+ Processing by Books::AssetsController#get as HTML
1972
+ Parameters: {"book_id"=>"29", "asset_id"=>"123456789", "type"=>"Assets/TestDoc"}
1973
+ Books::Assets::TestDoc Load (0.2ms) 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
+ SQL (2.3ms) DELETE FROM "books_assets"
1976
+ SQL (2.0ms) DELETE FROM "books_assets"
1977
+ SQL (2.0ms) DELETE FROM "books"
1978
+ SQL (1.8ms) DELETE FROM "books_assets"
1979
+ SQL (1.7ms) DELETE FROM "books_assets"
1980
+ SQL (1.5ms) DELETE FROM "books"
1981
+ SQL (2.3ms) DELETE FROM "books_assets"
1982
+ SQL (1.9ms) DELETE FROM "books_assets"
1983
+ SQL (1.8ms) DELETE FROM "books"
1984
+ SQL (8.5ms) DELETE FROM "books_assets"
1985
+ SQL (2.3ms) DELETE FROM "books_assets"
1986
+ SQL (1.5ms) DELETE FROM "books"
1987
+ SQL (4.4ms) DELETE FROM "books_assets"
1988
+ SQL (2.1ms) DELETE FROM "books_assets"
1989
+ SQL (2.3ms) DELETE FROM "books"
1990
+ SQL (1.9ms) DELETE FROM "books_assets"
1991
+ SQL (2.0ms) DELETE FROM "books_assets"
1992
+ SQL (1.8ms) DELETE FROM "books"
1993
+ SQL (2.1ms) DELETE FROM "books_assets"
1994
+ SQL (2.3ms) DELETE FROM "books_assets"
1995
+ SQL (1.9ms) DELETE FROM "books"
1996
+  (0.1ms) select sqlite_version(*)
1997
+  (3.6ms) DROP TABLE "books"
1998
+  (1.9ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) 
1999
+  (2.8ms) DROP TABLE "books_assets"
2000
+  (2.5ms) CREATE 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) 
2001
+  (1.8ms) DROP TABLE "chapters"
2002
+  (2.7ms) CREATE TABLE "chapters" ("name" varchar(255) NOT NULL) 
2003
+  (2.2ms) DROP TABLE "chapters_assets"
2004
+  (2.4ms) CREATE 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) 
2005
+  (2.3ms) DROP TABLE "rt_tipi_pannello"
2006
+  (2.4ms) CREATE TABLE "rt_tipi_pannello" ("name" varchar(255) NOT NULL) 
2007
+  (2.4ms) DROP TABLE "rt_tipi_pannello_assets"
2008
+  (2.6ms) CREATE 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)) 
2009
+ SQL (2.1ms) DELETE FROM "books_assets"
2010
+ SQL (2.3ms) DELETE FROM "books_assets"
2011
+ SQL (2.4ms) DELETE FROM "books"
2012
+ SQL (2.1ms) DELETE FROM "books_assets"
2013
+ SQL (2.3ms) DELETE FROM "books_assets"
2014
+ SQL (2.0ms) DELETE FROM "books"
2015
+ SQL (2.0ms) DELETE FROM "books_assets"
2016
+ SQL (2.3ms) DELETE FROM "books_assets"
2017
+ SQL (2.2ms) DELETE FROM "books"
2018
+ SQL (2.2ms) DELETE FROM "books_assets"
2019
+ SQL (2.1ms) DELETE FROM "books_assets"
2020
+ SQL (1.9ms) DELETE FROM "books"
2021
+ SQL (2.4ms) DELETE FROM "books_assets"
2022
+ SQL (2.3ms) DELETE FROM "books_assets"
2023
+ SQL (1.6ms) DELETE FROM "books"
2024
+ SQL (2.6ms) DELETE FROM "books_assets"
2025
+ SQL (2.2ms) DELETE FROM "books_assets"
2026
+ SQL (2.1ms) DELETE FROM "books"
2027
+ SQL (2.5ms) DELETE FROM "books_assets"
2028
+ SQL (2.5ms) DELETE FROM "books_assets"
2029
+ SQL (1.8ms) DELETE FROM "books"
2030
+ SQL (2.1ms) DELETE FROM "books_assets"
2031
+ SQL (2.2ms) DELETE FROM "books_assets"
2032
+ SQL (2.2ms) DELETE FROM "books"
2033
+ SQL (1.9ms) DELETE FROM "books_assets"
2034
+ SQL (4.0ms) DELETE FROM "books_assets"
2035
+ SQL (2.2ms) DELETE FROM "books"
2036
+ SQL (2.1ms) DELETE FROM "books_assets"
2037
+ SQL (2.0ms) DELETE FROM "books_assets"
2038
+ SQL (2.5ms) DELETE FROM "books"
2039
+  (0.1ms) begin transaction
2040
+ SQL (0.5ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2041
+  (2.2ms) commit transaction
2042
+  (0.1ms) begin transaction
2043
+  (0.4ms) 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
+ SQL (0.4ms) 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", 1], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2045
+ [paperclip] Saving attachments.
2046
+  (2.4ms) commit transaction
2047
+ SQL (2.3ms) DELETE FROM "books_assets"
2048
+ SQL (2.3ms) DELETE FROM "books_assets"
2049
+ SQL (1.7ms) DELETE FROM "books"
2050
+  (0.1ms) begin transaction
2051
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2052
+  (1.6ms) commit transaction
2053
+  (0.1ms) begin transaction
2054
+  (0.4ms) 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
+ SQL (0.4ms) 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", 2], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2056
+ [paperclip] Saving attachments.
2057
+  (1.8ms) commit transaction
2058
+ SQL (2.3ms) DELETE FROM "books_assets"
2059
+ SQL (2.1ms) DELETE FROM "books_assets"
2060
+ SQL (2.0ms) DELETE FROM "books"
2061
+  (0.1ms) begin transaction
2062
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2063
+  (2.4ms) commit transaction
2064
+  (0.1ms) begin transaction
2065
+  (0.3ms) 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
+ SQL (0.3ms) 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", 3], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2067
+ [paperclip] Saving attachments.
2068
+  (2.1ms) commit transaction
2069
+ SQL (2.5ms) DELETE FROM "books_assets"
2070
+ SQL (1.9ms) DELETE FROM "books_assets"
2071
+ SQL (2.0ms) DELETE FROM "books"
2072
+  (0.1ms) begin transaction
2073
+ SQL (0.5ms) INSERT INTO "rt_tipi_pannello" ("name") VALUES (?) [["name", "Suntech STP"]]
2074
+  (1.9ms) commit transaction
2075
+  (0.1ms) begin transaction
2076
+ TipiPannello::Documenti::SchedaTecnica Load (0.2ms) 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
+  (0.2ms) SELECT 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'
2078
+ SQL (1.6ms) 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
+  (2.4ms) commit transaction
2081
+ SQL (2.1ms) DELETE FROM "books_assets"
2082
+ SQL (2.1ms) DELETE FROM "books_assets"
2083
+ SQL (1.8ms) DELETE FROM "books"
2084
+  (0.1ms) begin transaction
2085
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2086
+  (1.5ms) commit transaction
2087
+  (0.1ms) begin transaction
2088
+  (0.4ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 4
2089
+ SQL (0.3ms) 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
+  (2.9ms) commit transaction
2092
+ SQL (2.5ms) DELETE FROM "books_assets"
2093
+ SQL (2.3ms) DELETE FROM "books_assets"
2094
+ SQL (2.3ms) DELETE FROM "books"
2095
+  (0.2ms) 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
2096
+ SQL (2.1ms) DELETE FROM "books_assets"
2097
+ SQL (2.0ms) DELETE FROM "books_assets"
2098
+ SQL (1.6ms) DELETE FROM "books"
2099
+  (0.1ms) begin transaction
2100
+  (0.2ms) 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
+ SQL (0.3ms) 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", nil], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2102
+ [paperclip] Saving attachments.
2103
+  (2.4ms) commit transaction
2104
+  (0.1ms) begin transaction
2105
+  (0.3ms) 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
+ SQL (0.3ms) 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", nil], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2107
+ [paperclip] Saving attachments.
2108
+  (2.0ms) commit transaction
2109
+ Books::Asset Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1 [["id", 5]]
2110
+ Books::Asset Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1 [["id", 6]]
2111
+ SQL (2.3ms) DELETE FROM "books_assets"
2112
+ SQL (2.0ms) DELETE FROM "books_assets"
2113
+ SQL (2.4ms) DELETE FROM "books"
2114
+  (0.2ms) begin transaction
2115
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2116
+  (2.0ms) commit transaction
2117
+  (0.1ms) begin transaction
2118
+  (0.3ms) 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
+ SQL (0.4ms) 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:00 UTC +00:00], ["book_id", 5], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2120
+ [paperclip] Saving attachments.
2121
+  (2.8ms) commit transaction
2122
+ SQL (2.4ms) DELETE FROM "books_assets"
2123
+ SQL (2.4ms) DELETE FROM "books_assets"
2124
+ SQL (2.2ms) DELETE FROM "books"
2125
+  (0.1ms) begin transaction
2126
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2127
+  (2.5ms) commit transaction
2128
+  (0.1ms) begin transaction
2129
+  (0.3ms) 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
+ SQL (0.4ms) 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:00 UTC +00:00], ["book_id", 6], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2131
+ [paperclip] Saving attachments.
2132
+  (1.8ms) commit transaction
2133
+ SQL (1.9ms) DELETE FROM "books_assets"
2134
+ SQL (2.3ms) DELETE FROM "books_assets"
2135
+ SQL (1.9ms) DELETE FROM "books"
2136
+  (0.1ms) begin transaction
2137
+ SQL (0.4ms) INSERT INTO "chapters" ("name") VALUES (?) [["name", "a new chapter"]]
2138
+  (1.7ms) commit transaction
2139
+  (0.1ms) begin transaction
2140
+  (0.4ms) 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
+ SQL (0.5ms) INSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "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:00 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 1], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
2142
+ [paperclip] Saving attachments.
2143
+  (2.3ms) commit transaction
2144
+ SQL (2.3ms) DELETE FROM "books_assets"
2145
+ SQL (2.4ms) DELETE FROM "books_assets"
2146
+ SQL (2.1ms) DELETE FROM "books"
2147
+  (0.1ms) begin transaction
2148
+ SQL (0.3ms) INSERT INTO "chapters" ("name") VALUES (?) [["name", "a new chapter"]]
2149
+  (1.8ms) commit transaction
2150
+  (0.1ms) begin transaction
2151
+  (0.4ms) 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
+ SQL (0.5ms) INSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "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:00 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 2], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
2153
+ [paperclip] Saving attachments.
2154
+  (2.4ms) commit transaction
2155
+ SQL (1.8ms) DELETE FROM "books_assets"
2156
+ SQL (2.0ms) DELETE FROM "books_assets"
2157
+ SQL (2.6ms) DELETE FROM "books"
2158
+ SQL (2.2ms) DELETE FROM "books_assets"
2159
+ SQL (1.9ms) DELETE FROM "books_assets"
2160
+ SQL (2.1ms) DELETE FROM "books"
2161
+ SQL (1.9ms) DELETE FROM "books_assets"
2162
+ SQL (2.3ms) DELETE FROM "books_assets"
2163
+ SQL (1.7ms) DELETE FROM "books"
2164
+  (0.1ms) begin transaction
2165
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2166
+  (1.6ms) commit transaction
2167
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25576-14vas2[0]'
2168
+ Command :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25576-14vas2[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-1rzbak0'
2169
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-1rzbak020120525-25576-1gvq2py[0]'
2170
+ Command :: 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
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-1rzbak020120525-25576-1gvq2py[0]'
2172
+ Command :: 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
+  (0.1ms) begin transaction
2174
+  (0.4ms) 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
+ SQL (320.6ms) 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:00 UTC +00:00], ["book_id", 7], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
2176
+ [paperclip] Saving attachments.
2177
+  (606.6ms) commit transaction
2178
+ SQL (268.8ms) DELETE FROM "books_assets"
2179
+ SQL (60.5ms) DELETE FROM "books_assets"
2180
+ SQL (88.7ms) DELETE FROM "books"
2181
+  (0.1ms) begin transaction
2182
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2183
+  (1.8ms) commit transaction
2184
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25576-1ng2vaa[0]'
2185
+ Command :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25576-1ng2vaa[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-y1bgd3'
2186
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-y1bgd320120525-25576-1kjn99h[0]'
2187
+ Command :: 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
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-y1bgd320120525-25576-1kjn99h[0]'
2189
+ Command :: 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
+  (0.1ms) begin transaction
2191
+  (0.4ms) 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
+ SQL (1.0ms) 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:03 UTC +00:00], ["book_id", 8], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
2193
+ [paperclip] Saving attachments.
2194
+  (2.1ms) commit transaction
2195
+ SQL (2.5ms) DELETE FROM "books_assets"
2196
+ SQL (2.0ms) DELETE FROM "books_assets"
2197
+ SQL (1.9ms) DELETE FROM "books"
2198
+ SQL (3.3ms) DELETE FROM "books_assets"
2199
+ SQL (2.7ms) DELETE FROM "books_assets"
2200
+ SQL (2.1ms) DELETE FROM "books"
2201
+ SQL (2.4ms) DELETE FROM "books_assets"
2202
+ SQL (2.4ms) DELETE FROM "books_assets"
2203
+ SQL (2.2ms) DELETE FROM "books"
2204
+ SQL (2.4ms) DELETE FROM "books_assets"
2205
+ SQL (1.9ms) DELETE FROM "books_assets"
2206
+ SQL (1.5ms) DELETE FROM "books"
2207
+ SQL (2.8ms) DELETE FROM "books_assets"
2208
+ SQL (1.9ms) DELETE FROM "books_assets"
2209
+ SQL (2.2ms) DELETE FROM "books"
2210
+ SQL (2.1ms) DELETE FROM "books_assets"
2211
+ SQL (2.0ms) DELETE FROM "books_assets"
2212
+ SQL (2.2ms) DELETE FROM "books"
2213
+ SQL (2.1ms) DELETE FROM "books_assets"
2214
+ SQL (2.3ms) DELETE FROM "books_assets"
2215
+ SQL (2.2ms) DELETE FROM "books"
2216
+ SQL (2.1ms) DELETE FROM "books_assets"
2217
+ SQL (2.1ms) DELETE FROM "books_assets"
2218
+ SQL (2.1ms) DELETE FROM "books"
2219
+ SQL (3.0ms) DELETE FROM "books_assets"
2220
+ SQL (2.4ms) DELETE FROM "books_assets"
2221
+ SQL (1.7ms) DELETE FROM "books"
2222
+  (0.1ms) begin transaction
2223
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2224
+  (1.7ms) commit transaction
2225
+  (0.1ms) begin transaction
2226
+ Books::Assets::UniqueTestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
2227
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9
2228
+ SQL (0.3ms) 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
+  (1.8ms) commit transaction
2231
+  (0.1ms) begin transaction
2232
+ Books::Assets::UniqueTestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
2233
+  (0.1ms) rollback transaction
2234
+ Books::Assets::UniqueTestDoc Load (0.4ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
2235
+ Books::Assets::UniqueTestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
2236
+ SQL (2.2ms) DELETE FROM "books_assets"
2237
+ SQL (2.1ms) DELETE FROM "books_assets"
2238
+ SQL (2.0ms) DELETE FROM "books"
2239
+  (0.1ms) begin transaction
2240
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2241
+  (1.6ms) commit transaction
2242
+  (0.1ms) begin transaction
2243
+  (0.3ms) 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
+ SQL (0.4ms) 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", 10], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2245
+ [paperclip] Saving attachments.
2246
+  (2.0ms) commit transaction
2247
+  (0.1ms) begin transaction
2248
+  (0.4ms) 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
+ SQL (0.3ms) 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", 10], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2250
+ [paperclip] Saving attachments.
2251
+  (2.0ms) commit transaction
2252
+ SQL (2.0ms) DELETE FROM "books_assets"
2253
+ SQL (2.2ms) DELETE FROM "books_assets"
2254
+ SQL (2.2ms) DELETE FROM "books"
2255
+  (0.1ms) begin transaction
2256
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2257
+  (1.6ms) commit transaction
2258
+  (0.1ms) begin transaction
2259
+  (0.4ms) 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
+ SQL (0.4ms) 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", 11], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2261
+ [paperclip] Saving attachments.
2262
+  (1.8ms) commit transaction
2263
+ Processing by Books::AssetsController#index as HTML
2264
+ Parameters: {"multiple"=>true, "book_id"=>"11", "type"=>"Assets/TestDoc"}
2265
+ Book Load (0.3ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "11"]]
2266
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.4ms) DELETE FROM "books_assets"
2271
+ SQL (2.7ms) DELETE FROM "books_assets"
2272
+ SQL (2.0ms) DELETE FROM "books"
2273
+  (0.1ms) begin transaction
2274
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2275
+  (1.7ms) commit transaction
2276
+  (0.1ms) begin transaction
2277
+  (0.3ms) 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
+ SQL (0.4ms) 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", 12], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2279
+ [paperclip] Saving attachments.
2280
+  (2.1ms) commit transaction
2281
+ Processing by Books::AssetsController#index as HTML
2282
+ Parameters: {"target"=>"target_div", "book_id"=>"12", "type"=>"Assets/TestDoc"}
2283
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "12"]]
2284
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.2ms) DELETE FROM "books_assets"
2288
+ SQL (1.9ms) DELETE FROM "books_assets"
2289
+ SQL (1.8ms) DELETE FROM "books"
2290
+  (0.1ms) begin transaction
2291
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2292
+  (1.8ms) commit transaction
2293
+  (0.1ms) begin transaction
2294
+  (0.3ms) 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
+ SQL (0.4ms) 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", 13], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2296
+ [paperclip] Saving attachments.
2297
+  (1.7ms) commit transaction
2298
+ Processing by Books::AssetsController#index as HTML
2299
+ Parameters: {"target"=>"target_div", "book_id"=>"13", "type"=>"Assets/TestDoc"}
2300
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "13"]]
2301
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.2ms) DELETE FROM "books_assets"
2305
+ SQL (2.2ms) DELETE FROM "books_assets"
2306
+ SQL (1.6ms) DELETE FROM "books"
2307
+  (0.1ms) begin transaction
2308
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2309
+  (1.7ms) commit transaction
2310
+  (0.1ms) begin transaction
2311
+  (0.3ms) 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
+ SQL (0.4ms) 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", 14], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2313
+ [paperclip] Saving attachments.
2314
+  (2.1ms) commit transaction
2315
+ Processing by Books::AssetsController#index as HTML
2316
+ Parameters: {"target"=>"target_div", "book_id"=>"14", "type"=>"Assets/TestDoc"}
2317
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "14"]]
2318
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.5ms) DELETE FROM "books_assets"
2322
+ SQL (2.4ms) DELETE FROM "books_assets"
2323
+ SQL (2.2ms) DELETE FROM "books"
2324
+  (0.1ms) begin transaction
2325
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2326
+  (1.6ms) commit transaction
2327
+  (0.1ms) begin transaction
2328
+  (0.3ms) 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
+ SQL (0.4ms) 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", 15], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2330
+ [paperclip] Saving attachments.
2331
+  (1.9ms) commit transaction
2332
+ Processing by Books::AssetsController#index as HTML
2333
+ Parameters: {"target"=>"target_div", "book_id"=>"15", "type"=>"Assets/TestDoc"}
2334
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "15"]]
2335
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.0ms) DELETE FROM "books_assets"
2339
+ SQL (2.1ms) DELETE FROM "books_assets"
2340
+ SQL (2.1ms) DELETE FROM "books"
2341
+  (0.1ms) begin transaction
2342
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2343
+  (1.5ms) commit transaction
2344
+  (0.1ms) begin transaction
2345
+  (0.3ms) 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
+ SQL (0.4ms) 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", 16], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2347
+ [paperclip] Saving attachments.
2348
+  (2.0ms) commit transaction
2349
+ Processing by Books::AssetsController#index as JSON
2350
+ Parameters: {"target"=>"target_div", "book_id"=>"16", "type"=>"Assets/TestDoc"}
2351
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "16"]]
2352
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (1.9ms) DELETE FROM "books_assets"
2355
+ SQL (2.8ms) DELETE FROM "books_assets"
2356
+ SQL (2.3ms) DELETE FROM "books"
2357
+  (0.1ms) begin transaction
2358
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2359
+  (1.8ms) commit transaction
2360
+  (0.1ms) begin transaction
2361
+  (0.3ms) 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
+ SQL (0.8ms) 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", 17], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2363
+ [paperclip] Saving attachments.
2364
+  (2.3ms) commit transaction
2365
+ Processing by Books::AssetsController#index as JSON
2366
+ Parameters: {"target"=>"target_div", "book_id"=>"17", "type"=>"Assets/TestDoc"}
2367
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "17"]]
2368
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.6ms) DELETE FROM "books_assets"
2371
+ SQL (2.0ms) DELETE FROM "books_assets"
2372
+ SQL (1.7ms) DELETE FROM "books"
2373
+  (0.1ms) begin transaction
2374
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2375
+  (1.6ms) 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
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "18"]]
2379
+  (0.1ms) begin transaction
2380
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 18
2381
+ SQL (0.4ms) 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
+  (2.9ms) commit transaction
2384
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.2ms) DELETE FROM "books_assets"
2391
+ SQL (1.8ms) DELETE FROM "books_assets"
2392
+ SQL (2.5ms) DELETE FROM "books"
2393
+  (0.1ms) begin transaction
2394
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2395
+  (2.2ms) 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
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "19"]]
2399
+  (0.1ms) begin transaction
2400
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 19
2401
+ SQL (0.4ms) 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
+  (2.4ms) commit transaction
2404
+ Books::Assets::TestDoc Load (2.4ms) 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
+ SQL (1.9ms) DELETE FROM "books_assets"
2411
+ SQL (2.3ms) DELETE FROM "books_assets"
2412
+ SQL (1.8ms) DELETE FROM "books"
2413
+  (0.1ms) begin transaction
2414
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2415
+  (1.7ms) 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
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "20"]]
2419
+  (0.1ms) begin transaction
2420
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 20
2421
+ SQL (0.4ms) 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
+  (2.1ms) commit transaction
2424
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.3ms) DELETE FROM "books_assets"
2431
+ SQL (3.0ms) DELETE FROM "books_assets"
2432
+ SQL (1.9ms) DELETE FROM "books"
2433
+  (0.1ms) begin transaction
2434
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2435
+  (1.9ms) 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
+ Book Load (0.3ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "21"]]
2439
+  (0.1ms) begin transaction
2440
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 21
2441
+ SQL (0.4ms) 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
+  (1.6ms) commit transaction
2444
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.4ms) DELETE FROM "books_assets"
2451
+ SQL (2.4ms) DELETE FROM "books_assets"
2452
+ SQL (2.2ms) DELETE FROM "books"
2453
+  (0.1ms) begin transaction
2454
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2455
+  (1.7ms) commit transaction
2456
+  (0.1ms) begin transaction
2457
+  (0.3ms) 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
+ SQL (0.4ms) 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", 22], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2459
+ [paperclip] Saving attachments.
2460
+  (2.0ms) 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
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "22"]]
2464
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 25 LIMIT 1
2465
+  (0.0ms) begin transaction
2466
+ [paperclip] Scheduling attachments for deletion.
2467
+ SQL (0.5ms) 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
+  (1.9ms) commit transaction
2471
+ Books::Assets::TestDoc Load (0.2ms) 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
+ SQL (2.3ms) DELETE FROM "books_assets"
2478
+ SQL (3.2ms) DELETE FROM "books_assets"
2479
+ SQL (1.7ms) DELETE FROM "books"
2480
+  (0.1ms) begin transaction
2481
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2482
+  (1.7ms) commit transaction
2483
+  (0.1ms) begin transaction
2484
+  (0.3ms) 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
+ SQL (0.4ms) 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", 23], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2486
+ [paperclip] Saving attachments.
2487
+  (2.2ms) 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
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "23"]]
2491
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 26 LIMIT 1
2492
+  (0.0ms) begin transaction
2493
+ [paperclip] Scheduling attachments for deletion.
2494
+ SQL (0.4ms) 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
+  (1.9ms) commit transaction
2498
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (1.7ms) DELETE FROM "books_assets"
2505
+ SQL (1.9ms) DELETE FROM "books_assets"
2506
+ SQL (2.0ms) DELETE FROM "books"
2507
+  (0.1ms) begin transaction
2508
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2509
+  (1.6ms) commit transaction
2510
+  (0.1ms) begin transaction
2511
+  (0.3ms) 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
+ SQL (0.6ms) 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", 24], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2513
+ [paperclip] Saving attachments.
2514
+  (2.0ms) 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
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "24"]]
2518
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 27 LIMIT 1
2519
+  (0.0ms) begin transaction
2520
+ [paperclip] Scheduling attachments for deletion.
2521
+ SQL (0.4ms) 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
+  (1.7ms) commit transaction
2525
+ Books::Assets::TestDoc Load (0.2ms) 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
+ SQL (2.0ms) DELETE FROM "books_assets"
2532
+ SQL (2.2ms) DELETE FROM "books_assets"
2533
+ SQL (1.8ms) DELETE FROM "books"
2534
+  (0.1ms) begin transaction
2535
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2536
+  (1.9ms) commit transaction
2537
+  (0.1ms) begin transaction
2538
+  (0.3ms) 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
+ SQL (0.4ms) 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", 25], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2540
+ [paperclip] Saving attachments.
2541
+  (2.3ms) 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
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "25"]]
2545
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 28 LIMIT 1
2546
+  (0.0ms) begin transaction
2547
+ [paperclip] Scheduling attachments for deletion.
2548
+ SQL (0.4ms) 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
+  (1.9ms) commit transaction
2552
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.1ms) DELETE FROM "books_assets"
2559
+ SQL (2.2ms) DELETE FROM "books_assets"
2560
+ SQL (2.4ms) DELETE FROM "books"
2561
+  (0.1ms) begin transaction
2562
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2563
+  (1.8ms) commit transaction
2564
+  (0.1ms) begin transaction
2565
+  (0.3ms) 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
+ SQL (63.1ms) 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", 26], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2567
+ [paperclip] Saving attachments.
2568
+  (1.9ms) commit transaction
2569
+ Processing by Books::AssetsController#get as HTML
2570
+ Parameters: {"book_id"=>"26", "asset_id"=>"29", "type"=>"Assets/TestDoc"}
2571
+ Books::Assets::TestDoc Load (0.4ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? LIMIT 1 [["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
+ SQL (2.1ms) DELETE FROM "books_assets"
2575
+ SQL (2.4ms) DELETE FROM "books_assets"
2576
+ SQL (2.2ms) DELETE FROM "books"
2577
+  (0.1ms) begin transaction
2578
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2579
+  (1.9ms) commit transaction
2580
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25576-1ju6dm0[0]'
2581
+ Command :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25576-1ju6dm0[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-9ngdol'
2582
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-9ngdol20120525-25576-n8q07d[0]'
2583
+ Command :: 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
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-9ngdol20120525-25576-n8q07d[0]'
2585
+ Command :: 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
+  (0.2ms) begin transaction
2587
+  (0.4ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 27
2588
+ SQL (0.6ms) 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
+  (1.8ms) commit transaction
2591
+ Processing by Books::AssetsController#get as HTML
2592
+ Parameters: {"book_id"=>"27", "asset_id"=>"30", "style"=>"thumb", "type"=>"Assets/TestImage"}
2593
+ Books::Assets::TestImage Load (0.4ms) 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
+ SQL (2.1ms) DELETE FROM "books_assets"
2597
+ SQL (3.0ms) DELETE FROM "books_assets"
2598
+ SQL (2.2ms) DELETE FROM "books"
2599
+  (0.1ms) begin transaction
2600
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2601
+  (1.9ms) commit transaction
2602
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25576-1m4eiv3[0]'
2603
+ Command :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25576-1m4eiv3[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-19luf9e'
2604
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-19luf9e20120525-25576-10n98zb[0]'
2605
+ Command :: 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
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25576-19luf9e20120525-25576-10n98zb[0]'
2607
+ Command :: 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
+  (0.2ms) begin transaction
2609
+  (0.4ms) 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
+ SQL (0.6ms) 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:05 UTC +00:00], ["book_id", 28], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
2611
+ [paperclip] Saving attachments.
2612
+  (2.0ms) commit transaction
2613
+ Processing by Books::AssetsController#get as HTML
2614
+ Parameters: {"book_id"=>"28", "asset_id"=>"31", "style"=>"thumb", "type"=>"Assets/TestImage"}
2615
+ Books::Assets::TestImage Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."id" = ? LIMIT 1 [["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
+ Command :: identify -format %wx%h '/opt/code/fractalgarden/acts_as_assets/spec/temp/test.jpg[0]'
2619
+ SQL (2.3ms) DELETE FROM "books_assets"
2620
+ SQL (2.3ms) DELETE FROM "books_assets"
2621
+ SQL (2.1ms) DELETE FROM "books"
2622
+  (0.1ms) begin transaction
2623
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2624
+  (1.6ms) commit transaction
2625
+ Processing by Books::AssetsController#get as HTML
2626
+ Parameters: {"book_id"=>"29", "asset_id"=>"123456789", "type"=>"Assets/TestDoc"}
2627
+ Books::Assets::TestDoc Load (0.1ms) 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
+ SQL (2.6ms) DELETE FROM "books_assets"
2630
+ SQL (2.5ms) DELETE FROM "books_assets"
2631
+ SQL (1.9ms) DELETE FROM "books"
2632
+ SQL (2.0ms) DELETE FROM "books_assets"
2633
+ SQL (2.2ms) DELETE FROM "books_assets"
2634
+ SQL (1.8ms) DELETE FROM "books"
2635
+ SQL (2.2ms) DELETE FROM "books_assets"
2636
+ SQL (2.2ms) DELETE FROM "books_assets"
2637
+ SQL (2.1ms) DELETE FROM "books"
2638
+ SQL (2.3ms) DELETE FROM "books_assets"
2639
+ SQL (2.3ms) DELETE FROM "books_assets"
2640
+ SQL (2.2ms) DELETE FROM "books"
2641
+ SQL (2.2ms) DELETE FROM "books_assets"
2642
+ SQL (1.6ms) DELETE FROM "books_assets"
2643
+ SQL (1.6ms) DELETE FROM "books"
2644
+ SQL (2.1ms) DELETE FROM "books_assets"
2645
+ SQL (2.3ms) DELETE FROM "books_assets"
2646
+ SQL (2.8ms) DELETE FROM "books"
2647
+ SQL (2.2ms) DELETE FROM "books_assets"
2648
+ SQL (2.5ms) DELETE FROM "books_assets"
2649
+ SQL (1.8ms) DELETE FROM "books"
2650
+  (0.1ms) select sqlite_version(*)
2651
+  (3.2ms) DROP TABLE "books"
2652
+  (1.8ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) 
2653
+  (2.6ms) DROP TABLE "books_assets"
2654
+  (2.3ms) CREATE 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) 
2655
+  (2.2ms) DROP TABLE "chapters"
2656
+  (3.4ms) CREATE TABLE "chapters" ("name" varchar(255) NOT NULL) 
2657
+  (2.6ms) DROP TABLE "chapters_assets"
2658
+  (2.4ms) CREATE 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) 
2659
+  (2.4ms) DROP TABLE "rt_tipi_pannello"
2660
+  (2.1ms) CREATE TABLE "rt_tipi_pannello" ("name" varchar(255) NOT NULL) 
2661
+  (2.5ms) DROP TABLE "rt_tipi_pannello_assets"
2662
+  (2.5ms) CREATE 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)) 
2663
+ SQL (1.9ms) DELETE FROM "books_assets"
2664
+ SQL (2.4ms) DELETE FROM "books_assets"
2665
+ SQL (2.5ms) DELETE FROM "books"
2666
+ SQL (2.0ms) DELETE FROM "books_assets"
2667
+ SQL (2.2ms) DELETE FROM "books_assets"
2668
+ SQL (2.6ms) DELETE FROM "books"
2669
+ SQL (2.0ms) DELETE FROM "books_assets"
2670
+ SQL (2.1ms) DELETE FROM "books_assets"
2671
+ SQL (2.1ms) DELETE FROM "books"
2672
+ SQL (2.1ms) DELETE FROM "books_assets"
2673
+ SQL (2.2ms) DELETE FROM "books_assets"
2674
+ SQL (2.0ms) DELETE FROM "books"
2675
+ SQL (2.1ms) DELETE FROM "books_assets"
2676
+ SQL (2.3ms) DELETE FROM "books_assets"
2677
+ SQL (1.7ms) DELETE FROM "books"
2678
+ SQL (2.2ms) DELETE FROM "books_assets"
2679
+ SQL (2.3ms) DELETE FROM "books_assets"
2680
+ SQL (1.7ms) DELETE FROM "books"
2681
+ SQL (2.1ms) DELETE FROM "books_assets"
2682
+ SQL (2.2ms) DELETE FROM "books_assets"
2683
+ SQL (2.9ms) DELETE FROM "books"
2684
+ SQL (1.8ms) DELETE FROM "books_assets"
2685
+ SQL (2.3ms) DELETE FROM "books_assets"
2686
+ SQL (1.8ms) DELETE FROM "books"
2687
+ SQL (1.8ms) DELETE FROM "books_assets"
2688
+ SQL (2.0ms) DELETE FROM "books_assets"
2689
+ SQL (1.5ms) DELETE FROM "books"
2690
+ SQL (2.5ms) DELETE FROM "books_assets"
2691
+ SQL (2.6ms) DELETE FROM "books_assets"
2692
+ SQL (1.7ms) DELETE FROM "books"
2693
+  (0.1ms) begin transaction
2694
+ SQL (0.5ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2695
+  (1.5ms) commit transaction
2696
+  (0.1ms) begin transaction
2697
+  (0.4ms) 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
+ SQL (0.5ms) 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", 1], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2699
+ [paperclip] Saving attachments.
2700
+  (2.8ms) commit transaction
2701
+ SQL (2.0ms) DELETE FROM "books_assets"
2702
+ SQL (2.0ms) DELETE FROM "books_assets"
2703
+ SQL (1.6ms) DELETE FROM "books"
2704
+  (0.1ms) begin transaction
2705
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2706
+  (1.9ms) commit transaction
2707
+  (0.1ms) begin transaction
2708
+  (0.3ms) 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
+ SQL (0.3ms) 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", 2], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2710
+ [paperclip] Saving attachments.
2711
+  (2.1ms) commit transaction
2712
+ SQL (2.4ms) DELETE FROM "books_assets"
2713
+ SQL (2.3ms) DELETE FROM "books_assets"
2714
+ SQL (2.0ms) DELETE FROM "books"
2715
+  (0.1ms) begin transaction
2716
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2717
+  (1.5ms) commit transaction
2718
+  (0.0ms) begin transaction
2719
+  (0.3ms) 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
+ SQL (0.3ms) 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", 3], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2721
+ [paperclip] Saving attachments.
2722
+  (1.9ms) commit transaction
2723
+ SQL (2.3ms) DELETE FROM "books_assets"
2724
+ SQL (2.0ms) DELETE FROM "books_assets"
2725
+ SQL (1.8ms) DELETE FROM "books"
2726
+  (0.1ms) begin transaction
2727
+ SQL (0.4ms) INSERT INTO "rt_tipi_pannello" ("name") VALUES (?) [["name", "Suntech STP"]]
2728
+  (1.8ms) commit transaction
2729
+  (0.1ms) begin transaction
2730
+ TipiPannello::Documenti::SchedaTecnica Load (0.3ms) 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
+  (0.3ms) SELECT 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'
2732
+ SQL (1.6ms) 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
+  (2.3ms) commit transaction
2735
+ SQL (2.4ms) DELETE FROM "books_assets"
2736
+ SQL (2.9ms) DELETE FROM "books_assets"
2737
+ SQL (1.9ms) DELETE FROM "books"
2738
+  (0.1ms) begin transaction
2739
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2740
+  (1.7ms) commit transaction
2741
+  (0.1ms) begin transaction
2742
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 4
2743
+ SQL (0.3ms) 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
+  (1.9ms) commit transaction
2746
+ SQL (2.2ms) DELETE FROM "books_assets"
2747
+ SQL (2.5ms) DELETE FROM "books_assets"
2748
+ SQL (2.0ms) DELETE FROM "books"
2749
+  (0.2ms) 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
2750
+ SQL (2.3ms) DELETE FROM "books_assets"
2751
+ SQL (2.3ms) DELETE FROM "books_assets"
2752
+ SQL (1.6ms) DELETE FROM "books"
2753
+  (0.1ms) begin transaction
2754
+  (0.3ms) 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
+ SQL (0.9ms) 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", nil], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2756
+ [paperclip] Saving attachments.
2757
+  (2.0ms) commit transaction
2758
+  (0.1ms) begin transaction
2759
+  (0.3ms) 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
+ SQL (0.3ms) 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", nil], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2761
+ [paperclip] Saving attachments.
2762
+  (2.5ms) commit transaction
2763
+ Books::Asset Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1 [["id", 5]]
2764
+ Books::Asset Load (0.1ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1 [["id", 6]]
2765
+ SQL (2.1ms) DELETE FROM "books_assets"
2766
+ SQL (2.6ms) DELETE FROM "books_assets"
2767
+ SQL (2.0ms) DELETE FROM "books"
2768
+  (0.1ms) begin transaction
2769
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2770
+  (1.8ms) commit transaction
2771
+  (0.1ms) begin transaction
2772
+  (0.3ms) 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
+ SQL (0.5ms) 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:22 UTC +00:00], ["book_id", 5], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2774
+ [paperclip] Saving attachments.
2775
+  (2.1ms) commit transaction
2776
+ SQL (2.1ms) DELETE FROM "books_assets"
2777
+ SQL (2.2ms) DELETE FROM "books_assets"
2778
+ SQL (1.5ms) DELETE FROM "books"
2779
+  (0.1ms) begin transaction
2780
+ SQL (0.5ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2781
+  (4.3ms) commit transaction
2782
+  (0.1ms) begin transaction
2783
+  (0.3ms) 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
+ SQL (0.4ms) 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:22 UTC +00:00], ["book_id", 6], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2785
+ [paperclip] Saving attachments.
2786
+  (2.2ms) commit transaction
2787
+ SQL (2.2ms) DELETE FROM "books_assets"
2788
+ SQL (2.0ms) DELETE FROM "books_assets"
2789
+ SQL (1.9ms) DELETE FROM "books"
2790
+  (0.1ms) begin transaction
2791
+ SQL (0.4ms) INSERT INTO "chapters" ("name") VALUES (?) [["name", "a new chapter"]]
2792
+  (1.8ms) commit transaction
2793
+  (0.1ms) begin transaction
2794
+  (0.3ms) 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
+ SQL (0.5ms) INSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "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:22 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 1], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
2796
+ [paperclip] Saving attachments.
2797
+  (2.1ms) commit transaction
2798
+ SQL (2.2ms) DELETE FROM "books_assets"
2799
+ SQL (2.2ms) DELETE FROM "books_assets"
2800
+ SQL (1.9ms) DELETE FROM "books"
2801
+  (0.1ms) begin transaction
2802
+ SQL (0.3ms) INSERT INTO "chapters" ("name") VALUES (?) [["name", "a new chapter"]]
2803
+  (2.0ms) commit transaction
2804
+  (0.1ms) begin transaction
2805
+  (0.7ms) 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
+ SQL (0.5ms) INSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "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:22 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 2], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
2807
+ [paperclip] Saving attachments.
2808
+  (2.1ms) commit transaction
2809
+ SQL (2.2ms) DELETE FROM "books_assets"
2810
+ SQL (2.0ms) DELETE FROM "books_assets"
2811
+ SQL (2.4ms) DELETE FROM "books"
2812
+ SQL (2.0ms) DELETE FROM "books_assets"
2813
+ SQL (2.1ms) DELETE FROM "books_assets"
2814
+ SQL (2.2ms) DELETE FROM "books"
2815
+ SQL (1.9ms) DELETE FROM "books_assets"
2816
+ SQL (2.1ms) DELETE FROM "books_assets"
2817
+ SQL (2.0ms) DELETE FROM "books"
2818
+  (0.1ms) begin transaction
2819
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2820
+  (1.9ms) commit transaction
2821
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25631-4hbfp2[0]'
2822
+ Command :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25631-4hbfp2[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-vrxrnl'
2823
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-vrxrnl20120525-25631-13q4t6q[0]'
2824
+ Command :: 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
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-vrxrnl20120525-25631-13q4t6q[0]'
2826
+ Command :: 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
+  (0.1ms) begin transaction
2828
+  (0.4ms) 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
+ SQL (0.7ms) 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:23 UTC +00:00], ["book_id", 7], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
2830
+ [paperclip] Saving attachments.
2831
+  (1.9ms) commit transaction
2832
+ SQL (2.2ms) DELETE FROM "books_assets"
2833
+ SQL (2.2ms) DELETE FROM "books_assets"
2834
+ SQL (2.2ms) DELETE FROM "books"
2835
+  (0.1ms) begin transaction
2836
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2837
+  (1.5ms) commit transaction
2838
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25631-3r2g2c[0]'
2839
+ Command :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25631-3r2g2c[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-13mnh2d'
2840
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-13mnh2d20120525-25631-1b479j2[0]'
2841
+ Command :: 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
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-13mnh2d20120525-25631-1b479j2[0]'
2843
+ Command :: 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
+  (0.1ms) begin transaction
2845
+  (0.4ms) 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
+ SQL (0.5ms) 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:23 UTC +00:00], ["book_id", 8], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
2847
+ [paperclip] Saving attachments.
2848
+  (2.0ms) commit transaction
2849
+ SQL (2.1ms) DELETE FROM "books_assets"
2850
+ SQL (2.1ms) DELETE FROM "books_assets"
2851
+ SQL (2.3ms) DELETE FROM "books"
2852
+ SQL (2.2ms) DELETE FROM "books_assets"
2853
+ SQL (2.2ms) DELETE FROM "books_assets"
2854
+ SQL (1.8ms) DELETE FROM "books"
2855
+ SQL (1.9ms) DELETE FROM "books_assets"
2856
+ SQL (2.0ms) DELETE FROM "books_assets"
2857
+ SQL (1.9ms) DELETE FROM "books"
2858
+ SQL (2.3ms) DELETE FROM "books_assets"
2859
+ SQL (2.2ms) DELETE FROM "books_assets"
2860
+ SQL (1.6ms) DELETE FROM "books"
2861
+ SQL (1.9ms) DELETE FROM "books_assets"
2862
+ SQL (1.8ms) DELETE FROM "books_assets"
2863
+ SQL (1.5ms) DELETE FROM "books"
2864
+ SQL (1.9ms) DELETE FROM "books_assets"
2865
+ SQL (1.8ms) DELETE FROM "books_assets"
2866
+ SQL (1.9ms) DELETE FROM "books"
2867
+ SQL (2.3ms) DELETE FROM "books_assets"
2868
+ SQL (2.2ms) DELETE FROM "books_assets"
2869
+ SQL (1.8ms) DELETE FROM "books"
2870
+ SQL (2.0ms) DELETE FROM "books_assets"
2871
+ SQL (2.8ms) DELETE FROM "books_assets"
2872
+ SQL (1.9ms) DELETE FROM "books"
2873
+ SQL (1.8ms) DELETE FROM "books_assets"
2874
+ SQL (2.6ms) DELETE FROM "books_assets"
2875
+ SQL (1.9ms) DELETE FROM "books"
2876
+  (0.1ms) begin transaction
2877
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2878
+  (2.0ms) commit transaction
2879
+  (0.1ms) begin transaction
2880
+ Books::Assets::UniqueTestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
2881
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9
2882
+ SQL (0.4ms) 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
+  (2.5ms) commit transaction
2885
+  (0.1ms) begin transaction
2886
+ Books::Assets::UniqueTestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
2887
+  (0.1ms) rollback transaction
2888
+ Books::Assets::UniqueTestDoc Load (0.6ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
2889
+ Books::Assets::UniqueTestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
2890
+ SQL (2.1ms) DELETE FROM "books_assets"
2891
+ SQL (2.1ms) DELETE FROM "books_assets"
2892
+ SQL (2.0ms) DELETE FROM "books"
2893
+  (0.1ms) begin transaction
2894
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2895
+  (1.7ms) commit transaction
2896
+  (0.1ms) begin transaction
2897
+  (0.3ms) 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
+ SQL (0.3ms) 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", 10], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2899
+ [paperclip] Saving attachments.
2900
+  (2.0ms) commit transaction
2901
+  (0.1ms) begin transaction
2902
+  (0.6ms) 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
+ SQL (0.4ms) 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", 10], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2904
+ [paperclip] Saving attachments.
2905
+  (2.1ms) commit transaction
2906
+ SQL (2.9ms) DELETE FROM "books_assets"
2907
+ SQL (1.8ms) DELETE FROM "books_assets"
2908
+ SQL (1.5ms) DELETE FROM "books"
2909
+  (0.1ms) begin transaction
2910
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2911
+  (1.7ms) commit transaction
2912
+  (0.1ms) begin transaction
2913
+  (0.4ms) 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
+ SQL (0.7ms) 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:23 UTC +00:00], ["book_id", 11], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2915
+ [paperclip] Saving attachments.
2916
+  (2.3ms) commit transaction
2917
+ Processing by Books::AssetsController#index as HTML
2918
+ Parameters: {"multiple"=>true, "book_id"=>"11", "type"=>"Assets/TestDoc"}
2919
+ Book Load (0.3ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "11"]]
2920
+ Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (3.0ms)
2921
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.4ms) DELETE FROM "books_assets"
2928
+ SQL (2.3ms) DELETE FROM "books_assets"
2929
+ SQL (2.0ms) DELETE FROM "books"
2930
+  (0.1ms) begin transaction
2931
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2932
+  (1.7ms) commit transaction
2933
+  (0.1ms) begin transaction
2934
+  (0.3ms) 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
+ SQL (0.4ms) 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:23 UTC +00:00], ["book_id", 12], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2936
+ [paperclip] Saving attachments.
2937
+  (2.0ms) commit transaction
2938
+ Processing by Books::AssetsController#index as HTML
2939
+ Parameters: {"target"=>"target_div", "book_id"=>"12", "type"=>"Assets/TestDoc"}
2940
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "12"]]
2941
+ Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.2ms)
2942
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (1.8ms) DELETE FROM "books_assets"
2948
+ SQL (2.0ms) DELETE FROM "books_assets"
2949
+ SQL (1.7ms) DELETE FROM "books"
2950
+  (0.1ms) begin transaction
2951
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2952
+  (1.7ms) commit transaction
2953
+  (0.1ms) begin transaction
2954
+  (0.3ms) 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
+ SQL (0.5ms) 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:23 UTC +00:00], ["book_id", 13], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2956
+ [paperclip] Saving attachments.
2957
+  (1.9ms) commit transaction
2958
+ Processing by Books::AssetsController#index as HTML
2959
+ Parameters: {"target"=>"target_div", "book_id"=>"13", "type"=>"Assets/TestDoc"}
2960
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "13"]]
2961
+ Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.2ms)
2962
+ Books::Assets::TestDoc Load (0.4ms) 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
+ SQL (3.2ms) DELETE FROM "books_assets"
2968
+ SQL (2.3ms) DELETE FROM "books_assets"
2969
+ SQL (2.2ms) DELETE FROM "books"
2970
+  (0.1ms) begin transaction
2971
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2972
+  (1.7ms) commit transaction
2973
+  (0.1ms) begin transaction
2974
+  (0.3ms) 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
+ SQL (0.4ms) 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:23 UTC +00:00], ["book_id", 14], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2976
+ [paperclip] Saving attachments.
2977
+  (2.1ms) commit transaction
2978
+ Processing by Books::AssetsController#index as HTML
2979
+ Parameters: {"target"=>"target_div", "book_id"=>"14", "type"=>"Assets/TestDoc"}
2980
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "14"]]
2981
+ Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.3ms)
2982
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.0ms) DELETE FROM "books_assets"
2988
+ SQL (2.4ms) DELETE FROM "books_assets"
2989
+ SQL (2.1ms) DELETE FROM "books"
2990
+  (0.1ms) begin transaction
2991
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
2992
+  (2.4ms) commit transaction
2993
+  (0.1ms) begin transaction
2994
+  (0.3ms) 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
+ SQL (0.4ms) 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:23 UTC +00:00], ["book_id", 15], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
2996
+ [paperclip] Saving attachments.
2997
+  (2.0ms) commit transaction
2998
+ Processing by Books::AssetsController#index as HTML
2999
+ Parameters: {"target"=>"target_div", "book_id"=>"15", "type"=>"Assets/TestDoc"}
3000
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "15"]]
3001
+ Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.2ms)
3002
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.1ms) DELETE FROM "books_assets"
3008
+ SQL (1.9ms) DELETE FROM "books_assets"
3009
+ SQL (2.0ms) DELETE FROM "books"
3010
+  (0.1ms) begin transaction
3011
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
3012
+  (2.0ms) commit transaction
3013
+  (0.1ms) begin transaction
3014
+  (0.3ms) 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
+ SQL (0.4ms) 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:23 UTC +00:00], ["book_id", 16], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
3016
+ [paperclip] Saving attachments.
3017
+  (2.4ms) commit transaction
3018
+ Processing by Books::AssetsController#index as JSON
3019
+ Parameters: {"target"=>"target_div", "book_id"=>"16", "type"=>"Assets/TestDoc"}
3020
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "16"]]
3021
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (1.7ms) DELETE FROM "books_assets"
3024
+ SQL (2.2ms) DELETE FROM "books_assets"
3025
+ SQL (1.5ms) DELETE FROM "books"
3026
+  (0.1ms) begin transaction
3027
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
3028
+  (1.7ms) commit transaction
3029
+  (0.1ms) begin transaction
3030
+  (0.3ms) 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
+ SQL (0.6ms) 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", 17], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
3032
+ [paperclip] Saving attachments.
3033
+  (2.1ms) commit transaction
3034
+ Processing by Books::AssetsController#index as JSON
3035
+ Parameters: {"target"=>"target_div", "book_id"=>"17", "type"=>"Assets/TestDoc"}
3036
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "17"]]
3037
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (1.9ms) DELETE FROM "books_assets"
3040
+ SQL (3.2ms) DELETE FROM "books_assets"
3041
+ SQL (2.0ms) DELETE FROM "books"
3042
+  (0.1ms) begin transaction
3043
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
3044
+  (1.6ms) 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
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "18"]]
3048
+  (0.1ms) begin transaction
3049
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 18
3050
+ SQL (0.5ms) 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
+  (2.0ms) commit transaction
3053
+ Books::Assets::TestDoc Load (0.4ms) 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
+ SQL (2.2ms) DELETE FROM "books_assets"
3060
+ SQL (2.4ms) DELETE FROM "books_assets"
3061
+ SQL (1.9ms) DELETE FROM "books"
3062
+  (0.1ms) begin transaction
3063
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
3064
+  (1.9ms) 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
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "19"]]
3068
+  (0.1ms) begin transaction
3069
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 19
3070
+ SQL (0.4ms) 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
+  (2.3ms) commit transaction
3073
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (1.7ms) DELETE FROM "books_assets"
3080
+ SQL (3.1ms) DELETE FROM "books_assets"
3081
+ SQL (2.1ms) DELETE FROM "books"
3082
+  (0.1ms) begin transaction
3083
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
3084
+  (1.5ms) 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
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "20"]]
3088
+  (0.1ms) begin transaction
3089
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 20
3090
+ SQL (0.5ms) 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
+  (1.9ms) commit transaction
3093
+ Books::Assets::TestDoc Load (0.4ms) 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
+ SQL (2.1ms) DELETE FROM "books_assets"
3100
+ SQL (2.3ms) DELETE FROM "books_assets"
3101
+ SQL (2.0ms) DELETE FROM "books"
3102
+  (0.1ms) begin transaction
3103
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
3104
+  (1.5ms) 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
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "21"]]
3108
+  (0.1ms) begin transaction
3109
+  (0.4ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 21
3110
+ SQL (0.6ms) 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
+  (2.2ms) commit transaction
3113
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.4ms) DELETE FROM "books_assets"
3120
+ SQL (2.1ms) DELETE FROM "books_assets"
3121
+ SQL (1.9ms) DELETE FROM "books"
3122
+  (0.1ms) begin transaction
3123
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
3124
+  (1.7ms) commit transaction
3125
+  (0.1ms) begin transaction
3126
+  (0.3ms) 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
+ SQL (0.4ms) 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", 22], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
3128
+ [paperclip] Saving attachments.
3129
+  (1.8ms) 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
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "22"]]
3133
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 25 LIMIT 1
3134
+  (0.0ms) begin transaction
3135
+ [paperclip] Scheduling attachments for deletion.
3136
+ SQL (0.5ms) 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
+  (2.2ms) commit transaction
3140
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (2.0ms) DELETE FROM "books_assets"
3147
+ SQL (2.1ms) DELETE FROM "books_assets"
3148
+ SQL (1.9ms) DELETE FROM "books"
3149
+  (0.1ms) begin transaction
3150
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
3151
+  (1.7ms) commit transaction
3152
+  (0.1ms) begin transaction
3153
+  (0.3ms) 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
+ SQL (0.4ms) 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", 23], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
3155
+ [paperclip] Saving attachments.
3156
+  (1.8ms) 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
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "23"]]
3160
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 26 LIMIT 1
3161
+  (0.0ms) begin transaction
3162
+ [paperclip] Scheduling attachments for deletion.
3163
+ SQL (0.4ms) 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
+  (2.7ms) commit transaction
3167
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (1.8ms) DELETE FROM "books_assets"
3174
+ SQL (1.9ms) DELETE FROM "books_assets"
3175
+ SQL (1.7ms) DELETE FROM "books"
3176
+  (0.1ms) begin transaction
3177
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
3178
+  (1.6ms) commit transaction
3179
+  (0.1ms) begin transaction
3180
+  (0.3ms) 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
+ SQL (0.4ms) 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", 24], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
3182
+ [paperclip] Saving attachments.
3183
+  (1.8ms) 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
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "24"]]
3187
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 27 LIMIT 1
3188
+  (0.0ms) begin transaction
3189
+ [paperclip] Scheduling attachments for deletion.
3190
+ SQL (0.4ms) 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
+  (2.7ms) commit transaction
3194
+ Books::Assets::TestDoc Load (0.2ms) 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
+ SQL (2.0ms) DELETE FROM "books_assets"
3201
+ SQL (2.2ms) DELETE FROM "books_assets"
3202
+ SQL (2.0ms) DELETE FROM "books"
3203
+  (0.1ms) begin transaction
3204
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
3205
+  (1.7ms) commit transaction
3206
+  (0.1ms) begin transaction
3207
+  (0.3ms) 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
+ SQL (0.4ms) 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", 25], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
3209
+ [paperclip] Saving attachments.
3210
+  (2.1ms) 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
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "25"]]
3214
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 28 LIMIT 1
3215
+  (0.0ms) begin transaction
3216
+ [paperclip] Scheduling attachments for deletion.
3217
+ SQL (0.4ms) 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
+  (2.0ms) commit transaction
3221
+ Books::Assets::TestDoc Load (0.3ms) 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
+ SQL (1.9ms) DELETE FROM "books_assets"
3228
+ SQL (2.0ms) DELETE FROM "books_assets"
3229
+ SQL (2.3ms) DELETE FROM "books"
3230
+  (0.1ms) begin transaction
3231
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
3232
+  (2.1ms) commit transaction
3233
+  (0.1ms) begin transaction
3234
+  (0.3ms) 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
+ SQL (0.4ms) 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", 26], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
3236
+ [paperclip] Saving attachments.
3237
+  (2.1ms) commit transaction
3238
+ Processing by Books::AssetsController#get as HTML
3239
+ Parameters: {"book_id"=>"26", "asset_id"=>"29", "type"=>"Assets/TestDoc"}
3240
+ Books::Assets::TestDoc Load (0.4ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? LIMIT 1 [["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
+ SQL (2.4ms) DELETE FROM "books_assets"
3244
+ SQL (2.4ms) DELETE FROM "books_assets"
3245
+ SQL (1.7ms) DELETE FROM "books"
3246
+  (0.1ms) begin transaction
3247
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
3248
+  (1.4ms) commit transaction
3249
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25631-17ezegi[0]'
3250
+ Command :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25631-17ezegi[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-1r4z7m7'
3251
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-1r4z7m720120525-25631-xhp388[0]'
3252
+ Command :: 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
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-1r4z7m720120525-25631-xhp388[0]'
3254
+ Command :: 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
+  (0.1ms) begin transaction
3256
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 27
3257
+ SQL (0.6ms) 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
+  (1.9ms) commit transaction
3260
+ Processing by Books::AssetsController#get as HTML
3261
+ Parameters: {"book_id"=>"27", "asset_id"=>"30", "style"=>"thumb", "type"=>"Assets/TestImage"}
3262
+ Books::Assets::TestImage Load (0.4ms) 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
+ SQL (2.3ms) DELETE FROM "books_assets"
3266
+ SQL (2.3ms) DELETE FROM "books_assets"
3267
+ SQL (2.1ms) DELETE FROM "books"
3268
+  (0.1ms) begin transaction
3269
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
3270
+  (1.6ms) commit transaction
3271
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25631-kwz0mj[0]'
3272
+ Command :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120525-25631-kwz0mj[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-1z0nsf9'
3273
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-1z0nsf920120525-25631-141yik2[0]'
3274
+ Command :: 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
+ Command :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120525-25631-1z0nsf920120525-25631-141yik2[0]'
3276
+ Command :: 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
+  (0.2ms) begin transaction
3278
+  (0.4ms) 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
+ SQL (0.6ms) 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", 28], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
3280
+ [paperclip] Saving attachments.
3281
+  (2.4ms) commit transaction
3282
+ Processing by Books::AssetsController#get as HTML
3283
+ Parameters: {"book_id"=>"28", "asset_id"=>"31", "style"=>"thumb", "type"=>"Assets/TestImage"}
3284
+ Books::Assets::TestImage Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."id" = ? LIMIT 1 [["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
+ Command :: identify -format %wx%h '/opt/code/fractalgarden/acts_as_assets/spec/temp/test.jpg[0]'
3288
+ SQL (2.0ms) DELETE FROM "books_assets"
3289
+ SQL (2.2ms) DELETE FROM "books_assets"
3290
+ SQL (2.3ms) DELETE FROM "books"
3291
+  (0.1ms) begin transaction
3292
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
3293
+  (1.8ms) commit transaction
3294
+ Processing by Books::AssetsController#get as HTML
3295
+ Parameters: {"book_id"=>"29", "asset_id"=>"123456789", "type"=>"Assets/TestDoc"}
3296
+ Books::Assets::TestDoc Load (0.2ms) 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
+ SQL (2.3ms) DELETE FROM "books_assets"
3299
+ SQL (2.2ms) DELETE FROM "books_assets"
3300
+ SQL (1.5ms) DELETE FROM "books"
3301
+ SQL (3.1ms) DELETE FROM "books_assets"
3302
+ SQL (1.8ms) DELETE FROM "books_assets"
3303
+ SQL (2.0ms) DELETE FROM "books"
3304
+ SQL (2.4ms) DELETE FROM "books_assets"
3305
+ SQL (1.8ms) DELETE FROM "books_assets"
3306
+ SQL (1.9ms) DELETE FROM "books"
3307
+ SQL (2.0ms) DELETE FROM "books_assets"
3308
+ SQL (2.0ms) DELETE FROM "books_assets"
3309
+ SQL (2.1ms) DELETE FROM "books"
3310
+ SQL (3.1ms) DELETE FROM "books_assets"
3311
+ SQL (2.1ms) DELETE FROM "books_assets"
3312
+ SQL (2.0ms) DELETE FROM "books"
3313
+ SQL (2.4ms) DELETE FROM "books_assets"
3314
+ SQL (2.4ms) DELETE FROM "books_assets"
3315
+ SQL (2.1ms) DELETE FROM "books"
3316
+ SQL (2.1ms) DELETE FROM "books_assets"
3317
+ SQL (2.1ms) DELETE FROM "books_assets"
3318
+ SQL (2.4ms) DELETE FROM "books"