acts_as_assets 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/app/helpers/acts_as_assets/assets_helper.rb +7 -7
- data/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb +1 -1
- data/app/views/acts_as_assets/assets/_asset_upload.html.erb +1 -1
- data/app/views/acts_as_assets/assets/_upload_link.html.erb +3 -3
- data/app/views/acts_as_assets/assets/create.js.erb +1 -1
- data/app/views/acts_as_assets/assets/destroy.js.erb +1 -1
- data/lib/acts_as_assets/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +1378 -0
- metadata +4 -4
@@ -4,11 +4,11 @@ module ActsAsAssets::AssetsHelper
|
|
4
4
|
end
|
5
5
|
|
6
6
|
def destroy_file_path(asset, model)
|
7
|
-
destroy_path(asset, model, asset_target, @type)
|
7
|
+
destroy_path(asset, model, asset_target(model), @type)
|
8
8
|
end
|
9
9
|
|
10
|
-
def asset_target
|
11
|
-
@type.gsub(/\//, '_')
|
10
|
+
def asset_target model
|
11
|
+
@type.gsub(/\//, '_') + "_#{model.id}"
|
12
12
|
end
|
13
13
|
|
14
14
|
def destroy_path(asset, model, target, type)
|
@@ -39,8 +39,8 @@ module ActsAsAssets::AssetsHelper
|
|
39
39
|
defined?(type_label).nil? ? @type.split('/').last.to_s.humanize : type_label
|
40
40
|
end
|
41
41
|
|
42
|
-
def upload_complete_js_function
|
43
|
-
"function(id, fileName, responseJSON, qq){K.allegati.onComplete(id, fileName, responseJSON, qq,'#{asset_target}');}"
|
42
|
+
def upload_complete_js_function model
|
43
|
+
"function(id, fileName, responseJSON, qq){K.allegati.onComplete(id, fileName, responseJSON, qq,'#{asset_target(model)}');}"
|
44
44
|
end
|
45
45
|
def asset_action(model)
|
46
46
|
prefix = model.to_model.class.to_s.underscore.gsub(/\//, '_')
|
@@ -48,8 +48,8 @@ module ActsAsAssets::AssetsHelper
|
|
48
48
|
self.send(method_name, model, :type => @type, :format => :js)
|
49
49
|
end
|
50
50
|
|
51
|
-
def asset_id
|
52
|
-
asset_target
|
51
|
+
def asset_id model
|
52
|
+
asset_target model
|
53
53
|
end
|
54
54
|
|
55
55
|
def asset_file_name(asset)
|
@@ -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(model) %>" class="multiple assets">
|
4
4
|
<%= render :partial => "acts_as_assets/assets/upload_link", :locals => {:multiple => true, :model => model} unless read_only %>
|
5
5
|
<%= render :partial => "acts_as_assets/assets/assets", :locals => {:assets => Array(assets), :model => model, read_only: read_only} %>
|
6
6
|
</div>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<%# encoding: utf-8 %>
|
2
2
|
<% assets ||= @assets %>
|
3
|
-
<div id="<%= asset_id %>" class="assets">
|
3
|
+
<div id="<%= asset_id(model) %>" 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,6 +1,6 @@
|
|
1
|
-
<%= uploader_field_tag asset_target,
|
1
|
+
<%= uploader_field_tag asset_target(model),
|
2
2
|
:action => asset_action(model),
|
3
3
|
:uploadButtonText => t('aggiungi'),
|
4
4
|
:multiple => multiple,
|
5
|
-
:params => {:authenticity_token => form_authenticity_token, :target => asset_target},
|
6
|
-
:onComplete => upload_complete_js_function %>
|
5
|
+
:params => {:authenticity_token => form_authenticity_token, :target => asset_target(model)},
|
6
|
+
:onComplete => upload_complete_js_function(model) %>
|
@@ -1 +1 @@
|
|
1
|
-
{"asset_id": "<%= asset_id %>","body": "<%= assets_body %>","success": true}
|
1
|
+
{"asset_id": "<%= asset_id(@model) %>","body": "<%= assets_body %>","success": true}
|
@@ -1 +1 @@
|
|
1
|
-
$("#<%= asset_id %>").html("<%= assets_body %>");
|
1
|
+
$("#<%= asset_id(@model) %>").html("<%= assets_body %>");
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/spec/dummy/log/test.log
CHANGED
@@ -29976,3 +29976,1381 @@ Completed 404 Not Found in 49ms (Views: 5.0ms | ActiveRecord: 0.1ms)
|
|
29976
29976
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 28], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
29977
29977
|
[paperclip] Saving attachments.
|
29978
29978
|
[1m[35m (2.6ms)[0m commit transaction
|
29979
|
+
Connecting to database specified by database.yml
|
29980
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
29981
|
+
[1m[35m (3.7ms)[0m DROP TABLE "books"
|
29982
|
+
[1m[36m (3.1ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) [0m
|
29983
|
+
[1m[35m (6.7ms)[0m DROP TABLE "books_assets"
|
29984
|
+
[1m[36m (4.8ms)[0m [1mCREATE TABLE "books_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "book_id" integer, "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
29985
|
+
[1m[35m (3.2ms)[0m DROP TABLE "chapters"
|
29986
|
+
[1m[36m (3.0ms)[0m [1mCREATE TABLE "chapters" ("name" varchar(255) NOT NULL) [0m
|
29987
|
+
[1m[35m (3.1ms)[0m DROP TABLE "chapters_assets"
|
29988
|
+
[1m[36m (3.1ms)[0m [1mCREATE TABLE "chapters_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "chapter_name" varchar(255), "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
29989
|
+
[1m[35m (2.7ms)[0m DROP TABLE "rt_tipi_pannello"
|
29990
|
+
[1m[36m (3.1ms)[0m [1mCREATE TABLE "rt_tipi_pannello" ("name" varchar(255) NOT NULL) [0m
|
29991
|
+
[1m[35m (3.0ms)[0m DROP TABLE "rt_tipi_pannello_assets"
|
29992
|
+
[1m[36m (3.2ms)[0m [1mCREATE TABLE "rt_tipi_pannello_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "displayable" boolean DEFAULT 'f' NOT NULL, "tipo_pannello_name" varchar(255)) [0m
|
29993
|
+
[1m[35mSQL (7.2ms)[0m DELETE FROM "books_assets"
|
29994
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
29995
|
+
[1m[35mSQL (3.4ms)[0m DELETE FROM "books"
|
29996
|
+
[1m[36mSQL (3.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
29997
|
+
[1m[35mSQL (3.2ms)[0m DELETE FROM "books_assets"
|
29998
|
+
[1m[36mSQL (4.4ms)[0m [1mDELETE FROM "books"[0m
|
29999
|
+
[1m[35mSQL (4.3ms)[0m DELETE FROM "books_assets"
|
30000
|
+
[1m[36mSQL (3.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
30001
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books"
|
30002
|
+
[1m[36mSQL (3.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
30003
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books_assets"
|
30004
|
+
[1m[36mSQL (3.7ms)[0m [1mDELETE FROM "books"[0m
|
30005
|
+
[1m[35mSQL (3.2ms)[0m DELETE FROM "books_assets"
|
30006
|
+
[1m[36mSQL (3.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
30007
|
+
[1m[35mSQL (3.4ms)[0m DELETE FROM "books"
|
30008
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
30009
|
+
[1m[35mSQL (3.5ms)[0m DELETE FROM "books_assets"
|
30010
|
+
[1m[36mSQL (4.0ms)[0m [1mDELETE FROM "books"[0m
|
30011
|
+
[1m[35mSQL (3.8ms)[0m DELETE FROM "books_assets"
|
30012
|
+
[1m[36mSQL (2.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
30013
|
+
[1m[35mSQL (4.9ms)[0m DELETE FROM "books"
|
30014
|
+
[1m[36mSQL (3.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
30015
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books_assets"
|
30016
|
+
[1m[36mSQL (2.9ms)[0m [1mDELETE FROM "books"[0m
|
30017
|
+
[1m[35mSQL (4.3ms)[0m DELETE FROM "books_assets"
|
30018
|
+
[1m[36mSQL (3.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
30019
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books"
|
30020
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
30021
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books_assets"
|
30022
|
+
[1m[36mSQL (3.7ms)[0m [1mDELETE FROM "books"[0m
|
30023
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30024
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
30025
|
+
[1m[35m (3.6ms)[0m commit transaction
|
30026
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30027
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 1
|
30028
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 1], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30029
|
+
[paperclip] Saving attachments.
|
30030
|
+
[1m[35m (3.5ms)[0m commit transaction
|
30031
|
+
[1m[36mSQL (3.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
30032
|
+
[1m[35mSQL (2.7ms)[0m DELETE FROM "books_assets"
|
30033
|
+
[1m[36mSQL (4.7ms)[0m [1mDELETE FROM "books"[0m
|
30034
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30035
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
30036
|
+
[1m[35m (3.3ms)[0m commit transaction
|
30037
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30038
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 2
|
30039
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 2], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30040
|
+
[paperclip] Saving attachments.
|
30041
|
+
[1m[35m (2.9ms)[0m commit transaction
|
30042
|
+
[1m[36mSQL (4.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
30043
|
+
[1m[35mSQL (3.3ms)[0m DELETE FROM "books_assets"
|
30044
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "books"[0m
|
30045
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30046
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
30047
|
+
[1m[35m (4.4ms)[0m commit transaction
|
30048
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
30049
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 3
|
30050
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 3], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30051
|
+
[paperclip] Saving attachments.
|
30052
|
+
[1m[35m (3.9ms)[0m commit transaction
|
30053
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
30054
|
+
[1m[35mSQL (4.5ms)[0m DELETE FROM "books_assets"
|
30055
|
+
[1m[36mSQL (3.3ms)[0m [1mDELETE FROM "books"[0m
|
30056
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30057
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "rt_tipi_pannello" ("name") VALUES (?)[0m [["name", "Suntech STP"]]
|
30058
|
+
[1m[35m (3.8ms)[0m commit transaction
|
30059
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30060
|
+
[1m[35mTipiPannello::Documenti::SchedaTecnica Load (0.3ms)[0m SELECT "rt_tipi_pannello_assets".* FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP' LIMIT 1
|
30061
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("rt_tipi_pannello_assets"."counter") AS max_id FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP'[0m
|
30062
|
+
[1m[35mSQL (51.7ms)[0m INSERT INTO "rt_tipi_pannello_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "counter", "displayable", "tipo_pannello_name", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:23 UTC +00:00], ["counter", 1], ["displayable", false], ["tipo_pannello_name", "Suntech STP"], ["type", "TipiPannello::Documenti::SchedaTecnica"]]
|
30063
|
+
[paperclip] Saving attachments.
|
30064
|
+
[1m[36m (3.4ms)[0m [1mcommit transaction[0m
|
30065
|
+
[1m[35mSQL (3.0ms)[0m DELETE FROM "books_assets"
|
30066
|
+
[1m[36mSQL (2.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
30067
|
+
[1m[35mSQL (2.7ms)[0m DELETE FROM "books"
|
30068
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30069
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30070
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
30071
|
+
[1m[35m (0.0ms)[0m begin transaction
|
30072
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 4[0m
|
30073
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 4], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30074
|
+
[paperclip] Saving attachments.
|
30075
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
30076
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books_assets"
|
30077
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
30078
|
+
[1m[35mSQL (3.2ms)[0m DELETE FROM "books"
|
30079
|
+
[1m[36mSQL (5.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
30080
|
+
[1m[35mSQL (3.2ms)[0m DELETE FROM "books_assets"
|
30081
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books"[0m
|
30082
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL
|
30083
|
+
[1m[36mSQL (3.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
30084
|
+
[1m[35mSQL (4.0ms)[0m DELETE FROM "books_assets"
|
30085
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books"[0m
|
30086
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30087
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL[0m
|
30088
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30089
|
+
[paperclip] Saving attachments.
|
30090
|
+
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
30091
|
+
[1m[35m (0.0ms)[0m begin transaction
|
30092
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL[0m
|
30093
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30094
|
+
[paperclip] Saving attachments.
|
30095
|
+
[1m[36m (3.8ms)[0m [1mcommit transaction[0m
|
30096
|
+
[1m[35mBooks::Asset Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1 [["id", 5]]
|
30097
|
+
[1m[36mBooks::Asset Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1[0m [["id", 6]]
|
30098
|
+
[1m[35mSQL (3.7ms)[0m DELETE FROM "books_assets"
|
30099
|
+
[1m[36mSQL (3.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
30100
|
+
[1m[35mSQL (4.1ms)[0m DELETE FROM "books"
|
30101
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30102
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30103
|
+
[1m[36m (4.0ms)[0m [1mcommit transaction[0m
|
30104
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30105
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 5[0m
|
30106
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:23 UTC +00:00], ["book_id", 5], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30107
|
+
[paperclip] Saving attachments.
|
30108
|
+
[1m[36m (2.9ms)[0m [1mcommit transaction[0m
|
30109
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books_assets"
|
30110
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
30111
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books"
|
30112
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30113
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30114
|
+
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
30115
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30116
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 6[0m
|
30117
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:23 UTC +00:00], ["book_id", 6], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30118
|
+
[paperclip] Saving attachments.
|
30119
|
+
[1m[36m (3.2ms)[0m [1mcommit transaction[0m
|
30120
|
+
[1m[35mSQL (5.7ms)[0m DELETE FROM "books_assets"
|
30121
|
+
[1m[36mSQL (3.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
30122
|
+
[1m[35mSQL (3.4ms)[0m DELETE FROM "books"
|
30123
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30124
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "chapters" ("name") VALUES (?) [["name", "a new chapter"]]
|
30125
|
+
[1m[36m (3.4ms)[0m [1mcommit transaction[0m
|
30126
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30127
|
+
[1m[36m (0.3ms)[0m [1mSELECT 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'[0m
|
30128
|
+
[1m[35mSQL (0.6ms)[0m 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, 13 Jul 2012 14:11:23 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 1], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
|
30129
|
+
[paperclip] Saving attachments.
|
30130
|
+
[1m[36m (2.5ms)[0m [1mcommit transaction[0m
|
30131
|
+
[1m[35mSQL (3.0ms)[0m DELETE FROM "books_assets"
|
30132
|
+
[1m[36mSQL (3.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
30133
|
+
[1m[35mSQL (4.7ms)[0m DELETE FROM "books"
|
30134
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30135
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "chapters" ("name") VALUES (?) [["name", "a new chapter"]]
|
30136
|
+
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
|
30137
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30138
|
+
[1m[36m (0.3ms)[0m [1mSELECT 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'[0m
|
30139
|
+
[1m[35mSQL (0.6ms)[0m 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, 13 Jul 2012 14:11:23 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 2], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
|
30140
|
+
[paperclip] Saving attachments.
|
30141
|
+
[1m[36m (4.4ms)[0m [1mcommit transaction[0m
|
30142
|
+
[1m[35mSQL (3.5ms)[0m DELETE FROM "books_assets"
|
30143
|
+
[1m[36mSQL (3.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
30144
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books"
|
30145
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
30146
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books_assets"
|
30147
|
+
[1m[36mSQL (4.0ms)[0m [1mDELETE FROM "books"[0m
|
30148
|
+
[1m[35mSQL (3.8ms)[0m DELETE FROM "books_assets"
|
30149
|
+
[1m[36mSQL (4.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
30150
|
+
[1m[35mSQL (3.3ms)[0m DELETE FROM "books"
|
30151
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30152
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30153
|
+
[1m[36m (3.9ms)[0m [1mcommit transaction[0m
|
30154
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g.jpg[0]'
|
30155
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g.jpg[0]'
|
30156
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g.jpg[0]'
|
30157
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g.jpg[0]' -resize "800x600<" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx'
|
30158
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi'
|
30159
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi[0]'
|
30160
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi[0]'
|
30161
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi[0]'
|
30162
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi[0]' -resize "64x64" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi20120713-78392-ibsdi'
|
30163
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi20120713-78392-ibsdi20120713-78392-evfpjx'
|
30164
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi[0]'
|
30165
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi[0]'
|
30166
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi[0]'
|
30167
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi[0]' -resize "128x128" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi20120713-78392-1qkmz37'
|
30168
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi20120713-78392-1qkmz3720120713-78392-92tc0s'
|
30169
|
+
[1m[35m (0.2ms)[0m begin transaction
|
30170
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 7[0m
|
30171
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Fri, 13 Jul 2012 14:11:23 UTC +00:00], ["book_id", 7], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
30172
|
+
[paperclip] Saving attachments.
|
30173
|
+
[1m[36m (4.0ms)[0m [1mcommit transaction[0m
|
30174
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books_assets"
|
30175
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
30176
|
+
[1m[35mSQL (3.3ms)[0m DELETE FROM "books"
|
30177
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30178
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30179
|
+
[1m[36m (3.9ms)[0m [1mcommit transaction[0m
|
30180
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g.jpg[0]'
|
30181
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g.jpg[0]'
|
30182
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g.jpg[0]'
|
30183
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g.jpg[0]' -resize "800x600<" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr'
|
30184
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu'
|
30185
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu[0]'
|
30186
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu[0]'
|
30187
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu[0]'
|
30188
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu[0]' -resize "64x64" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu20120713-78392-5va71j'
|
30189
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu20120713-78392-5va71j20120713-78392-rbptla'
|
30190
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu[0]'
|
30191
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu[0]'
|
30192
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu[0]'
|
30193
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu[0]' -resize "128x128" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu20120713-78392-1vgf2pu'
|
30194
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu20120713-78392-1vgf2pu20120713-78392-1mdprtg'
|
30195
|
+
[1m[35m (0.3ms)[0m begin transaction
|
30196
|
+
[1m[36m (0.4ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 8[0m
|
30197
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Fri, 13 Jul 2012 14:11:23 UTC +00:00], ["book_id", 8], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
30198
|
+
[paperclip] Saving attachments.
|
30199
|
+
[1m[36m (3.1ms)[0m [1mcommit transaction[0m
|
30200
|
+
[1m[35mSQL (3.3ms)[0m DELETE FROM "books_assets"
|
30201
|
+
[1m[36mSQL (2.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
30202
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books"
|
30203
|
+
[1m[36mSQL (4.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
30204
|
+
[1m[35mSQL (3.2ms)[0m DELETE FROM "books_assets"
|
30205
|
+
[1m[36mSQL (4.0ms)[0m [1mDELETE FROM "books"[0m
|
30206
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books_assets"
|
30207
|
+
[1m[36mSQL (3.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
30208
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books"
|
30209
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
30210
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books_assets"
|
30211
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books"[0m
|
30212
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books_assets"
|
30213
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
30214
|
+
[1m[35mSQL (3.9ms)[0m DELETE FROM "books"
|
30215
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30216
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30217
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
30218
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30219
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 9[0m
|
30220
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:24 UTC +00:00], ["book_id", 9], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30221
|
+
[paperclip] Saving attachments.
|
30222
|
+
[1m[36m (3.9ms)[0m [1mcommit transaction[0m
|
30223
|
+
Processing by Books::AssetsController#index as HTML
|
30224
|
+
Parameters: {"multiple"=>true, "fk_name"=>"9", "type"=>"books/assets/test_doc"}
|
30225
|
+
[1m[35mBook Load (0.3ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "9"]]
|
30226
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (86.6ms)
|
30227
|
+
[1m[36mBooks::Assets::TestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 9[0m
|
30228
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (3.1ms)
|
30229
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (4.4ms)
|
30230
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (94.7ms)
|
30231
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/index.html.erb (120.4ms)
|
30232
|
+
Completed 200 OK in 217ms (Views: 213.3ms | ActiveRecord: 0.6ms)
|
30233
|
+
[1m[35mSQL (43.8ms)[0m DELETE FROM "books_assets"
|
30234
|
+
[1m[36mSQL (159.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
30235
|
+
[1m[35mSQL (10.1ms)[0m DELETE FROM "books"
|
30236
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30237
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30238
|
+
[1m[36m (5.2ms)[0m [1mcommit transaction[0m
|
30239
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30240
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10[0m
|
30241
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 10], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30242
|
+
[paperclip] Saving attachments.
|
30243
|
+
[1m[36m (4.9ms)[0m [1mcommit transaction[0m
|
30244
|
+
Processing by Books::AssetsController#index as HTML
|
30245
|
+
Parameters: {"target"=>"target_div", "fk_name"=>"10", "type"=>"books/assets/test_doc"}
|
30246
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "10"]]
|
30247
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.0ms)
|
30248
|
+
[1m[36mBooks::Assets::TestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10[0m
|
30249
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (1.9ms)
|
30250
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.2ms)
|
30251
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.4ms)
|
30252
|
+
Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.4ms)
|
30253
|
+
[1m[35mSQL (6.3ms)[0m DELETE FROM "books_assets"
|
30254
|
+
[1m[36mSQL (5.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
30255
|
+
[1m[35mSQL (6.2ms)[0m DELETE FROM "books"
|
30256
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30257
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30258
|
+
[1m[36m (3.5ms)[0m [1mcommit transaction[0m
|
30259
|
+
[1m[35m (0.2ms)[0m begin transaction
|
30260
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 11[0m
|
30261
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 11], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30262
|
+
[paperclip] Saving attachments.
|
30263
|
+
[1m[36m (4.2ms)[0m [1mcommit transaction[0m
|
30264
|
+
Processing by Books::AssetsController#index as HTML
|
30265
|
+
Parameters: {"target"=>"target_div", "fk_name"=>"11", "type"=>"books/assets/test_doc"}
|
30266
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "11"]]
|
30267
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.9ms)
|
30268
|
+
[1m[36mBooks::Assets::TestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 11[0m
|
30269
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.0ms)
|
30270
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.3ms)
|
30271
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (5.5ms)
|
30272
|
+
Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.4ms)
|
30273
|
+
[1m[35mSQL (3.5ms)[0m DELETE FROM "books_assets"
|
30274
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
30275
|
+
[1m[35mSQL (5.5ms)[0m DELETE FROM "books"
|
30276
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30277
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30278
|
+
[1m[36m (4.4ms)[0m [1mcommit transaction[0m
|
30279
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30280
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 12[0m
|
30281
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 12], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30282
|
+
[paperclip] Saving attachments.
|
30283
|
+
[1m[36m (5.0ms)[0m [1mcommit transaction[0m
|
30284
|
+
Processing by Books::AssetsController#index as HTML
|
30285
|
+
Parameters: {"target"=>"target_div", "fk_name"=>"12", "type"=>"books/assets/test_doc"}
|
30286
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "12"]]
|
30287
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.3ms)
|
30288
|
+
[1m[36mBooks::Assets::TestDoc Load (0.4ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 12[0m
|
30289
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.0ms)
|
30290
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.3ms)
|
30291
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (5.6ms)
|
30292
|
+
Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.7ms)
|
30293
|
+
[1m[35mSQL (6.2ms)[0m DELETE FROM "books_assets"
|
30294
|
+
[1m[36mSQL (3.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
30295
|
+
[1m[35mSQL (4.3ms)[0m DELETE FROM "books"
|
30296
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30297
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30298
|
+
[1m[36m (3.4ms)[0m [1mcommit transaction[0m
|
30299
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30300
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 13[0m
|
30301
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 13], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30302
|
+
[paperclip] Saving attachments.
|
30303
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
30304
|
+
Processing by Books::AssetsController#index as JSON
|
30305
|
+
Parameters: {"target"=>"target_div", "fk_name"=>"13", "type"=>"books/assets/test_doc"}
|
30306
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "13"]]
|
30307
|
+
[1m[36mBooks::Assets::TestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 13[0m
|
30308
|
+
Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.4ms)
|
30309
|
+
[1m[35mSQL (3.8ms)[0m DELETE FROM "books_assets"
|
30310
|
+
[1m[36mSQL (4.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
30311
|
+
[1m[35mSQL (5.4ms)[0m DELETE FROM "books"
|
30312
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30313
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30314
|
+
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
30315
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30316
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 14[0m
|
30317
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 14], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30318
|
+
[paperclip] Saving attachments.
|
30319
|
+
[1m[36m (3.2ms)[0m [1mcommit transaction[0m
|
30320
|
+
Processing by Books::AssetsController#index as JSON
|
30321
|
+
Parameters: {"target"=>"target_div", "fk_name"=>"14", "type"=>"books/assets/test_doc"}
|
30322
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "14"]]
|
30323
|
+
[1m[36mBooks::Assets::TestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 14[0m
|
30324
|
+
Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.4ms)
|
30325
|
+
[1m[35mSQL (3.8ms)[0m DELETE FROM "books_assets"
|
30326
|
+
[1m[36mSQL (3.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
30327
|
+
[1m[35mSQL (3.3ms)[0m DELETE FROM "books"
|
30328
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30329
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30330
|
+
[1m[36m (3.1ms)[0m [1mcommit transaction[0m
|
30331
|
+
Processing by Books::AssetsController#create as JS
|
30332
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007f7f5e9e3bc8 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test.jpg20120713-78392-99net>>, "fk_name"=>"15", "type"=>"books/assets/test_doc"}
|
30333
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "15"]]
|
30334
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30335
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 15
|
30336
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 15], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30337
|
+
[paperclip] Saving attachments.
|
30338
|
+
[1m[35m (3.1ms)[0m commit transaction
|
30339
|
+
[1m[36mBooks::Assets::TestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 15[0m
|
30340
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (2.5ms)
|
30341
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (3.2ms)
|
30342
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (5.1ms)
|
30343
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (10.3ms)
|
30344
|
+
Completed 200 OK in 33ms (Views: 17.9ms | ActiveRecord: 4.3ms)
|
30345
|
+
[1m[35mSQL (3.5ms)[0m DELETE FROM "books_assets"
|
30346
|
+
[1m[36mSQL (4.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
30347
|
+
[1m[35mSQL (3.6ms)[0m DELETE FROM "books"
|
30348
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30349
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30350
|
+
[1m[36m (3.1ms)[0m [1mcommit transaction[0m
|
30351
|
+
Processing by Books::AssetsController#create as JS
|
30352
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007f7f5ea630d0 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test.jpg20120713-78392-1bk8fhp>>, "fk_name"=>"16", "type"=>"books/assets/test_doc"}
|
30353
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "16"]]
|
30354
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30355
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 16
|
30356
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 16], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30357
|
+
[paperclip] Saving attachments.
|
30358
|
+
[1m[35m (4.7ms)[0m commit transaction
|
30359
|
+
[1m[36mBooks::Assets::TestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 16[0m
|
30360
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.8ms)
|
30361
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (3.6ms)
|
30362
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (4.0ms)
|
30363
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (6.6ms)
|
30364
|
+
Completed 200 OK in 26ms (Views: 8.9ms | ActiveRecord: 6.0ms)
|
30365
|
+
[1m[35mSQL (5.1ms)[0m DELETE FROM "books_assets"
|
30366
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
30367
|
+
[1m[35mSQL (3.0ms)[0m DELETE FROM "books"
|
30368
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30369
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30370
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
30371
|
+
Processing by Books::AssetsController#create as JS
|
30372
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007f7f5eab95c0 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test.jpg20120713-78392-15ajdot>>, "fk_name"=>"17", "type"=>"books/assets/test_doc"}
|
30373
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "17"]]
|
30374
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30375
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 17
|
30376
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 17], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30377
|
+
[paperclip] Saving attachments.
|
30378
|
+
[1m[35m (2.9ms)[0m commit transaction
|
30379
|
+
[1m[36mBooks::Assets::TestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 17[0m
|
30380
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.6ms)
|
30381
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (3.0ms)
|
30382
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (3.5ms)
|
30383
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (5.8ms)
|
30384
|
+
Completed 200 OK in 24ms (Views: 8.4ms | ActiveRecord: 4.2ms)
|
30385
|
+
[1m[35mSQL (3.0ms)[0m DELETE FROM "books_assets"
|
30386
|
+
[1m[36mSQL (4.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
30387
|
+
[1m[35mSQL (2.7ms)[0m DELETE FROM "books"
|
30388
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30389
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30390
|
+
[1m[36m (3.1ms)[0m [1mcommit transaction[0m
|
30391
|
+
Processing by Books::AssetsController#create as JS
|
30392
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007f7f5cd15578 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test.jpg20120713-78392-t3jfbd>>, "fk_name"=>"18", "type"=>"books/assets/test_doc"}
|
30393
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "18"]]
|
30394
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30395
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 18
|
30396
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 18], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30397
|
+
[paperclip] Saving attachments.
|
30398
|
+
[1m[35m (3.0ms)[0m commit transaction
|
30399
|
+
[1m[36mBooks::Assets::TestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 18[0m
|
30400
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.3ms)
|
30401
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (3.5ms)
|
30402
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (3.9ms)
|
30403
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (5.8ms)
|
30404
|
+
Completed 200 OK in 23ms (Views: 7.8ms | ActiveRecord: 4.4ms)
|
30405
|
+
[1m[35mSQL (3.6ms)[0m DELETE FROM "books_assets"
|
30406
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
30407
|
+
[1m[35mSQL (3.2ms)[0m DELETE FROM "books"
|
30408
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30409
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30410
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
30411
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30412
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 19[0m
|
30413
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 19], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30414
|
+
[paperclip] Saving attachments.
|
30415
|
+
[1m[36m (3.1ms)[0m [1mcommit transaction[0m
|
30416
|
+
Processing by Books::AssetsController#destroy as JS
|
30417
|
+
Parameters: {"type"=>"books/assets/test_doc", "target"=>"target_div", "filename"=>"pippo", "extension"=>"jpg", "fk_name"=>"19", "asset_id"=>"21"}
|
30418
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "19"]]
|
30419
|
+
[1m[36mBooks::Assets::TestDoc Load (0.5ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 21 LIMIT 1[0m
|
30420
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30421
|
+
[paperclip] Scheduling attachments for deletion.
|
30422
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ?[0m [["id", 21]]
|
30423
|
+
[paperclip] Deleting attachments.
|
30424
|
+
[paperclip] deleting public/system/books/19/assets/test_doc.jpg
|
30425
|
+
[1m[35m (2.8ms)[0m commit transaction
|
30426
|
+
[1m[36mBooks::Assets::TestDoc Load (0.4ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 19[0m
|
30427
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (2.2ms)
|
30428
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
30429
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.4ms)
|
30430
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (3.5ms)
|
30431
|
+
Completed 200 OK in 21ms (Views: 7.7ms | ActiveRecord: 4.5ms)
|
30432
|
+
[1m[35mSQL (3.6ms)[0m DELETE FROM "books_assets"
|
30433
|
+
[1m[36mSQL (3.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
30434
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books"
|
30435
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30436
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30437
|
+
[1m[36m (3.4ms)[0m [1mcommit transaction[0m
|
30438
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30439
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 20[0m
|
30440
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 20], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30441
|
+
[paperclip] Saving attachments.
|
30442
|
+
[1m[36m (3.2ms)[0m [1mcommit transaction[0m
|
30443
|
+
Processing by Books::AssetsController#destroy as JS
|
30444
|
+
Parameters: {"type"=>"books/assets/test_doc", "target"=>"target_div", "filename"=>"pippo", "extension"=>"jpg", "fk_name"=>"20", "asset_id"=>"22"}
|
30445
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "20"]]
|
30446
|
+
[1m[36mBooks::Assets::TestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 22 LIMIT 1[0m
|
30447
|
+
[1m[35m (0.0ms)[0m begin transaction
|
30448
|
+
[paperclip] Scheduling attachments for deletion.
|
30449
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ?[0m [["id", 22]]
|
30450
|
+
[paperclip] Deleting attachments.
|
30451
|
+
[paperclip] deleting public/system/books/20/assets/test_doc.jpg
|
30452
|
+
[1m[35m (2.9ms)[0m commit transaction
|
30453
|
+
[1m[36mBooks::Assets::TestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 20[0m
|
30454
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.3ms)
|
30455
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
30456
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.2ms)
|
30457
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.1ms)
|
30458
|
+
Completed 200 OK in 15ms (Views: 3.8ms | ActiveRecord: 4.3ms)
|
30459
|
+
[1m[35mSQL (3.6ms)[0m DELETE FROM "books_assets"
|
30460
|
+
[1m[36mSQL (3.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
30461
|
+
[1m[35mSQL (3.4ms)[0m DELETE FROM "books"
|
30462
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30463
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30464
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
30465
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30466
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 21[0m
|
30467
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 21], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30468
|
+
[paperclip] Saving attachments.
|
30469
|
+
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
|
30470
|
+
Processing by Books::AssetsController#destroy as JS
|
30471
|
+
Parameters: {"type"=>"books/assets/test_doc", "target"=>"target_div", "filename"=>"pippo", "extension"=>"jpg", "fk_name"=>"21", "asset_id"=>"23"}
|
30472
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "21"]]
|
30473
|
+
[1m[36mBooks::Assets::TestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 23 LIMIT 1[0m
|
30474
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30475
|
+
[paperclip] Scheduling attachments for deletion.
|
30476
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ?[0m [["id", 23]]
|
30477
|
+
[paperclip] Deleting attachments.
|
30478
|
+
[paperclip] deleting public/system/books/21/assets/test_doc.jpg
|
30479
|
+
[1m[35m (3.3ms)[0m commit transaction
|
30480
|
+
[1m[36mBooks::Assets::TestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 21[0m
|
30481
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.8ms)
|
30482
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
30483
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.3ms)
|
30484
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.8ms)
|
30485
|
+
Completed 200 OK in 17ms (Views: 5.1ms | ActiveRecord: 4.5ms)
|
30486
|
+
[1m[35mSQL (3.7ms)[0m DELETE FROM "books_assets"
|
30487
|
+
[1m[36mSQL (3.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
30488
|
+
[1m[35mSQL (3.2ms)[0m DELETE FROM "books"
|
30489
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30490
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30491
|
+
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
30492
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30493
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 22[0m
|
30494
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 22], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30495
|
+
[paperclip] Saving attachments.
|
30496
|
+
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
30497
|
+
Processing by Books::AssetsController#destroy as JS
|
30498
|
+
Parameters: {"type"=>"books/assets/test_doc", "target"=>"target_div", "filename"=>"pippo", "extension"=>"jpg", "fk_name"=>"22", "asset_id"=>"24"}
|
30499
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "22"]]
|
30500
|
+
[1m[36mBooks::Assets::TestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 24 LIMIT 1[0m
|
30501
|
+
[1m[35m (0.0ms)[0m begin transaction
|
30502
|
+
[paperclip] Scheduling attachments for deletion.
|
30503
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ?[0m [["id", 24]]
|
30504
|
+
[paperclip] Deleting attachments.
|
30505
|
+
[paperclip] deleting public/system/books/22/assets/test_doc.jpg
|
30506
|
+
[1m[35m (4.9ms)[0m commit transaction
|
30507
|
+
[1m[36mBooks::Assets::TestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 22[0m
|
30508
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.5ms)
|
30509
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
30510
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.2ms)
|
30511
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.3ms)
|
30512
|
+
Completed 200 OK in 17ms (Views: 4.2ms | ActiveRecord: 5.9ms)
|
30513
|
+
[1m[35mSQL (3.2ms)[0m DELETE FROM "books_assets"
|
30514
|
+
[1m[36mSQL (5.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
30515
|
+
[1m[35mSQL (3.6ms)[0m DELETE FROM "books"
|
30516
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30517
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30518
|
+
[1m[36m (3.1ms)[0m [1mcommit transaction[0m
|
30519
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30520
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 23[0m
|
30521
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 23], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30522
|
+
[paperclip] Saving attachments.
|
30523
|
+
[1m[36m (3.1ms)[0m [1mcommit transaction[0m
|
30524
|
+
Processing by Books::AssetsController#get as HTML
|
30525
|
+
Parameters: {"type"=>"books/assets/test_doc", "fk_name"=>"23", "asset_id"=>"25", "filename"=>"pippo", "extension"=>"jpg"}
|
30526
|
+
[1m[35mBooks::Assets::TestDoc Load (0.7ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? LIMIT 1 [["id", "25"]]
|
30527
|
+
Sent file public/system/books/23/assets/test_doc.jpg (0.3ms)
|
30528
|
+
Completed 200 OK in 5ms (ActiveRecord: 0.7ms)
|
30529
|
+
[1m[36mSQL (3.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
30530
|
+
[1m[35mSQL (3.2ms)[0m DELETE FROM "books_assets"
|
30531
|
+
[1m[36mSQL (2.9ms)[0m [1mDELETE FROM "books"[0m
|
30532
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30533
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
30534
|
+
[1m[35m (3.3ms)[0m commit transaction
|
30535
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy.jpg[0]'
|
30536
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy.jpg[0]'
|
30537
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy.jpg[0]'
|
30538
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy.jpg[0]' -resize "800x600<" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v'
|
30539
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le'
|
30540
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le[0]'
|
30541
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le[0]'
|
30542
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le[0]'
|
30543
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le[0]' -resize "64x64" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le20120713-78392-24kubn'
|
30544
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le20120713-78392-24kubn20120713-78392-1r9q0ov'
|
30545
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le[0]'
|
30546
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le[0]'
|
30547
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le[0]'
|
30548
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le[0]' -resize "128x128" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le20120713-78392-bi8jf3'
|
30549
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le20120713-78392-bi8jf320120713-78392-17lf4n1'
|
30550
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
30551
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 24
|
30552
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 24], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
30553
|
+
[paperclip] Saving attachments.
|
30554
|
+
[1m[35m (3.2ms)[0m commit transaction
|
30555
|
+
Processing by Books::AssetsController#get as HTML
|
30556
|
+
Parameters: {"type"=>"books/assets/test_image", "fk_name"=>"24", "asset_id"=>"26", "style"=>"thumb", "filename"=>"pippo", "extension"=>"jpg"}
|
30557
|
+
[1m[36mBooks::Assets::TestImage Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."id" = ? LIMIT 1[0m [["id", "26"]]
|
30558
|
+
Sent file public/system/books/24/assets/thumb/test_image.jpg (0.2ms)
|
30559
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
|
30560
|
+
[1m[35mSQL (3.2ms)[0m DELETE FROM "books_assets"
|
30561
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
30562
|
+
[1m[35mSQL (3.2ms)[0m DELETE FROM "books"
|
30563
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30564
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30565
|
+
[1m[36m (3.8ms)[0m [1mcommit transaction[0m
|
30566
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne.jpg[0]'
|
30567
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne.jpg[0]'
|
30568
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne.jpg[0]'
|
30569
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne.jpg[0]' -resize "800x600<" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw'
|
30570
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux'
|
30571
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux[0]'
|
30572
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux[0]'
|
30573
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux[0]'
|
30574
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux[0]' -resize "64x64" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux20120713-78392-135sonv'
|
30575
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux20120713-78392-135sonv20120713-78392-1htuaov'
|
30576
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux[0]'
|
30577
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux[0]'
|
30578
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux[0]'
|
30579
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux[0]' -resize "128x128" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux20120713-78392-vj0ilp'
|
30580
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux20120713-78392-vj0ilp20120713-78392-12ng82d'
|
30581
|
+
[1m[35m (0.3ms)[0m begin transaction
|
30582
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 25[0m
|
30583
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Fri, 13 Jul 2012 14:11:26 UTC +00:00], ["book_id", 25], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
30584
|
+
[paperclip] Saving attachments.
|
30585
|
+
[1m[36m (3.9ms)[0m [1mcommit transaction[0m
|
30586
|
+
Processing by Books::AssetsController#get as HTML
|
30587
|
+
Parameters: {"type"=>"books/assets/test_image", "fk_name"=>"25", "asset_id"=>"27", "style"=>"thumb", "filename"=>"pippo", "extension"=>"jpg"}
|
30588
|
+
[1m[35mBooks::Assets::TestImage Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."id" = ? LIMIT 1 [["id", "27"]]
|
30589
|
+
Sent file public/system/books/25/assets/thumb/test_image.jpg (0.4ms)
|
30590
|
+
Completed 200 OK in 5ms (ActiveRecord: 0.3ms)
|
30591
|
+
[32mCommand[0m :: identify -format %wx%h '/Users/andrea/dev/kemen/acts_as_assets/spec/temp/test.jpg[0]'
|
30592
|
+
[1m[36mSQL (5.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
30593
|
+
[1m[35mSQL (3.6ms)[0m DELETE FROM "books_assets"
|
30594
|
+
[1m[36mSQL (3.2ms)[0m [1mDELETE FROM "books"[0m
|
30595
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30596
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
30597
|
+
[1m[35m (2.7ms)[0m commit transaction
|
30598
|
+
Processing by Books::AssetsController#get as HTML
|
30599
|
+
Parameters: {"type"=>"books/assets/test_doc", "fk_name"=>"26", "asset_id"=>"123456789", "filename"=>"pippo", "extension"=>"jpg"}
|
30600
|
+
[1m[36mBooks::Assets::TestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? LIMIT 1[0m [["id", "123456789"]]
|
30601
|
+
Completed 404 Not Found in 8ms (Views: 6.0ms | ActiveRecord: 0.2ms)
|
30602
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books_assets"
|
30603
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
30604
|
+
[1m[35mSQL (2.6ms)[0m DELETE FROM "books"
|
30605
|
+
[1m[36mSQL (3.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
30606
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books_assets"
|
30607
|
+
[1m[36mSQL (4.0ms)[0m [1mDELETE FROM "books"[0m
|
30608
|
+
[1m[35mSQL (6.4ms)[0m DELETE FROM "books_assets"
|
30609
|
+
[1m[36mSQL (3.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
30610
|
+
[1m[35mSQL (3.3ms)[0m DELETE FROM "books"
|
30611
|
+
[1m[36mSQL (31.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
30612
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books_assets"
|
30613
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "books"[0m
|
30614
|
+
[1m[35mSQL (3.0ms)[0m DELETE FROM "books_assets"
|
30615
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
30616
|
+
[1m[35mSQL (2.7ms)[0m DELETE FROM "books"
|
30617
|
+
[1m[36mSQL (2.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
30618
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books_assets"
|
30619
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "books"[0m
|
30620
|
+
[1m[35mSQL (3.4ms)[0m DELETE FROM "books_assets"
|
30621
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
30622
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books"
|
30623
|
+
[1m[36mSQL (3.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
30624
|
+
[1m[35mSQL (4.7ms)[0m DELETE FROM "books_assets"
|
30625
|
+
[1m[36mSQL (3.3ms)[0m [1mDELETE FROM "books"[0m
|
30626
|
+
[1m[35mSQL (3.4ms)[0m DELETE FROM "books_assets"
|
30627
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
30628
|
+
[1m[35mSQL (5.7ms)[0m DELETE FROM "books"
|
30629
|
+
[1m[36mSQL (3.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
30630
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books_assets"
|
30631
|
+
[1m[36mSQL (3.9ms)[0m [1mDELETE FROM "books"[0m
|
30632
|
+
[1m[35mSQL (3.6ms)[0m DELETE FROM "books_assets"
|
30633
|
+
[1m[36mSQL (3.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
30634
|
+
[1m[35mSQL (4.6ms)[0m DELETE FROM "books"
|
30635
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
30636
|
+
[1m[35mSQL (4.4ms)[0m DELETE FROM "books_assets"
|
30637
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books"[0m
|
30638
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30639
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
30640
|
+
[1m[35m (3.3ms)[0m commit transaction
|
30641
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30642
|
+
[1m[35mBooks::Assets::UniqueTestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 27 LIMIT 1
|
30643
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 27[0m
|
30644
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 27], ["counter", 1], ["displayable", false], ["type", "Books::Assets::UniqueTestDoc"]]
|
30645
|
+
[paperclip] Saving attachments.
|
30646
|
+
[1m[36m (2.9ms)[0m [1mcommit transaction[0m
|
30647
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30648
|
+
[1m[36mBooks::Assets::UniqueTestDoc Load (0.4ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 27 LIMIT 1[0m
|
30649
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
30650
|
+
[1m[36mBooks::Assets::UniqueTestDoc Load (0.4ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 27 LIMIT 1[0m
|
30651
|
+
[1m[35mBooks::Assets::UniqueTestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 27 LIMIT 1
|
30652
|
+
[1m[36mSQL (4.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
30653
|
+
[1m[35mSQL (4.7ms)[0m DELETE FROM "books_assets"
|
30654
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books"[0m
|
30655
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30656
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
30657
|
+
[1m[35m (3.9ms)[0m commit transaction
|
30658
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30659
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 28
|
30660
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 28], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30661
|
+
[paperclip] Saving attachments.
|
30662
|
+
[1m[35m (3.2ms)[0m commit transaction
|
30663
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30664
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 28
|
30665
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 28], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30666
|
+
[paperclip] Saving attachments.
|
30667
|
+
[1m[35m (4.1ms)[0m commit transaction
|
30668
|
+
Connecting to database specified by database.yml
|
30669
|
+
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
30670
|
+
[1m[35m (3.2ms)[0m DROP TABLE "books"
|
30671
|
+
[1m[36m (3.0ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) [0m
|
30672
|
+
[1m[35m (3.1ms)[0m DROP TABLE "books_assets"
|
30673
|
+
[1m[36m (4.5ms)[0m [1mCREATE TABLE "books_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "book_id" integer, "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
30674
|
+
[1m[35m (3.2ms)[0m DROP TABLE "chapters"
|
30675
|
+
[1m[36m (3.0ms)[0m [1mCREATE TABLE "chapters" ("name" varchar(255) NOT NULL) [0m
|
30676
|
+
[1m[35m (2.9ms)[0m DROP TABLE "chapters_assets"
|
30677
|
+
[1m[36m (3.2ms)[0m [1mCREATE TABLE "chapters_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "chapter_name" varchar(255), "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
30678
|
+
[1m[35m (20.6ms)[0m DROP TABLE "rt_tipi_pannello"
|
30679
|
+
[1m[36m (3.3ms)[0m [1mCREATE TABLE "rt_tipi_pannello" ("name" varchar(255) NOT NULL) [0m
|
30680
|
+
[1m[35m (3.1ms)[0m DROP TABLE "rt_tipi_pannello_assets"
|
30681
|
+
[1m[36m (2.9ms)[0m [1mCREATE TABLE "rt_tipi_pannello_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "displayable" boolean DEFAULT 'f' NOT NULL, "tipo_pannello_name" varchar(255)) [0m
|
30682
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books_assets"
|
30683
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
30684
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books"
|
30685
|
+
[1m[36mSQL (3.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
30686
|
+
[1m[35mSQL (5.8ms)[0m DELETE FROM "books_assets"
|
30687
|
+
[1m[36mSQL (4.2ms)[0m [1mDELETE FROM "books"[0m
|
30688
|
+
[1m[35mSQL (3.7ms)[0m DELETE FROM "books_assets"
|
30689
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
30690
|
+
[1m[35mSQL (6.5ms)[0m DELETE FROM "books"
|
30691
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
30692
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books_assets"
|
30693
|
+
[1m[36mSQL (3.3ms)[0m [1mDELETE FROM "books"[0m
|
30694
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books_assets"
|
30695
|
+
[1m[36mSQL (5.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
30696
|
+
[1m[35mSQL (3.6ms)[0m DELETE FROM "books"
|
30697
|
+
[1m[36mSQL (3.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
30698
|
+
[1m[35mSQL (4.7ms)[0m DELETE FROM "books_assets"
|
30699
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books"[0m
|
30700
|
+
[1m[35mSQL (4.1ms)[0m DELETE FROM "books_assets"
|
30701
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
30702
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books"
|
30703
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
30704
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books_assets"
|
30705
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "books"[0m
|
30706
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books_assets"
|
30707
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
30708
|
+
[1m[35mSQL (2.7ms)[0m DELETE FROM "books"
|
30709
|
+
[1m[36mSQL (4.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
30710
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books_assets"
|
30711
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "books"[0m
|
30712
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30713
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
30714
|
+
[1m[35m (3.0ms)[0m commit transaction
|
30715
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30716
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 1
|
30717
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 1], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30718
|
+
[paperclip] Saving attachments.
|
30719
|
+
[1m[35m (3.2ms)[0m commit transaction
|
30720
|
+
[1m[36mSQL (3.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
30721
|
+
[1m[35mSQL (2.6ms)[0m DELETE FROM "books_assets"
|
30722
|
+
[1m[36mSQL (2.6ms)[0m [1mDELETE FROM "books"[0m
|
30723
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30724
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
30725
|
+
[1m[35m (2.4ms)[0m commit transaction
|
30726
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
30727
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 2
|
30728
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 2], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30729
|
+
[paperclip] Saving attachments.
|
30730
|
+
[1m[35m (2.7ms)[0m commit transaction
|
30731
|
+
[1m[36mSQL (2.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
30732
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books_assets"
|
30733
|
+
[1m[36mSQL (5.6ms)[0m [1mDELETE FROM "books"[0m
|
30734
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30735
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
30736
|
+
[1m[35m (2.8ms)[0m commit transaction
|
30737
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30738
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 3
|
30739
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 3], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30740
|
+
[paperclip] Saving attachments.
|
30741
|
+
[1m[35m (3.6ms)[0m commit transaction
|
30742
|
+
[1m[36mSQL (3.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
30743
|
+
[1m[35mSQL (3.4ms)[0m DELETE FROM "books_assets"
|
30744
|
+
[1m[36mSQL (3.3ms)[0m [1mDELETE FROM "books"[0m
|
30745
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30746
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "rt_tipi_pannello" ("name") VALUES (?)[0m [["name", "Suntech STP"]]
|
30747
|
+
[1m[35m (3.9ms)[0m commit transaction
|
30748
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30749
|
+
[1m[35mTipiPannello::Documenti::SchedaTecnica Load (0.2ms)[0m SELECT "rt_tipi_pannello_assets".* FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP' LIMIT 1
|
30750
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("rt_tipi_pannello_assets"."counter") AS max_id FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP'[0m
|
30751
|
+
[1m[35mSQL (53.3ms)[0m INSERT INTO "rt_tipi_pannello_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "counter", "displayable", "tipo_pannello_name", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:07 UTC +00:00], ["counter", 1], ["displayable", false], ["tipo_pannello_name", "Suntech STP"], ["type", "TipiPannello::Documenti::SchedaTecnica"]]
|
30752
|
+
[paperclip] Saving attachments.
|
30753
|
+
[1m[36m (4.8ms)[0m [1mcommit transaction[0m
|
30754
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books_assets"
|
30755
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
30756
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books"
|
30757
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30758
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30759
|
+
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
30760
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30761
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 4[0m
|
30762
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 4], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30763
|
+
[paperclip] Saving attachments.
|
30764
|
+
[1m[36m (3.2ms)[0m [1mcommit transaction[0m
|
30765
|
+
[1m[35mSQL (3.2ms)[0m DELETE FROM "books_assets"
|
30766
|
+
[1m[36mSQL (5.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
30767
|
+
[1m[35mSQL (3.4ms)[0m DELETE FROM "books"
|
30768
|
+
[1m[36mSQL (2.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
30769
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books_assets"
|
30770
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books"[0m
|
30771
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL
|
30772
|
+
[1m[36mSQL (4.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
30773
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books_assets"
|
30774
|
+
[1m[36mSQL (2.9ms)[0m [1mDELETE FROM "books"[0m
|
30775
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30776
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL[0m
|
30777
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30778
|
+
[paperclip] Saving attachments.
|
30779
|
+
[1m[36m (3.1ms)[0m [1mcommit transaction[0m
|
30780
|
+
[1m[35m (0.0ms)[0m begin transaction
|
30781
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL[0m
|
30782
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30783
|
+
[paperclip] Saving attachments.
|
30784
|
+
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
|
30785
|
+
[1m[35mBooks::Asset Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1 [["id", 5]]
|
30786
|
+
[1m[36mBooks::Asset Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1[0m [["id", 6]]
|
30787
|
+
[1m[35mSQL (3.4ms)[0m DELETE FROM "books_assets"
|
30788
|
+
[1m[36mSQL (4.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
30789
|
+
[1m[35mSQL (5.1ms)[0m DELETE FROM "books"
|
30790
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30791
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30792
|
+
[1m[36m (3.1ms)[0m [1mcommit transaction[0m
|
30793
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30794
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 5[0m
|
30795
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:07 UTC +00:00], ["book_id", 5], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30796
|
+
[paperclip] Saving attachments.
|
30797
|
+
[1m[36m (3.6ms)[0m [1mcommit transaction[0m
|
30798
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books_assets"
|
30799
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
30800
|
+
[1m[35mSQL (2.6ms)[0m DELETE FROM "books"
|
30801
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30802
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30803
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
30804
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30805
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 6[0m
|
30806
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:07 UTC +00:00], ["book_id", 6], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30807
|
+
[paperclip] Saving attachments.
|
30808
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
30809
|
+
[1m[35mSQL (3.5ms)[0m DELETE FROM "books_assets"
|
30810
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
30811
|
+
[1m[35mSQL (3.3ms)[0m DELETE FROM "books"
|
30812
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30813
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "chapters" ("name") VALUES (?) [["name", "a new chapter"]]
|
30814
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
30815
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30816
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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'[0m
|
30817
|
+
[1m[35mSQL (0.4ms)[0m 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", Tue, 28 Aug 2012 10:34:07 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 1], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
|
30818
|
+
[paperclip] Saving attachments.
|
30819
|
+
[1m[36m (2.5ms)[0m [1mcommit transaction[0m
|
30820
|
+
[1m[35mSQL (3.3ms)[0m DELETE FROM "books_assets"
|
30821
|
+
[1m[36mSQL (4.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
30822
|
+
[1m[35mSQL (3.3ms)[0m DELETE FROM "books"
|
30823
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30824
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "chapters" ("name") VALUES (?) [["name", "a new chapter"]]
|
30825
|
+
[1m[36m (3.2ms)[0m [1mcommit transaction[0m
|
30826
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30827
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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'[0m
|
30828
|
+
[1m[35mSQL (0.4ms)[0m 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", Tue, 28 Aug 2012 10:34:07 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 2], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
|
30829
|
+
[paperclip] Saving attachments.
|
30830
|
+
[1m[36m (4.3ms)[0m [1mcommit transaction[0m
|
30831
|
+
[1m[35mSQL (4.5ms)[0m DELETE FROM "books_assets"
|
30832
|
+
[1m[36mSQL (2.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
30833
|
+
[1m[35mSQL (5.1ms)[0m DELETE FROM "books"
|
30834
|
+
[1m[36mSQL (3.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
30835
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books_assets"
|
30836
|
+
[1m[36mSQL (4.6ms)[0m [1mDELETE FROM "books"[0m
|
30837
|
+
[1m[35mSQL (3.6ms)[0m DELETE FROM "books_assets"
|
30838
|
+
[1m[36mSQL (3.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
30839
|
+
[1m[35mSQL (4.1ms)[0m DELETE FROM "books"
|
30840
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30841
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30842
|
+
[1m[36m (5.1ms)[0m [1mcommit transaction[0m
|
30843
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x.jpg[0]'
|
30844
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x.jpg[0]'
|
30845
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x.jpg[0]'
|
30846
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x.jpg[0]' -resize "800x600<" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z'
|
30847
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg'
|
30848
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg[0]'
|
30849
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg[0]'
|
30850
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg[0]'
|
30851
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg[0]' -resize "64x64" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg20120828-95755-1b90ubj'
|
30852
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg20120828-95755-1b90ubj20120828-95755-1dixf50'
|
30853
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg[0]'
|
30854
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg[0]'
|
30855
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg[0]'
|
30856
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg[0]' -resize "128x128" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg20120828-95755-ynfuh3'
|
30857
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg20120828-95755-ynfuh320120828-95755-i5l50w'
|
30858
|
+
[1m[35m (0.2ms)[0m begin transaction
|
30859
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 7[0m
|
30860
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 14100], ["asset_updated_at", Tue, 28 Aug 2012 10:34:07 UTC +00:00], ["book_id", 7], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
30861
|
+
[paperclip] Saving attachments.
|
30862
|
+
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
30863
|
+
[1m[35mSQL (3.5ms)[0m DELETE FROM "books_assets"
|
30864
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
30865
|
+
[1m[35mSQL (3.2ms)[0m DELETE FROM "books"
|
30866
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30867
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30868
|
+
[1m[36m (5.2ms)[0m [1mcommit transaction[0m
|
30869
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv.jpg[0]'
|
30870
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv.jpg[0]'
|
30871
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv.jpg[0]'
|
30872
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv.jpg[0]' -resize "800x600<" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw'
|
30873
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg'
|
30874
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg[0]'
|
30875
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg[0]'
|
30876
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg[0]'
|
30877
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg[0]' -resize "64x64" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg20120828-95755-rrts64'
|
30878
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg20120828-95755-rrts6420120828-95755-1tcx35g'
|
30879
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg[0]'
|
30880
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg[0]'
|
30881
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg[0]'
|
30882
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg[0]' -resize "128x128" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg20120828-95755-a5jps8'
|
30883
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg20120828-95755-a5jps820120828-95755-10awmiy'
|
30884
|
+
[1m[35m (0.2ms)[0m begin transaction
|
30885
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 8[0m
|
30886
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 14100], ["asset_updated_at", Tue, 28 Aug 2012 10:34:08 UTC +00:00], ["book_id", 8], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
30887
|
+
[paperclip] Saving attachments.
|
30888
|
+
[1m[36m (3.2ms)[0m [1mcommit transaction[0m
|
30889
|
+
[1m[35mSQL (3.7ms)[0m DELETE FROM "books_assets"
|
30890
|
+
[1m[36mSQL (3.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
30891
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books"
|
30892
|
+
[1m[36mSQL (4.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
30893
|
+
[1m[35mSQL (3.3ms)[0m DELETE FROM "books_assets"
|
30894
|
+
[1m[36mSQL (3.9ms)[0m [1mDELETE FROM "books"[0m
|
30895
|
+
[1m[35mSQL (5.3ms)[0m DELETE FROM "books_assets"
|
30896
|
+
[1m[36mSQL (3.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
30897
|
+
[1m[35mSQL (3.3ms)[0m DELETE FROM "books"
|
30898
|
+
[1m[36mSQL (4.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
30899
|
+
[1m[35mSQL (3.4ms)[0m DELETE FROM "books_assets"
|
30900
|
+
[1m[36mSQL (3.6ms)[0m [1mDELETE FROM "books"[0m
|
30901
|
+
[1m[35mSQL (3.4ms)[0m DELETE FROM "books_assets"
|
30902
|
+
[1m[36mSQL (3.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
30903
|
+
[1m[35mSQL (3.5ms)[0m DELETE FROM "books"
|
30904
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30905
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30906
|
+
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
30907
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30908
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 9[0m
|
30909
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:09 UTC +00:00], ["book_id", 9], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30910
|
+
[paperclip] Saving attachments.
|
30911
|
+
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
30912
|
+
Processing by Books::AssetsController#index as HTML
|
30913
|
+
Parameters: {"multiple"=>true, "fk_name"=>"9", "type"=>"books/assets/test_doc"}
|
30914
|
+
[1m[35mBook Load (0.3ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "9"]]
|
30915
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (54.8ms)
|
30916
|
+
[1m[36mBooks::Assets::TestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 9[0m
|
30917
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (3.6ms)
|
30918
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (5.4ms)
|
30919
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (65.2ms)
|
30920
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/index.html.erb (91.3ms)
|
30921
|
+
Completed 200 OK in 221ms (Views: 217.5ms | ActiveRecord: 0.6ms)
|
30922
|
+
[1m[35mSQL (3.3ms)[0m DELETE FROM "books_assets"
|
30923
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
30924
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books"
|
30925
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30926
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30927
|
+
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
30928
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30929
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10[0m
|
30930
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:09 UTC +00:00], ["book_id", 10], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30931
|
+
[paperclip] Saving attachments.
|
30932
|
+
[1m[36m (3.4ms)[0m [1mcommit transaction[0m
|
30933
|
+
Processing by Books::AssetsController#index as HTML
|
30934
|
+
Parameters: {"target"=>"target_div", "fk_name"=>"10", "type"=>"books/assets/test_doc"}
|
30935
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "10"]]
|
30936
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.1ms)
|
30937
|
+
[1m[36mBooks::Assets::TestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10[0m
|
30938
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (3.2ms)
|
30939
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (3.7ms)
|
30940
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (6.4ms)
|
30941
|
+
Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.5ms)
|
30942
|
+
[1m[35mSQL (86.8ms)[0m DELETE FROM "books_assets"
|
30943
|
+
[1m[36mSQL (132.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
30944
|
+
[1m[35mSQL (146.8ms)[0m DELETE FROM "books"
|
30945
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30946
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30947
|
+
[1m[36m (4.4ms)[0m [1mcommit transaction[0m
|
30948
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30949
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 11[0m
|
30950
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:09 UTC +00:00], ["book_id", 11], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30951
|
+
[paperclip] Saving attachments.
|
30952
|
+
[1m[36m (6.9ms)[0m [1mcommit transaction[0m
|
30953
|
+
Processing by Books::AssetsController#index as HTML
|
30954
|
+
Parameters: {"target"=>"target_div", "fk_name"=>"11", "type"=>"books/assets/test_doc"}
|
30955
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "11"]]
|
30956
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.0ms)
|
30957
|
+
[1m[36mBooks::Assets::TestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 11[0m
|
30958
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.0ms)
|
30959
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.3ms)
|
30960
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.5ms)
|
30961
|
+
Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.4ms)
|
30962
|
+
[1m[35mSQL (6.6ms)[0m DELETE FROM "books_assets"
|
30963
|
+
[1m[36mSQL (5.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
30964
|
+
[1m[35mSQL (3.8ms)[0m DELETE FROM "books"
|
30965
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30966
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30967
|
+
[1m[36m (5.5ms)[0m [1mcommit transaction[0m
|
30968
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30969
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 12[0m
|
30970
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:09 UTC +00:00], ["book_id", 12], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30971
|
+
[paperclip] Saving attachments.
|
30972
|
+
[1m[36m (4.1ms)[0m [1mcommit transaction[0m
|
30973
|
+
Processing by Books::AssetsController#index as HTML
|
30974
|
+
Parameters: {"target"=>"target_div", "fk_name"=>"12", "type"=>"books/assets/test_doc"}
|
30975
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "12"]]
|
30976
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.2ms)
|
30977
|
+
[1m[36mBooks::Assets::TestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 12[0m
|
30978
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (1.9ms)
|
30979
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.2ms)
|
30980
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.7ms)
|
30981
|
+
Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.4ms)
|
30982
|
+
[1m[35mSQL (3.6ms)[0m DELETE FROM "books_assets"
|
30983
|
+
[1m[36mSQL (3.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
30984
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books"
|
30985
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30986
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
30987
|
+
[1m[36m (2.9ms)[0m [1mcommit transaction[0m
|
30988
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30989
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 13[0m
|
30990
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:09 UTC +00:00], ["book_id", 13], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
30991
|
+
[paperclip] Saving attachments.
|
30992
|
+
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
30993
|
+
Processing by Books::AssetsController#index as JSON
|
30994
|
+
Parameters: {"target"=>"target_div", "fk_name"=>"13", "type"=>"books/assets/test_doc"}
|
30995
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "13"]]
|
30996
|
+
[1m[36mBooks::Assets::TestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 13[0m
|
30997
|
+
Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.3ms)
|
30998
|
+
[1m[35mSQL (5.6ms)[0m DELETE FROM "books_assets"
|
30999
|
+
[1m[36mSQL (7.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
31000
|
+
[1m[35mSQL (5.9ms)[0m DELETE FROM "books"
|
31001
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31002
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
31003
|
+
[1m[36m (7.9ms)[0m [1mcommit transaction[0m
|
31004
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31005
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 14[0m
|
31006
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 14], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
31007
|
+
[paperclip] Saving attachments.
|
31008
|
+
[1m[36m (5.4ms)[0m [1mcommit transaction[0m
|
31009
|
+
Processing by Books::AssetsController#index as JSON
|
31010
|
+
Parameters: {"target"=>"target_div", "fk_name"=>"14", "type"=>"books/assets/test_doc"}
|
31011
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "14"]]
|
31012
|
+
[1m[36mBooks::Assets::TestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 14[0m
|
31013
|
+
Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.4ms)
|
31014
|
+
[1m[35mSQL (4.1ms)[0m DELETE FROM "books_assets"
|
31015
|
+
[1m[36mSQL (5.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
31016
|
+
[1m[35mSQL (5.5ms)[0m DELETE FROM "books"
|
31017
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31018
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
31019
|
+
[1m[36m (5.3ms)[0m [1mcommit transaction[0m
|
31020
|
+
Processing by Books::AssetsController#create as JS
|
31021
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fa16dcbe178 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test.jpg20120828-95755-1pdcwyw>>, "fk_name"=>"15", "type"=>"books/assets/test_doc"}
|
31022
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "15"]]
|
31023
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31024
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 15
|
31025
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 15], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
31026
|
+
[paperclip] Saving attachments.
|
31027
|
+
[1m[35m (2.9ms)[0m commit transaction
|
31028
|
+
[1m[36mBooks::Assets::TestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 15[0m
|
31029
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.9ms)
|
31030
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (3.6ms)
|
31031
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (5.2ms)
|
31032
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (9.6ms)
|
31033
|
+
Completed 200 OK in 30ms (Views: 15.1ms | ActiveRecord: 3.9ms)
|
31034
|
+
[1m[35mSQL (7.8ms)[0m DELETE FROM "books_assets"
|
31035
|
+
[1m[36mSQL (2.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
31036
|
+
[1m[35mSQL (5.4ms)[0m DELETE FROM "books"
|
31037
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31038
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
31039
|
+
[1m[36m (5.9ms)[0m [1mcommit transaction[0m
|
31040
|
+
Processing by Books::AssetsController#create as JS
|
31041
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fa16dd4cb80 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test.jpg20120828-95755-32vajm>>, "fk_name"=>"16", "type"=>"books/assets/test_doc"}
|
31042
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "16"]]
|
31043
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31044
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 16
|
31045
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 16], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
31046
|
+
[paperclip] Saving attachments.
|
31047
|
+
[1m[35m (3.3ms)[0m commit transaction
|
31048
|
+
[1m[36mBooks::Assets::TestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 16[0m
|
31049
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.5ms)
|
31050
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.2ms)
|
31051
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.5ms)
|
31052
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.5ms)
|
31053
|
+
Completed 200 OK in 23ms (Views: 6.4ms | ActiveRecord: 4.8ms)
|
31054
|
+
[1m[35mSQL (5.1ms)[0m DELETE FROM "books_assets"
|
31055
|
+
[1m[36mSQL (3.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
31056
|
+
[1m[35mSQL (4.6ms)[0m DELETE FROM "books"
|
31057
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31058
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
31059
|
+
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
31060
|
+
Processing by Books::AssetsController#create as JS
|
31061
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fa16dda2c60 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test.jpg20120828-95755-114bb24>>, "fk_name"=>"17", "type"=>"books/assets/test_doc"}
|
31062
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "17"]]
|
31063
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31064
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 17
|
31065
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 17], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
31066
|
+
[paperclip] Saving attachments.
|
31067
|
+
[1m[35m (3.6ms)[0m commit transaction
|
31068
|
+
[1m[36mBooks::Assets::TestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 17[0m
|
31069
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.2ms)
|
31070
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.5ms)
|
31071
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.9ms)
|
31072
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.7ms)
|
31073
|
+
Completed 200 OK in 22ms (Views: 7.1ms | ActiveRecord: 4.8ms)
|
31074
|
+
[1m[35mSQL (4.8ms)[0m DELETE FROM "books_assets"
|
31075
|
+
[1m[36mSQL (3.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
31076
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books"
|
31077
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31078
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
31079
|
+
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
31080
|
+
Processing by Books::AssetsController#create as JS
|
31081
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fa16b8fbab0 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test.jpg20120828-95755-1txdm1e>>, "fk_name"=>"18", "type"=>"books/assets/test_doc"}
|
31082
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "18"]]
|
31083
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31084
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 18
|
31085
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 18], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
31086
|
+
[paperclip] Saving attachments.
|
31087
|
+
[1m[35m (3.8ms)[0m commit transaction
|
31088
|
+
[1m[36mBooks::Assets::TestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 18[0m
|
31089
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.5ms)
|
31090
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.3ms)
|
31091
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.6ms)
|
31092
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.6ms)
|
31093
|
+
Completed 200 OK in 21ms (Views: 6.8ms | ActiveRecord: 5.0ms)
|
31094
|
+
[1m[35mSQL (4.6ms)[0m DELETE FROM "books_assets"
|
31095
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
31096
|
+
[1m[35mSQL (4.9ms)[0m DELETE FROM "books"
|
31097
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31098
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
31099
|
+
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
31100
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31101
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 19[0m
|
31102
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 19], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
31103
|
+
[paperclip] Saving attachments.
|
31104
|
+
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
|
31105
|
+
Processing by Books::AssetsController#destroy as JS
|
31106
|
+
Parameters: {"type"=>"books/assets/test_doc", "target"=>"target_div", "filename"=>"pippo", "extension"=>"jpg", "fk_name"=>"19", "asset_id"=>"21"}
|
31107
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "19"]]
|
31108
|
+
[1m[36mBooks::Assets::TestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 21 LIMIT 1[0m
|
31109
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31110
|
+
[paperclip] Scheduling attachments for deletion.
|
31111
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ?[0m [["id", 21]]
|
31112
|
+
[paperclip] Deleting attachments.
|
31113
|
+
[paperclip] deleting public/system/books/19/assets/test_doc.jpg
|
31114
|
+
[1m[35m (3.0ms)[0m commit transaction
|
31115
|
+
[1m[36mBooks::Assets::TestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 19[0m
|
31116
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.4ms)
|
31117
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
31118
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.2ms)
|
31119
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.1ms)
|
31120
|
+
Completed 200 OK in 17ms (Views: 5.5ms | ActiveRecord: 4.1ms)
|
31121
|
+
[1m[35mSQL (3.6ms)[0m DELETE FROM "books_assets"
|
31122
|
+
[1m[36mSQL (3.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
31123
|
+
[1m[35mSQL (3.9ms)[0m DELETE FROM "books"
|
31124
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31125
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
31126
|
+
[1m[36m (5.1ms)[0m [1mcommit transaction[0m
|
31127
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31128
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 20[0m
|
31129
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 20], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
31130
|
+
[paperclip] Saving attachments.
|
31131
|
+
[1m[36m (3.8ms)[0m [1mcommit transaction[0m
|
31132
|
+
Processing by Books::AssetsController#destroy as JS
|
31133
|
+
Parameters: {"type"=>"books/assets/test_doc", "target"=>"target_div", "filename"=>"pippo", "extension"=>"jpg", "fk_name"=>"20", "asset_id"=>"22"}
|
31134
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "20"]]
|
31135
|
+
[1m[36mBooks::Assets::TestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 22 LIMIT 1[0m
|
31136
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31137
|
+
[paperclip] Scheduling attachments for deletion.
|
31138
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ?[0m [["id", 22]]
|
31139
|
+
[paperclip] Deleting attachments.
|
31140
|
+
[paperclip] deleting public/system/books/20/assets/test_doc.jpg
|
31141
|
+
[1m[35m (3.3ms)[0m commit transaction
|
31142
|
+
[1m[36mBooks::Assets::TestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 20[0m
|
31143
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.3ms)
|
31144
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
31145
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.3ms)
|
31146
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.2ms)
|
31147
|
+
Completed 200 OK in 15ms (Views: 3.9ms | ActiveRecord: 4.4ms)
|
31148
|
+
[1m[35mSQL (4.4ms)[0m DELETE FROM "books_assets"
|
31149
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
31150
|
+
[1m[35mSQL (4.4ms)[0m DELETE FROM "books"
|
31151
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31152
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
31153
|
+
[1m[36m (3.1ms)[0m [1mcommit transaction[0m
|
31154
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31155
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 21[0m
|
31156
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 21], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
31157
|
+
[paperclip] Saving attachments.
|
31158
|
+
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
31159
|
+
Processing by Books::AssetsController#destroy as JS
|
31160
|
+
Parameters: {"type"=>"books/assets/test_doc", "target"=>"target_div", "filename"=>"pippo", "extension"=>"jpg", "fk_name"=>"21", "asset_id"=>"23"}
|
31161
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "21"]]
|
31162
|
+
[1m[36mBooks::Assets::TestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 23 LIMIT 1[0m
|
31163
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31164
|
+
[paperclip] Scheduling attachments for deletion.
|
31165
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ?[0m [["id", 23]]
|
31166
|
+
[paperclip] Deleting attachments.
|
31167
|
+
[paperclip] deleting public/system/books/21/assets/test_doc.jpg
|
31168
|
+
[1m[35m (3.1ms)[0m commit transaction
|
31169
|
+
[1m[36mBooks::Assets::TestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 21[0m
|
31170
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.4ms)
|
31171
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
31172
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.3ms)
|
31173
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.1ms)
|
31174
|
+
Completed 200 OK in 14ms (Views: 3.8ms | ActiveRecord: 4.0ms)
|
31175
|
+
[1m[35mSQL (4.7ms)[0m DELETE FROM "books_assets"
|
31176
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
31177
|
+
[1m[35mSQL (4.9ms)[0m DELETE FROM "books"
|
31178
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31179
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
31180
|
+
[1m[36m (3.2ms)[0m [1mcommit transaction[0m
|
31181
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31182
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 22[0m
|
31183
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 22], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
31184
|
+
[paperclip] Saving attachments.
|
31185
|
+
[1m[36m (3.3ms)[0m [1mcommit transaction[0m
|
31186
|
+
Processing by Books::AssetsController#destroy as JS
|
31187
|
+
Parameters: {"type"=>"books/assets/test_doc", "target"=>"target_div", "filename"=>"pippo", "extension"=>"jpg", "fk_name"=>"22", "asset_id"=>"24"}
|
31188
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "22"]]
|
31189
|
+
[1m[36mBooks::Assets::TestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 24 LIMIT 1[0m
|
31190
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31191
|
+
[paperclip] Scheduling attachments for deletion.
|
31192
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ?[0m [["id", 24]]
|
31193
|
+
[paperclip] Deleting attachments.
|
31194
|
+
[paperclip] deleting public/system/books/22/assets/test_doc.jpg
|
31195
|
+
[1m[35m (3.6ms)[0m commit transaction
|
31196
|
+
[1m[36mBooks::Assets::TestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 22[0m
|
31197
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.5ms)
|
31198
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
31199
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.3ms)
|
31200
|
+
Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.6ms)
|
31201
|
+
Completed 200 OK in 16ms (Views: 5.2ms | ActiveRecord: 4.7ms)
|
31202
|
+
[1m[35mSQL (3.6ms)[0m DELETE FROM "books_assets"
|
31203
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
31204
|
+
[1m[35mSQL (4.0ms)[0m DELETE FROM "books"
|
31205
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31206
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
31207
|
+
[1m[36m (3.1ms)[0m [1mcommit transaction[0m
|
31208
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31209
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 23[0m
|
31210
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 23], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
31211
|
+
[paperclip] Saving attachments.
|
31212
|
+
[1m[36m (2.9ms)[0m [1mcommit transaction[0m
|
31213
|
+
Processing by Books::AssetsController#get as HTML
|
31214
|
+
Parameters: {"type"=>"books/assets/test_doc", "fk_name"=>"23", "asset_id"=>"25", "filename"=>"pippo", "extension"=>"jpg"}
|
31215
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? LIMIT 1 [["id", "25"]]
|
31216
|
+
Sent file public/system/books/23/assets/test_doc.jpg (0.2ms)
|
31217
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
|
31218
|
+
[1m[36mSQL (3.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
31219
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books_assets"
|
31220
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "books"[0m
|
31221
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31222
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
31223
|
+
[1m[35m (2.8ms)[0m commit transaction
|
31224
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi.jpg[0]'
|
31225
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi.jpg[0]'
|
31226
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi.jpg[0]'
|
31227
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi.jpg[0]' -resize "800x600<" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl'
|
31228
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex'
|
31229
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex[0]'
|
31230
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex[0]'
|
31231
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex[0]'
|
31232
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex[0]' -resize "64x64" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex20120828-95755-1217msm'
|
31233
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex20120828-95755-1217msm20120828-95755-jpk768'
|
31234
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex[0]'
|
31235
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex[0]'
|
31236
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex[0]'
|
31237
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex[0]' -resize "128x128" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex20120828-95755-1oo5do9'
|
31238
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex20120828-95755-1oo5do920120828-95755-6h6k68'
|
31239
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
31240
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 24
|
31241
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 14100], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 24], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
31242
|
+
[paperclip] Saving attachments.
|
31243
|
+
[1m[35m (3.1ms)[0m commit transaction
|
31244
|
+
Processing by Books::AssetsController#get as HTML
|
31245
|
+
Parameters: {"type"=>"books/assets/test_image", "fk_name"=>"24", "asset_id"=>"26", "style"=>"thumb", "filename"=>"pippo", "extension"=>"jpg"}
|
31246
|
+
[1m[36mBooks::Assets::TestImage Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."id" = ? LIMIT 1[0m [["id", "26"]]
|
31247
|
+
Sent file public/system/books/24/assets/thumb/test_image.jpg (0.2ms)
|
31248
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
|
31249
|
+
[1m[35mSQL (3.4ms)[0m DELETE FROM "books_assets"
|
31250
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
31251
|
+
[1m[35mSQL (3.3ms)[0m DELETE FROM "books"
|
31252
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31253
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
31254
|
+
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
31255
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp.jpg[0]'
|
31256
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp.jpg[0]'
|
31257
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp.jpg[0]'
|
31258
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp.jpg[0]' -resize "800x600<" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d'
|
31259
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh'
|
31260
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh[0]'
|
31261
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh[0]'
|
31262
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh[0]'
|
31263
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh[0]' -resize "64x64" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh20120828-95755-1u79q3n'
|
31264
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh20120828-95755-1u79q3n20120828-95755-110aelo'
|
31265
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh[0]'
|
31266
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh[0]'
|
31267
|
+
[32mCommand[0m :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh[0]'
|
31268
|
+
[32mCommand[0m :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh[0]' -resize "128x128" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh20120828-95755-1yqrs6w'
|
31269
|
+
[32mCommand[0m :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh20120828-95755-1yqrs6w20120828-95755-rj0v8e'
|
31270
|
+
[1m[35m (0.2ms)[0m begin transaction
|
31271
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 25[0m
|
31272
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 14100], ["asset_updated_at", Tue, 28 Aug 2012 10:34:11 UTC +00:00], ["book_id", 25], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
31273
|
+
[paperclip] Saving attachments.
|
31274
|
+
[1m[36m (7.0ms)[0m [1mcommit transaction[0m
|
31275
|
+
Processing by Books::AssetsController#get as HTML
|
31276
|
+
Parameters: {"type"=>"books/assets/test_image", "fk_name"=>"25", "asset_id"=>"27", "style"=>"thumb", "filename"=>"pippo", "extension"=>"jpg"}
|
31277
|
+
[1m[35mBooks::Assets::TestImage Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."id" = ? LIMIT 1 [["id", "27"]]
|
31278
|
+
Sent file public/system/books/25/assets/thumb/test_image.jpg (0.2ms)
|
31279
|
+
Completed 200 OK in 53ms (ActiveRecord: 0.2ms)
|
31280
|
+
[32mCommand[0m :: identify -format %wx%h '/Users/andrea/dev/kemen/acts_as_assets/spec/temp/test.jpg[0]'
|
31281
|
+
[1m[36mSQL (3.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
31282
|
+
[1m[35mSQL (5.3ms)[0m DELETE FROM "books_assets"
|
31283
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books"[0m
|
31284
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31285
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
31286
|
+
[1m[35m (2.6ms)[0m commit transaction
|
31287
|
+
Processing by Books::AssetsController#get as HTML
|
31288
|
+
Parameters: {"type"=>"books/assets/test_doc", "fk_name"=>"26", "asset_id"=>"123456789", "filename"=>"pippo", "extension"=>"jpg"}
|
31289
|
+
[1m[36mBooks::Assets::TestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? LIMIT 1[0m [["id", "123456789"]]
|
31290
|
+
Completed 404 Not Found in 10ms (Views: 7.0ms | ActiveRecord: 0.2ms)
|
31291
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books_assets"
|
31292
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
31293
|
+
[1m[35mSQL (4.9ms)[0m DELETE FROM "books"
|
31294
|
+
[1m[36mSQL (3.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
31295
|
+
[1m[35mSQL (3.2ms)[0m DELETE FROM "books_assets"
|
31296
|
+
[1m[36mSQL (3.3ms)[0m [1mDELETE FROM "books"[0m
|
31297
|
+
[1m[35mSQL (4.6ms)[0m DELETE FROM "books_assets"
|
31298
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
31299
|
+
[1m[35mSQL (4.9ms)[0m DELETE FROM "books"
|
31300
|
+
[1m[36mSQL (3.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
31301
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books_assets"
|
31302
|
+
[1m[36mSQL (3.2ms)[0m [1mDELETE FROM "books"[0m
|
31303
|
+
[1m[35mSQL (4.4ms)[0m DELETE FROM "books_assets"
|
31304
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
31305
|
+
[1m[35mSQL (3.5ms)[0m DELETE FROM "books"
|
31306
|
+
[1m[36mSQL (2.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
31307
|
+
[1m[35mSQL (4.3ms)[0m DELETE FROM "books_assets"
|
31308
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "books"[0m
|
31309
|
+
[1m[35mSQL (4.3ms)[0m DELETE FROM "books_assets"
|
31310
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
31311
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books"
|
31312
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
31313
|
+
[1m[35mSQL (3.2ms)[0m DELETE FROM "books_assets"
|
31314
|
+
[1m[36mSQL (3.6ms)[0m [1mDELETE FROM "books"[0m
|
31315
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books_assets"
|
31316
|
+
[1m[36mSQL (4.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
31317
|
+
[1m[35mSQL (3.5ms)[0m DELETE FROM "books"
|
31318
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
31319
|
+
[1m[35mSQL (2.7ms)[0m DELETE FROM "books_assets"
|
31320
|
+
[1m[36mSQL (4.8ms)[0m [1mDELETE FROM "books"[0m
|
31321
|
+
[1m[35mSQL (3.7ms)[0m DELETE FROM "books_assets"
|
31322
|
+
[1m[36mSQL (3.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
31323
|
+
[1m[35mSQL (3.2ms)[0m DELETE FROM "books"
|
31324
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
31325
|
+
[1m[35mSQL (3.0ms)[0m DELETE FROM "books_assets"
|
31326
|
+
[1m[36mSQL (3.6ms)[0m [1mDELETE FROM "books"[0m
|
31327
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31328
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
31329
|
+
[1m[35m (3.2ms)[0m commit transaction
|
31330
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31331
|
+
[1m[35mBooks::Assets::UniqueTestDoc Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 27 LIMIT 1
|
31332
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 27[0m
|
31333
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 27], ["counter", 1], ["displayable", false], ["type", "Books::Assets::UniqueTestDoc"]]
|
31334
|
+
[paperclip] Saving attachments.
|
31335
|
+
[1m[36m (3.6ms)[0m [1mcommit transaction[0m
|
31336
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31337
|
+
[1m[36mBooks::Assets::UniqueTestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 27 LIMIT 1[0m
|
31338
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
31339
|
+
[1m[36mBooks::Assets::UniqueTestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 27 LIMIT 1[0m
|
31340
|
+
[1m[35mBooks::Assets::UniqueTestDoc Load (0.1ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 27 LIMIT 1
|
31341
|
+
[1m[36mSQL (5.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
31342
|
+
[1m[35mSQL (3.4ms)[0m DELETE FROM "books_assets"
|
31343
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "books"[0m
|
31344
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31345
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
31346
|
+
[1m[35m (2.7ms)[0m commit transaction
|
31347
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31348
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 28
|
31349
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 28], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
31350
|
+
[paperclip] Saving attachments.
|
31351
|
+
[1m[35m (3.0ms)[0m commit transaction
|
31352
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31353
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 28
|
31354
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 28], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
31355
|
+
[paperclip] Saving attachments.
|
31356
|
+
[1m[35m (2.8ms)[0m commit transaction
|