acts_as_assets 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/acts_as_assets/assets_controller.rb +1 -1
- data/app/helpers/acts_as_assets/assets_helper.rb +1 -1
- data/app/views/acts_as_assets/assets/_asset.html.erb +2 -2
- data/lib/acts_as_assets/version.rb +1 -1
- data/spec/acts_as_assets_spec.rb +4 -4
- data/spec/controllers/assets_controller_spec.rb +2 -2
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +1365 -0
- metadata +9 -4
@@ -56,7 +56,7 @@ class ActsAsAssets::AssetsController < ApplicationController
|
|
56
56
|
begin
|
57
57
|
@asset = klazz.find(params[:asset_id])
|
58
58
|
|
59
|
-
send_file(file_to_download_path, {:filename => @asset.asset.
|
59
|
+
send_file(file_to_download_path, {:filename => File.basename(@asset.asset.path), :content_type => @asset.asset_content_type, :disposition => 'inline'})
|
60
60
|
|
61
61
|
rescue ActiveRecord::RecordNotFound
|
62
62
|
respond_with_404
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<% if asset.displayable? %>
|
2
2
|
<li>
|
3
3
|
<%= link_to("#{asset.asset.url(:original)}&type=#{URI.encode(@type)}", :class => "zoom", :rel => "immagine_sito") {image_tag("#{asset.asset.url(:thumb)}&type=#{URI.encode(@type)}", :alt => 'Apri Immagine')}%>
|
4
|
-
<div><%= asset.asset.
|
4
|
+
<div><%= File.basename(asset.asset.path) %></div>
|
5
5
|
<%= destroy_link(asset, model) %>
|
6
6
|
</li>
|
7
7
|
<% else %>
|
8
8
|
<li>
|
9
|
-
<%= link_to(asset.asset.
|
9
|
+
<%= link_to(File.basename(asset.asset.path), "#{asset.asset.url}&type=#{@type}") %>
|
10
10
|
<%= destroy_link(asset, model) %>
|
11
11
|
</li>
|
12
12
|
<% end %>
|
data/spec/acts_as_assets_spec.rb
CHANGED
@@ -104,7 +104,7 @@ describe "ActsAsAssets" do
|
|
104
104
|
end
|
105
105
|
it "should interpolate the correct url for a subclass instance" do
|
106
106
|
doc = Books::Assets::TestDoc.create! :asset => uploaded_test_asset, :book => book
|
107
|
-
doc.asset.url.should match /\/books\/#{book.id}\/assets\/get\/#{doc.id}\/#{doc.asset.
|
107
|
+
doc.asset.url.should match /\/books\/#{book.id}\/assets\/get\/#{doc.id}\/#{File.basename(doc.asset.path)}/
|
108
108
|
end
|
109
109
|
it "should interpolate the correct path for a subclass instance" do
|
110
110
|
chapter = Chapters::Assets::Paragraph.create!(:chapter => chap, :asset => uploaded_test_asset)
|
@@ -139,9 +139,9 @@ describe "ActsAsAssets" do
|
|
139
139
|
end
|
140
140
|
it "should have style param in the url" do
|
141
141
|
doc = Books::Assets::TestImage.create! :asset => uploaded_test_asset, :book => book
|
142
|
-
doc.asset.url(:thumb).should match /\/books\/#{book.id}\/assets\/get\/#{doc.id}\/thumb\/#{doc.asset.
|
143
|
-
doc.asset.url(:medium).should match /\/books\/#{book.id}\/assets\/get\/#{doc.id}\/medium\/#{doc.asset.
|
144
|
-
doc.asset.url(:original).should match /\/books\/#{book.id}\/assets\/get\/#{doc.id}\/original\/#{doc.asset.
|
142
|
+
doc.asset.url(:thumb).should match /\/books\/#{book.id}\/assets\/get\/#{doc.id}\/thumb\/#{File.basename(doc.asset.path)}/
|
143
|
+
doc.asset.url(:medium).should match /\/books\/#{book.id}\/assets\/get\/#{doc.id}\/medium\/#{File.basename(doc.asset.path)}/
|
144
|
+
doc.asset.url(:original).should match /\/books\/#{book.id}\/assets\/get\/#{doc.id}\/original\/#{File.basename(doc.asset.path)}/
|
145
145
|
end
|
146
146
|
|
147
147
|
end
|
@@ -41,7 +41,7 @@ describe Books::AssetsController do
|
|
41
41
|
|
42
42
|
it "should return the correct formatted view" do
|
43
43
|
pending "TODO port the tag "
|
44
|
-
response.body.should match(/#{@asset.asset.
|
44
|
+
response.body.should match(/#{File.basename(@asset.asset.path)}/)
|
45
45
|
end
|
46
46
|
|
47
47
|
end
|
@@ -125,7 +125,7 @@ describe Books::AssetsController do
|
|
125
125
|
it "should stream the asset" do
|
126
126
|
should respond_with(:success)
|
127
127
|
should respond_with_content_type("image/jpeg")
|
128
|
-
response.headers.to_s.should match /#{assigns(:asset).asset.
|
128
|
+
response.headers.to_s.should match /#{File.basename(assigns(:asset).asset.path)}/
|
129
129
|
end
|
130
130
|
|
131
131
|
end
|
Binary file
|
@@ -0,0 +1,1365 @@
|
|
1
|
+
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
2
|
+
[1m[35m (2.3ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
3
|
+
[1m[36m (2.2ms)[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
|
4
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "chapters" ("name" varchar(255) NOT NULL)
|
5
|
+
[1m[36m (1.9ms)[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
|
6
|
+
[1m[35m (2.3ms)[0m CREATE TABLE "rt_tipi_pannello" ("name" varchar(255) NOT NULL)
|
7
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "rt_tipi_pannello_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "displayable" boolean DEFAULT 'f' NOT NULL, "tipo_pannello_name" varchar(255)) [0m
|
8
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
9
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
10
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books"
|
11
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
12
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
13
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
14
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
15
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
16
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
17
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
18
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
19
|
+
[1m[36mSQL (5.0ms)[0m [1mDELETE FROM "books"[0m
|
20
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
21
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
22
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books"
|
23
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
24
|
+
[1m[35mSQL (3.3ms)[0m DELETE FROM "books_assets"
|
25
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
26
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
27
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
28
|
+
[1m[35mSQL (1.4ms)[0m DELETE FROM "books"
|
29
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
30
|
+
[1m[35mSQL (2.7ms)[0m DELETE FROM "books_assets"
|
31
|
+
[1m[36mSQL (1.4ms)[0m [1mDELETE FROM "books"[0m
|
32
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
33
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
34
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books"
|
35
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
36
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books_assets"
|
37
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
38
|
+
[1m[35m (0.1ms)[0m begin transaction
|
39
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
40
|
+
[1m[35m (1.9ms)[0m commit transaction
|
41
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
42
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 1
|
43
|
+
[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"]]
|
44
|
+
[paperclip] Saving attachments.
|
45
|
+
[1m[35m (2.0ms)[0m commit transaction
|
46
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
47
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
48
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
49
|
+
[1m[35m (0.1ms)[0m begin transaction
|
50
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
51
|
+
[1m[35m (1.8ms)[0m commit transaction
|
52
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
53
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 2
|
54
|
+
[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"]]
|
55
|
+
[paperclip] Saving attachments.
|
56
|
+
[1m[35m (1.9ms)[0m commit transaction
|
57
|
+
[1m[36mSQL (2.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
58
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
59
|
+
[1m[36mSQL (1.4ms)[0m [1mDELETE FROM "books"[0m
|
60
|
+
[1m[35m (0.1ms)[0m begin transaction
|
61
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
62
|
+
[1m[35m (1.3ms)[0m commit transaction
|
63
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 3
|
65
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 3], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
66
|
+
[paperclip] Saving attachments.
|
67
|
+
[1m[35m (1.8ms)[0m commit transaction
|
68
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
69
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books_assets"
|
70
|
+
[1m[36mSQL (3.9ms)[0m [1mDELETE FROM "books"[0m
|
71
|
+
[1m[35m (0.1ms)[0m begin transaction
|
72
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "rt_tipi_pannello" ("name") VALUES (?)[0m [["name", "Suntech STP"]]
|
73
|
+
[1m[35m (1.4ms)[0m commit transaction
|
74
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
75
|
+
[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
|
76
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("rt_tipi_pannello_assets"."counter") AS max_id FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP'[0m
|
77
|
+
[1m[35mSQL (36.0ms)[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, 24 Apr 2012 10:12:42 UTC +00:00], ["counter", 1], ["displayable", false], ["tipo_pannello_name", "Suntech STP"], ["type", "TipiPannello::Documenti::SchedaTecnica"]]
|
78
|
+
[paperclip] Saving attachments.
|
79
|
+
[paperclip] saving public/system/tipi_pannello/Suntech STP/documenti/scheda_tecnica.jpg
|
80
|
+
[1m[36m (2.5ms)[0m [1mcommit transaction[0m
|
81
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
82
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
83
|
+
[1m[35mSQL (1.4ms)[0m DELETE FROM "books"
|
84
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
85
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
86
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
87
|
+
[1m[35m (0.0ms)[0m begin transaction
|
88
|
+
[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
|
89
|
+
[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"]]
|
90
|
+
[paperclip] Saving attachments.
|
91
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
92
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
93
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
94
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books"
|
95
|
+
[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
|
96
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
97
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
98
|
+
[1m[35mSQL (7.5ms)[0m DELETE FROM "books"
|
99
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
100
|
+
[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
|
101
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
102
|
+
[paperclip] Saving attachments.
|
103
|
+
[1m[35m (1.7ms)[0m commit transaction
|
104
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
105
|
+
[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
|
106
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
107
|
+
[paperclip] Saving attachments.
|
108
|
+
[1m[35m (1.7ms)[0m commit transaction
|
109
|
+
[1m[36mBooks::Asset Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1[0m [["id", 5]]
|
110
|
+
[1m[35mBooks::Asset Load (0.1ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1 [["id", 6]]
|
111
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
112
|
+
[1m[35mSQL (1.5ms)[0m DELETE FROM "books_assets"
|
113
|
+
[1m[36mSQL (1.4ms)[0m [1mDELETE FROM "books"[0m
|
114
|
+
[1m[35m (0.1ms)[0m begin transaction
|
115
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
116
|
+
[1m[35m (9.0ms)[0m commit transaction
|
117
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
118
|
+
[1m[35m (0.5ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 5
|
119
|
+
[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, 24 Apr 2012 10:12:42 UTC +00:00], ["book_id", 5], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
120
|
+
[paperclip] Saving attachments.
|
121
|
+
[paperclip] saving public/system/books/5/assets/test_doc.jpg
|
122
|
+
[1m[35m (2.3ms)[0m commit transaction
|
123
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
124
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
125
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
126
|
+
[1m[35m (0.1ms)[0m begin transaction
|
127
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
128
|
+
[1m[35m (3.8ms)[0m commit transaction
|
129
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
130
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 6
|
131
|
+
[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, 24 Apr 2012 10:12:42 UTC +00:00], ["book_id", 6], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
132
|
+
[paperclip] Saving attachments.
|
133
|
+
[paperclip] saving public/system/books/6/assets/test_doc.jpg
|
134
|
+
[1m[35m (1.6ms)[0m commit transaction
|
135
|
+
[1m[36mSQL (3.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
136
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
137
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books"[0m
|
138
|
+
[1m[35m (0.1ms)[0m begin transaction
|
139
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "chapters" ("name") VALUES (?)[0m [["name", "a new chapter"]]
|
140
|
+
[1m[35m (1.7ms)[0m commit transaction
|
141
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
142
|
+
[1m[35m (0.3ms)[0m SELECT MAX("chapters_assets"."counter") AS max_id FROM "chapters_assets" WHERE "chapters_assets"."type" IN ('Chapters::Assets::Paragraph') AND "chapters_assets"."chapter_name" = 'a new chapter'
|
143
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 24 Apr 2012 10:12:42 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 1], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
|
144
|
+
[paperclip] Saving attachments.
|
145
|
+
[paperclip] saving public/system/chapters/a new chapter/assets/paragraph.jpg
|
146
|
+
[1m[35m (4.5ms)[0m commit transaction
|
147
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
148
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
149
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
150
|
+
[1m[35m (0.1ms)[0m begin transaction
|
151
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "chapters" ("name") VALUES (?)[0m [["name", "a new chapter"]]
|
152
|
+
[1m[35m (1.5ms)[0m commit transaction
|
153
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
154
|
+
[1m[35m (0.5ms)[0m SELECT MAX("chapters_assets"."counter") AS max_id FROM "chapters_assets" WHERE "chapters_assets"."type" IN ('Chapters::Assets::Paragraph') AND "chapters_assets"."chapter_name" = 'a new chapter'
|
155
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 24 Apr 2012 10:12:42 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 2], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
|
156
|
+
[paperclip] Saving attachments.
|
157
|
+
[paperclip] saving public/system/chapters/a new chapter/assets/paragraph_2.jpg
|
158
|
+
[1m[35m (1.5ms)[0m commit transaction
|
159
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
160
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
161
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
162
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books_assets"
|
163
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
164
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
165
|
+
[1m[36mSQL (3.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
166
|
+
[1m[35mSQL (6.3ms)[0m DELETE FROM "books_assets"
|
167
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
168
|
+
[1m[35m (0.1ms)[0m begin transaction
|
169
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
170
|
+
[1m[35m (1.6ms)[0m commit transaction
|
171
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-toh8lk.jpg[0]'
|
172
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-toh8lk.jpg[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-toh8lk20120424-55344-19oel1x'
|
173
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-toh8lk20120424-55344-19oel1x[0]'
|
174
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-toh8lk20120424-55344-19oel1x[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-toh8lk20120424-55344-19oel1x20120424-55344-1s7ircx'
|
175
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-toh8lk20120424-55344-19oel1x[0]'
|
176
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-toh8lk20120424-55344-19oel1x[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-toh8lk20120424-55344-19oel1x20120424-55344-axt5aq'
|
177
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
178
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 7
|
179
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Tue, 24 Apr 2012 10:12:42 UTC +00:00], ["book_id", 7], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
180
|
+
[paperclip] Saving attachments.
|
181
|
+
[paperclip] saving public/system/books/7/assets/original/test_image.jpg
|
182
|
+
[paperclip] saving public/system/books/7/assets/thumb/test_image.jpg
|
183
|
+
[paperclip] saving public/system/books/7/assets/medium/test_image.jpg
|
184
|
+
[1m[35m (1.9ms)[0m commit transaction
|
185
|
+
[1m[36mSQL (7.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
186
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books_assets"
|
187
|
+
[1m[36mSQL (1.4ms)[0m [1mDELETE FROM "books"[0m
|
188
|
+
[1m[35m (0.1ms)[0m begin transaction
|
189
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
190
|
+
[1m[35m (1.6ms)[0m commit transaction
|
191
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-cbh4il.jpg[0]'
|
192
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-cbh4il.jpg[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-cbh4il20120424-55344-11j63be'
|
193
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-cbh4il20120424-55344-11j63be[0]'
|
194
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-cbh4il20120424-55344-11j63be[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-cbh4il20120424-55344-11j63be20120424-55344-uycqos'
|
195
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-cbh4il20120424-55344-11j63be[0]'
|
196
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-cbh4il20120424-55344-11j63be[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-cbh4il20120424-55344-11j63be20120424-55344-ugu7ro'
|
197
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
198
|
+
[1m[35m (0.5ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 8
|
199
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Tue, 24 Apr 2012 10:12:43 UTC +00:00], ["book_id", 8], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
200
|
+
[paperclip] Saving attachments.
|
201
|
+
[paperclip] saving public/system/books/8/assets/original/test_image.jpg
|
202
|
+
[paperclip] saving public/system/books/8/assets/thumb/test_image.jpg
|
203
|
+
[paperclip] saving public/system/books/8/assets/medium/test_image.jpg
|
204
|
+
[1m[35m (2.1ms)[0m commit transaction
|
205
|
+
[1m[36mSQL (3.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
206
|
+
[1m[35mSQL (5.3ms)[0m DELETE FROM "books_assets"
|
207
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
208
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
209
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
210
|
+
[1m[35mSQL (4.7ms)[0m DELETE FROM "books"
|
211
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
212
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
213
|
+
[1m[36mSQL (1.4ms)[0m [1mDELETE FROM "books"[0m
|
214
|
+
[1m[35mSQL (10.5ms)[0m DELETE FROM "books_assets"
|
215
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
216
|
+
[1m[35mSQL (1.5ms)[0m DELETE FROM "books"
|
217
|
+
[1m[36mSQL (3.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
218
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
219
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
220
|
+
[1m[35m (0.1ms)[0m begin transaction
|
221
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
222
|
+
[1m[35m (2.0ms)[0m commit transaction
|
223
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
224
|
+
[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" = 9
|
225
|
+
[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, 24 Apr 2012 10:12:43 UTC +00:00], ["book_id", 9], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
226
|
+
[paperclip] Saving attachments.
|
227
|
+
[paperclip] saving public/system/books/9/assets/test_doc.jpg
|
228
|
+
[1m[35m (2.6ms)[0m commit transaction
|
229
|
+
Processing by Books::AssetsController#index as HTML
|
230
|
+
Parameters: {"multiple"=>true, "book_id"=>"9", "type"=>"Assets/TestDoc"}
|
231
|
+
[1m[36mBook Load (0.3ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "9"]]
|
232
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (82.8ms)
|
233
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '9'
|
234
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (6.2ms)
|
235
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (7.7ms)
|
236
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (95.4ms)
|
237
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/index.html.erb (189.5ms)
|
238
|
+
Completed 200 OK in 230ms (Views: 226.0ms | ActiveRecord: 0.6ms)
|
239
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
240
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
241
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
242
|
+
[1m[35m (0.1ms)[0m begin transaction
|
243
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
244
|
+
[1m[35m (1.9ms)[0m commit transaction
|
245
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
246
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10
|
247
|
+
[1m[36mSQL (1.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", Tue, 24 Apr 2012 10:12:44 UTC +00:00], ["book_id", 10], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
248
|
+
[paperclip] Saving attachments.
|
249
|
+
[paperclip] saving public/system/books/10/assets/test_doc.jpg
|
250
|
+
[1m[35m (2.4ms)[0m commit transaction
|
251
|
+
Processing by Books::AssetsController#index as HTML
|
252
|
+
Parameters: {"target"=>"target_div", "book_id"=>"10", "type"=>"Assets/TestDoc"}
|
253
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "10"]]
|
254
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (3.6ms)
|
255
|
+
[1m[35mBooks::Assets::TestDoc Load (0.4ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '10'
|
256
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (3.5ms)
|
257
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (3.9ms)
|
258
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (9.2ms)
|
259
|
+
Completed 200 OK in 13ms (Views: 9.6ms | ActiveRecord: 0.5ms)
|
260
|
+
[1m[36mSQL (2.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
261
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
262
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
263
|
+
[1m[35m (0.1ms)[0m begin transaction
|
264
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
265
|
+
[1m[35m (1.4ms)[0m commit transaction
|
266
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
267
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 11
|
268
|
+
[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, 24 Apr 2012 10:12:44 UTC +00:00], ["book_id", 11], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
269
|
+
[paperclip] Saving attachments.
|
270
|
+
[paperclip] saving public/system/books/11/assets/test_doc.jpg
|
271
|
+
[1m[35m (6.0ms)[0m commit transaction
|
272
|
+
Processing by Books::AssetsController#index as HTML
|
273
|
+
Parameters: {"target"=>"target_div", "book_id"=>"11", "type"=>"Assets/TestDoc"}
|
274
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "11"]]
|
275
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (2.9ms)
|
276
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '11'
|
277
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (3.5ms)
|
278
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (4.0ms)
|
279
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (9.2ms)
|
280
|
+
Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.5ms)
|
281
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
282
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
283
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
284
|
+
[1m[35m (0.1ms)[0m begin transaction
|
285
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
286
|
+
[1m[35m (1.4ms)[0m commit transaction
|
287
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
288
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 12
|
289
|
+
[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, 24 Apr 2012 10:12:44 UTC +00:00], ["book_id", 12], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
290
|
+
[paperclip] Saving attachments.
|
291
|
+
[paperclip] saving public/system/books/12/assets/test_doc.jpg
|
292
|
+
[1m[35m (2.8ms)[0m commit transaction
|
293
|
+
Processing by Books::AssetsController#index as HTML
|
294
|
+
Parameters: {"target"=>"target_div", "book_id"=>"12", "type"=>"Assets/TestDoc"}
|
295
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "12"]]
|
296
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.3ms)
|
297
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '12'
|
298
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (5.3ms)
|
299
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (6.0ms)
|
300
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (15.1ms)
|
301
|
+
Completed 200 OK in 18ms (Views: 15.6ms | ActiveRecord: 0.5ms)
|
302
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
303
|
+
[1m[35mSQL (8.6ms)[0m DELETE FROM "books_assets"
|
304
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
305
|
+
[1m[35m (0.1ms)[0m begin transaction
|
306
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
307
|
+
[1m[35m (1.3ms)[0m commit transaction
|
308
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
309
|
+
[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" = 13
|
310
|
+
[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, 24 Apr 2012 10:12:44 UTC +00:00], ["book_id", 13], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
311
|
+
[paperclip] Saving attachments.
|
312
|
+
[paperclip] saving public/system/books/13/assets/test_doc.jpg
|
313
|
+
[1m[35m (1.6ms)[0m commit transaction
|
314
|
+
Processing by Books::AssetsController#index as HTML
|
315
|
+
Parameters: {"target"=>"target_div", "book_id"=>"13", "type"=>"Assets/TestDoc"}
|
316
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "13"]]
|
317
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (2.3ms)
|
318
|
+
[1m[35mBooks::Assets::TestDoc Load (1.5ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '13'
|
319
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.3ms)
|
320
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (3.1ms)
|
321
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (8.5ms)
|
322
|
+
Completed 200 OK in 11ms (Views: 7.7ms | ActiveRecord: 1.7ms)
|
323
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
324
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
325
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
326
|
+
[1m[35m (0.1ms)[0m begin transaction
|
327
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
328
|
+
[1m[35m (4.2ms)[0m commit transaction
|
329
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
330
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 14
|
331
|
+
[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, 24 Apr 2012 10:12:44 UTC +00:00], ["book_id", 14], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
332
|
+
[paperclip] Saving attachments.
|
333
|
+
[paperclip] saving public/system/books/14/assets/test_doc.jpg
|
334
|
+
[1m[35m (2.4ms)[0m commit transaction
|
335
|
+
Processing by Books::AssetsController#index as JSON
|
336
|
+
Parameters: {"target"=>"target_div", "book_id"=>"14", "type"=>"Assets/TestDoc"}
|
337
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "14"]]
|
338
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '14'
|
339
|
+
Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.4ms)
|
340
|
+
[1m[36mSQL (3.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
341
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
342
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
343
|
+
[1m[35m (0.1ms)[0m begin transaction
|
344
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
345
|
+
[1m[35m (1.4ms)[0m commit transaction
|
346
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
347
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 15
|
348
|
+
[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, 24 Apr 2012 10:12:44 UTC +00:00], ["book_id", 15], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
349
|
+
[paperclip] Saving attachments.
|
350
|
+
[paperclip] saving public/system/books/15/assets/test_doc.jpg
|
351
|
+
[1m[35m (2.0ms)[0m commit transaction
|
352
|
+
Processing by Books::AssetsController#index as JSON
|
353
|
+
Parameters: {"target"=>"target_div", "book_id"=>"15", "type"=>"Assets/TestDoc"}
|
354
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "15"]]
|
355
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '15'
|
356
|
+
Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.5ms)
|
357
|
+
[1m[36mSQL (4.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
358
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
359
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
360
|
+
[1m[35m (0.1ms)[0m begin transaction
|
361
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
362
|
+
[1m[35m (1.5ms)[0m commit transaction
|
363
|
+
Processing by Books::AssetsController#create as JS
|
364
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fbb7da2ffb8 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120424-55344-rw7ti6>>, "book_id"=>"16", "type"=>"Assets/TestDoc"}
|
365
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "16"]]
|
366
|
+
[1m[35m (0.1ms)[0m begin transaction
|
367
|
+
[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" = 16[0m
|
368
|
+
[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", Tue, 24 Apr 2012 10:12:44 UTC +00:00], ["book_id", 16], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
369
|
+
[paperclip] Saving attachments.
|
370
|
+
[paperclip] saving public/system/books/16/assets/test_doc.jpg
|
371
|
+
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
|
372
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '16'
|
373
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (2.0ms)
|
374
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (3.5ms)
|
375
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (7.7ms)
|
376
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (12.4ms)
|
377
|
+
Completed 200 OK in 52ms (Views: 35.6ms | ActiveRecord: 4.4ms)
|
378
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
379
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books_assets"
|
380
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books"[0m
|
381
|
+
[1m[35m (0.1ms)[0m begin transaction
|
382
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
383
|
+
[1m[35m (1.5ms)[0m commit transaction
|
384
|
+
Processing by Books::AssetsController#create as JS
|
385
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fbb7c1ad4e0 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120424-55344-1e39wp1>>, "book_id"=>"17", "type"=>"Assets/TestDoc"}
|
386
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "17"]]
|
387
|
+
[1m[35m (0.1ms)[0m begin transaction
|
388
|
+
[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" = 17[0m
|
389
|
+
[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", Tue, 24 Apr 2012 10:12:44 UTC +00:00], ["book_id", 17], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
390
|
+
[paperclip] Saving attachments.
|
391
|
+
[paperclip] saving public/system/books/17/assets/test_doc.jpg
|
392
|
+
[1m[36m (5.9ms)[0m [1mcommit transaction[0m
|
393
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '17'
|
394
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (3.1ms)
|
395
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.3ms)
|
396
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.7ms)
|
397
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (6.3ms)
|
398
|
+
Completed 200 OK in 30ms (Views: 8.9ms | ActiveRecord: 7.3ms)
|
399
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
400
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
401
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
402
|
+
[1m[35m (0.1ms)[0m begin transaction
|
403
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
404
|
+
[1m[35m (2.3ms)[0m commit transaction
|
405
|
+
Processing by Books::AssetsController#create as JS
|
406
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fbb7c2b7c50 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120424-55344-m64c4f>>, "book_id"=>"18", "type"=>"Assets/TestDoc"}
|
407
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "18"]]
|
408
|
+
[1m[35m (0.1ms)[0m begin transaction
|
409
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 18[0m
|
410
|
+
[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", Tue, 24 Apr 2012 10:12:44 UTC +00:00], ["book_id", 18], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
411
|
+
[paperclip] Saving attachments.
|
412
|
+
[paperclip] saving public/system/books/18/assets/test_doc.jpg
|
413
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
414
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '18'
|
415
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.5ms)
|
416
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.1ms)
|
417
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.4ms)
|
418
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.5ms)
|
419
|
+
Completed 200 OK in 85ms (Views: 6.4ms | ActiveRecord: 3.3ms)
|
420
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
421
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
422
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
423
|
+
[1m[35m (0.1ms)[0m begin transaction
|
424
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
425
|
+
[1m[35m (1.6ms)[0m commit transaction
|
426
|
+
Processing by Books::AssetsController#create as JS
|
427
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fbb7af2e8c8 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120424-55344-fgz51g>>, "book_id"=>"19", "type"=>"Assets/TestDoc"}
|
428
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "19"]]
|
429
|
+
[1m[35m (0.1ms)[0m begin transaction
|
430
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 19[0m
|
431
|
+
[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", Tue, 24 Apr 2012 10:12:44 UTC +00:00], ["book_id", 19], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
432
|
+
[paperclip] Saving attachments.
|
433
|
+
[paperclip] saving public/system/books/19/assets/test_doc.jpg
|
434
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
435
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '19'
|
436
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (3.5ms)
|
437
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.2ms)
|
438
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.6ms)
|
439
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (6.6ms)
|
440
|
+
Completed 200 OK in 26ms (Views: 9.9ms | ActiveRecord: 2.7ms)
|
441
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
442
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
443
|
+
[1m[36mSQL (1.3ms)[0m [1mDELETE FROM "books"[0m
|
444
|
+
[1m[35m (0.1ms)[0m begin transaction
|
445
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
446
|
+
[1m[35m (1.3ms)[0m commit transaction
|
447
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
448
|
+
[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" = 20
|
449
|
+
[1m[36mSQL (1.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, 24 Apr 2012 10:12:44 UTC +00:00], ["book_id", 20], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
450
|
+
[paperclip] Saving attachments.
|
451
|
+
[paperclip] saving public/system/books/20/assets/test_doc.jpg
|
452
|
+
[1m[35m (1.6ms)[0m commit transaction
|
453
|
+
Processing by Books::AssetsController#destroy as JS
|
454
|
+
Parameters: {"type"=>"Assets/TestDoc", "target"=>"target_div", "book_id"=>"20", "asset_id"=>"22"}
|
455
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "20"]]
|
456
|
+
[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" = '22' LIMIT 1
|
457
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
458
|
+
[paperclip] Scheduling attachments for deletion.
|
459
|
+
[1m[35mSQL (0.6ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 22]]
|
460
|
+
[paperclip] Deleting attachments.
|
461
|
+
[paperclip] deleting public/system/books/20/assets/test_doc.jpg
|
462
|
+
[1m[36m (6.2ms)[0m [1mcommit transaction[0m
|
463
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '20'
|
464
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.8ms)
|
465
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
466
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.2ms)
|
467
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.6ms)
|
468
|
+
Completed 200 OK in 25ms (Views: 8.5ms | ActiveRecord: 7.6ms)
|
469
|
+
[1m[36mSQL (3.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
470
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
471
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
472
|
+
[1m[35m (0.1ms)[0m begin transaction
|
473
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
474
|
+
[1m[35m (1.9ms)[0m commit transaction
|
475
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
476
|
+
[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" = 21
|
477
|
+
[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, 24 Apr 2012 10:12:44 UTC +00:00], ["book_id", 21], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
478
|
+
[paperclip] Saving attachments.
|
479
|
+
[paperclip] saving public/system/books/21/assets/test_doc.jpg
|
480
|
+
[1m[35m (1.9ms)[0m commit transaction
|
481
|
+
Processing by Books::AssetsController#destroy as JS
|
482
|
+
Parameters: {"type"=>"Assets/TestDoc", "target"=>"target_div", "book_id"=>"21", "asset_id"=>"23"}
|
483
|
+
[1m[36mBook Load (0.4ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "21"]]
|
484
|
+
[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" = '23' LIMIT 1
|
485
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
486
|
+
[paperclip] Scheduling attachments for deletion.
|
487
|
+
[1m[35mSQL (0.6ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 23]]
|
488
|
+
[paperclip] Deleting attachments.
|
489
|
+
[paperclip] deleting public/system/books/21/assets/test_doc.jpg
|
490
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
491
|
+
[1m[35mBooks::Assets::TestDoc Load (0.4ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '21'
|
492
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.7ms)
|
493
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
494
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.2ms)
|
495
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.5ms)
|
496
|
+
Completed 200 OK in 20ms (Views: 8.5ms | ActiveRecord: 3.5ms)
|
497
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
498
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
499
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
500
|
+
[1m[35m (0.1ms)[0m begin transaction
|
501
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
502
|
+
[1m[35m (3.9ms)[0m commit transaction
|
503
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
504
|
+
[1m[35m (1.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" = 22
|
505
|
+
[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, 24 Apr 2012 10:12:44 UTC +00:00], ["book_id", 22], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
506
|
+
[paperclip] Saving attachments.
|
507
|
+
[paperclip] saving public/system/books/22/assets/test_doc.jpg
|
508
|
+
[1m[35m (2.8ms)[0m commit transaction
|
509
|
+
Processing by Books::AssetsController#destroy as JS
|
510
|
+
Parameters: {"type"=>"Assets/TestDoc", "target"=>"target_div", "book_id"=>"22", "asset_id"=>"24"}
|
511
|
+
[1m[36mBook Load (0.8ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "22"]]
|
512
|
+
[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" = '24' LIMIT 1
|
513
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
514
|
+
[paperclip] Scheduling attachments for deletion.
|
515
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 24]]
|
516
|
+
[paperclip] Deleting attachments.
|
517
|
+
[paperclip] deleting public/system/books/22/assets/test_doc.jpg
|
518
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
519
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '22'
|
520
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.6ms)
|
521
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
522
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.3ms)
|
523
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.7ms)
|
524
|
+
Completed 200 OK in 15ms (Views: 5.1ms | ActiveRecord: 3.3ms)
|
525
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
526
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
527
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
528
|
+
[1m[35m (0.1ms)[0m begin transaction
|
529
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
530
|
+
[1m[35m (2.8ms)[0m commit transaction
|
531
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
532
|
+
[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" = 23
|
533
|
+
[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", Tue, 24 Apr 2012 10:12:44 UTC +00:00], ["book_id", 23], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
534
|
+
[paperclip] Saving attachments.
|
535
|
+
[paperclip] saving public/system/books/23/assets/test_doc.jpg
|
536
|
+
[1m[35m (2.6ms)[0m commit transaction
|
537
|
+
Processing by Books::AssetsController#destroy as JS
|
538
|
+
Parameters: {"type"=>"Assets/TestDoc", "target"=>"target_div", "book_id"=>"23", "asset_id"=>"25"}
|
539
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "23"]]
|
540
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = '25' LIMIT 1
|
541
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
542
|
+
[paperclip] Scheduling attachments for deletion.
|
543
|
+
[1m[35mSQL (0.7ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 25]]
|
544
|
+
[paperclip] Deleting attachments.
|
545
|
+
[paperclip] deleting public/system/books/23/assets/test_doc.jpg
|
546
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
547
|
+
[1m[35mBooks::Assets::TestDoc Load (0.5ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '23'
|
548
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.6ms)
|
549
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
550
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.2ms)
|
551
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.5ms)
|
552
|
+
Completed 200 OK in 19ms (Views: 5.5ms | ActiveRecord: 4.3ms)
|
553
|
+
[1m[36mSQL (3.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
554
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
555
|
+
[1m[36mSQL (6.7ms)[0m [1mDELETE FROM "books"[0m
|
556
|
+
[1m[35m (0.1ms)[0m begin transaction
|
557
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
558
|
+
[1m[35m (2.4ms)[0m commit transaction
|
559
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
560
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 24
|
561
|
+
[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, 24 Apr 2012 10:12:44 UTC +00:00], ["book_id", 24], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
562
|
+
[paperclip] Saving attachments.
|
563
|
+
[paperclip] saving public/system/books/24/assets/test_doc.jpg
|
564
|
+
[1m[35m (2.7ms)[0m commit transaction
|
565
|
+
Processing by Books::AssetsController#get as HTML
|
566
|
+
Parameters: {"book_id"=>"24", "asset_id"=>"26", "type"=>"Assets/TestDoc"}
|
567
|
+
[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" = ? LIMIT 1[0m [["id", "26"]]
|
568
|
+
Sent file public/system/books/24/assets/test_doc.jpg (0.2ms)
|
569
|
+
Completed 200 OK in 8ms (ActiveRecord: 0.5ms)
|
570
|
+
[1m[35mSQL (3.6ms)[0m DELETE FROM "books_assets"
|
571
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
572
|
+
[1m[35mSQL (2.5ms)[0m DELETE FROM "books"
|
573
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
574
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
575
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
576
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-hhw27m.jpg[0]'
|
577
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-hhw27m.jpg[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-hhw27m20120424-55344-1rgs0lb'
|
578
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-hhw27m20120424-55344-1rgs0lb[0]'
|
579
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-hhw27m20120424-55344-1rgs0lb[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-hhw27m20120424-55344-1rgs0lb20120424-55344-aybc2g'
|
580
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-hhw27m20120424-55344-1rgs0lb[0]'
|
581
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-hhw27m20120424-55344-1rgs0lb[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-hhw27m20120424-55344-1rgs0lb20120424-55344-eyhp11'
|
582
|
+
[1m[35m (0.2ms)[0m begin transaction
|
583
|
+
[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" = 25[0m
|
584
|
+
[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", Tue, 24 Apr 2012 10:12:45 UTC +00:00], ["book_id", 25], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
585
|
+
[paperclip] Saving attachments.
|
586
|
+
[paperclip] saving public/system/books/25/assets/original/test_image.jpg
|
587
|
+
[paperclip] saving public/system/books/25/assets/thumb/test_image.jpg
|
588
|
+
[paperclip] saving public/system/books/25/assets/medium/test_image.jpg
|
589
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
590
|
+
Processing by Books::AssetsController#get as HTML
|
591
|
+
Parameters: {"book_id"=>"25", "asset_id"=>"27", "style"=>"thumb", "type"=>"Assets/TestImage"}
|
592
|
+
[1m[35mBooks::Assets::TestImage Load (0.4ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."id" = ? LIMIT 1 [["id", "27"]]
|
593
|
+
Sent file public/system/books/25/assets/thumb/test_image.jpg (0.2ms)
|
594
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.4ms)
|
595
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
596
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
597
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books"[0m
|
598
|
+
[1m[35m (0.1ms)[0m begin transaction
|
599
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
600
|
+
[1m[35m (1.7ms)[0m commit transaction
|
601
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-5re5hn.jpg[0]'
|
602
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-5re5hn.jpg[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-5re5hn20120424-55344-1dgc6x'
|
603
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-5re5hn20120424-55344-1dgc6x[0]'
|
604
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-5re5hn20120424-55344-1dgc6x[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-5re5hn20120424-55344-1dgc6x20120424-55344-1wk6qlx'
|
605
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-5re5hn20120424-55344-1dgc6x[0]'
|
606
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-5re5hn20120424-55344-1dgc6x[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/stream20120424-55344-5re5hn20120424-55344-1dgc6x20120424-55344-a61z8a'
|
607
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
608
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 26
|
609
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Tue, 24 Apr 2012 10:12:45 UTC +00:00], ["book_id", 26], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
610
|
+
[paperclip] Saving attachments.
|
611
|
+
[paperclip] saving public/system/books/26/assets/original/test_image.jpg
|
612
|
+
[paperclip] saving public/system/books/26/assets/thumb/test_image.jpg
|
613
|
+
[paperclip] saving public/system/books/26/assets/medium/test_image.jpg
|
614
|
+
[1m[35m (2.7ms)[0m commit transaction
|
615
|
+
Processing by Books::AssetsController#get as HTML
|
616
|
+
Parameters: {"book_id"=>"26", "asset_id"=>"28", "style"=>"thumb", "type"=>"Assets/TestImage"}
|
617
|
+
[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", "28"]]
|
618
|
+
Sent file public/system/books/26/assets/thumb/test_image.jpg (0.3ms)
|
619
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
|
620
|
+
[32mCommand[0m :: identify -format %wx%h '/opt/code/fractalgarden/acts_as_assets/spec/temp/test.jpg[0]'
|
621
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
622
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
623
|
+
[1m[35mSQL (1.4ms)[0m DELETE FROM "books"
|
624
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
625
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
626
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
627
|
+
Processing by Books::AssetsController#get as HTML
|
628
|
+
Parameters: {"book_id"=>"27", "asset_id"=>"123456789", "type"=>"Assets/TestDoc"}
|
629
|
+
[1m[35mBooks::Assets::TestDoc Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? LIMIT 1 [["id", "123456789"]]
|
630
|
+
Completed 404 Not Found in 43ms (Views: 40.7ms | ActiveRecord: 0.2ms)
|
631
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
632
|
+
[1m[35mSQL (7.6ms)[0m DELETE FROM "books_assets"
|
633
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "books"[0m
|
634
|
+
[1m[35mSQL (17.5ms)[0m DELETE FROM "books_assets"
|
635
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
636
|
+
[1m[35mSQL (1.5ms)[0m DELETE FROM "books"
|
637
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
638
|
+
[1m[35mSQL (3.4ms)[0m DELETE FROM "books_assets"
|
639
|
+
[1m[36mSQL (1.3ms)[0m [1mDELETE FROM "books"[0m
|
640
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books_assets"
|
641
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
642
|
+
[1m[35mSQL (1.4ms)[0m DELETE FROM "books"
|
643
|
+
[1m[36mSQL (3.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
644
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
645
|
+
[1m[36mSQL (1.4ms)[0m [1mDELETE FROM "books"[0m
|
646
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
647
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
648
|
+
[1m[35mSQL (1.3ms)[0m DELETE FROM "books"
|
649
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
650
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
651
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
652
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
653
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
654
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
655
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
656
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
657
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
658
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
659
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
660
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books"
|
661
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
662
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
663
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
664
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
665
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
666
|
+
[1m[35mSQL (1.4ms)[0m DELETE FROM "books"
|
667
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
668
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
669
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
670
|
+
[1m[35m (0.1ms)[0m begin transaction
|
671
|
+
[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" = 28 LIMIT 1[0m
|
672
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 28
|
673
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 28], ["counter", 1], ["displayable", false], ["type", "Books::Assets::UniqueTestDoc"]]
|
674
|
+
[paperclip] Saving attachments.
|
675
|
+
[1m[35m (3.6ms)[0m commit transaction
|
676
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
677
|
+
[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" = 28 LIMIT 1
|
678
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
679
|
+
[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" = 28 LIMIT 1
|
680
|
+
[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" = 28 LIMIT 1[0m
|
681
|
+
[1m[35mSQL (3.9ms)[0m DELETE FROM "books_assets"
|
682
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
683
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books"
|
684
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
685
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
686
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
687
|
+
[1m[35m (0.1ms)[0m begin transaction
|
688
|
+
[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" = 29[0m
|
689
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 29], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
690
|
+
[paperclip] Saving attachments.
|
691
|
+
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
|
692
|
+
[1m[35m (0.1ms)[0m begin transaction
|
693
|
+
[1m[36m (0.4ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 29[0m
|
694
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 29], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
695
|
+
[paperclip] Saving attachments.
|
696
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
697
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
698
|
+
[1m[35m (1.9ms)[0m DROP TABLE "books"
|
699
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) [0m
|
700
|
+
[1m[35m (2.9ms)[0m DROP TABLE "books_assets"
|
701
|
+
[1m[36m (2.0ms)[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
|
702
|
+
[1m[35m (1.7ms)[0m DROP TABLE "chapters"
|
703
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "chapters" ("name" varchar(255) NOT NULL) [0m
|
704
|
+
[1m[35m (2.1ms)[0m DROP TABLE "chapters_assets"
|
705
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "chapters_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "chapter_name" varchar(255), "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
706
|
+
[1m[35m (1.8ms)[0m DROP TABLE "rt_tipi_pannello"
|
707
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "rt_tipi_pannello" ("name" varchar(255) NOT NULL) [0m
|
708
|
+
[1m[35m (2.0ms)[0m DROP TABLE "rt_tipi_pannello_assets"
|
709
|
+
[1m[36m (2.8ms)[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
|
710
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
711
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
712
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books"
|
713
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
714
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
715
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
716
|
+
[1m[35mSQL (5.6ms)[0m DELETE FROM "books_assets"
|
717
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
718
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
719
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
720
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
721
|
+
[1m[36mSQL (1.4ms)[0m [1mDELETE FROM "books"[0m
|
722
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
723
|
+
[1m[36mSQL (5.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
724
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books"
|
725
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
726
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
727
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
728
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
729
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
730
|
+
[1m[35mSQL (1.4ms)[0m DELETE FROM "books"
|
731
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
732
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
733
|
+
[1m[36mSQL (3.5ms)[0m [1mDELETE FROM "books"[0m
|
734
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
735
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
736
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books"
|
737
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
738
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
739
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
740
|
+
[1m[35m (0.1ms)[0m begin transaction
|
741
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
742
|
+
[1m[35m (1.9ms)[0m commit transaction
|
743
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
744
|
+
[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
|
745
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 1], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
746
|
+
[paperclip] Saving attachments.
|
747
|
+
[1m[35m (1.7ms)[0m commit transaction
|
748
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
749
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
750
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
751
|
+
[1m[35m (0.1ms)[0m begin transaction
|
752
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
753
|
+
[1m[35m (1.5ms)[0m commit transaction
|
754
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
755
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 2
|
756
|
+
[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"]]
|
757
|
+
[paperclip] Saving attachments.
|
758
|
+
[1m[35m (1.7ms)[0m commit transaction
|
759
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
760
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
761
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
762
|
+
[1m[35m (0.1ms)[0m begin transaction
|
763
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
764
|
+
[1m[35m (1.3ms)[0m commit transaction
|
765
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
766
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 3
|
767
|
+
[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"]]
|
768
|
+
[paperclip] Saving attachments.
|
769
|
+
[1m[35m (2.7ms)[0m commit transaction
|
770
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
771
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
772
|
+
[1m[36mSQL (1.3ms)[0m [1mDELETE FROM "books"[0m
|
773
|
+
[1m[35m (0.1ms)[0m begin transaction
|
774
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "rt_tipi_pannello" ("name") VALUES (?)[0m [["name", "Suntech STP"]]
|
775
|
+
[1m[35m (1.4ms)[0m commit transaction
|
776
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
777
|
+
[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
|
778
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("rt_tipi_pannello_assets"."counter") AS max_id FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP'[0m
|
779
|
+
[1m[35mSQL (11.5ms)[0m INSERT INTO "rt_tipi_pannello_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "counter", "displayable", "tipo_pannello_name", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 24 Apr 2012 10:16:43 UTC +00:00], ["counter", 1], ["displayable", false], ["tipo_pannello_name", "Suntech STP"], ["type", "TipiPannello::Documenti::SchedaTecnica"]]
|
780
|
+
[paperclip] Saving attachments.
|
781
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
782
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
783
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
784
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books"
|
785
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
786
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
787
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
788
|
+
[1m[35m (0.0ms)[0m begin transaction
|
789
|
+
[1m[36m (0.4ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 4[0m
|
790
|
+
[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", 4], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
791
|
+
[paperclip] Saving attachments.
|
792
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
793
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books_assets"
|
794
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
795
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
796
|
+
[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
|
797
|
+
[1m[35mSQL (2.6ms)[0m DELETE FROM "books_assets"
|
798
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
799
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
800
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
801
|
+
[1m[35m (0.5ms)[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
|
802
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
803
|
+
[paperclip] Saving attachments.
|
804
|
+
[1m[35m (2.3ms)[0m commit transaction
|
805
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
806
|
+
[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" IS NULL
|
807
|
+
[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", nil], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
808
|
+
[paperclip] Saving attachments.
|
809
|
+
[1m[35m (2.4ms)[0m commit transaction
|
810
|
+
[1m[36mBooks::Asset Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1[0m [["id", 5]]
|
811
|
+
[1m[35mBooks::Asset Load (0.1ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1 [["id", 6]]
|
812
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
813
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
814
|
+
[1m[36mSQL (1.4ms)[0m [1mDELETE FROM "books"[0m
|
815
|
+
[1m[35m (0.1ms)[0m begin transaction
|
816
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
817
|
+
[1m[35m (1.3ms)[0m commit transaction
|
818
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
819
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 5
|
820
|
+
[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, 24 Apr 2012 10:16:43 UTC +00:00], ["book_id", 5], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
821
|
+
[paperclip] Saving attachments.
|
822
|
+
[1m[35m (3.1ms)[0m commit transaction
|
823
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
824
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
825
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
826
|
+
[1m[35m (0.1ms)[0m begin transaction
|
827
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
828
|
+
[1m[35m (1.9ms)[0m commit transaction
|
829
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
830
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 6
|
831
|
+
[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, 24 Apr 2012 10:16:43 UTC +00:00], ["book_id", 6], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
832
|
+
[paperclip] Saving attachments.
|
833
|
+
[1m[35m (2.1ms)[0m commit transaction
|
834
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
835
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
836
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
837
|
+
[1m[35m (0.1ms)[0m begin transaction
|
838
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "chapters" ("name") VALUES (?)[0m [["name", "a new chapter"]]
|
839
|
+
[1m[35m (1.8ms)[0m commit transaction
|
840
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
841
|
+
[1m[35m (0.3ms)[0m SELECT MAX("chapters_assets"."counter") AS max_id FROM "chapters_assets" WHERE "chapters_assets"."type" IN ('Chapters::Assets::Paragraph') AND "chapters_assets"."chapter_name" = 'a new chapter'
|
842
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 24 Apr 2012 10:16:43 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 1], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
|
843
|
+
[paperclip] Saving attachments.
|
844
|
+
[1m[35m (2.0ms)[0m commit transaction
|
845
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
846
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
847
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
848
|
+
[1m[35m (0.1ms)[0m begin transaction
|
849
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "chapters" ("name") VALUES (?)[0m [["name", "a new chapter"]]
|
850
|
+
[1m[35m (1.9ms)[0m commit transaction
|
851
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
852
|
+
[1m[35m (0.4ms)[0m SELECT MAX("chapters_assets"."counter") AS max_id FROM "chapters_assets" WHERE "chapters_assets"."type" IN ('Chapters::Assets::Paragraph') AND "chapters_assets"."chapter_name" = 'a new chapter'
|
853
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 24 Apr 2012 10:16:43 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 2], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
|
854
|
+
[paperclip] Saving attachments.
|
855
|
+
[1m[35m (1.7ms)[0m commit transaction
|
856
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
857
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
858
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
859
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
860
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
861
|
+
[1m[35mSQL (1.5ms)[0m DELETE FROM "books"
|
862
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
863
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
864
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
865
|
+
[1m[35m (0.1ms)[0m begin transaction
|
866
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
867
|
+
[1m[35m (1.6ms)[0m commit transaction
|
868
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120424-56060-102m0gr[0]'
|
869
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120424-56060-102m0gr[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-1ncaqav'
|
870
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-1ncaqav20120424-56060-4bdlum[0]'
|
871
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-1ncaqav20120424-56060-4bdlum[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-1ncaqav20120424-56060-4bdlum20120424-56060-14fxk89'
|
872
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-1ncaqav20120424-56060-4bdlum[0]'
|
873
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-1ncaqav20120424-56060-4bdlum[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-1ncaqav20120424-56060-4bdlum20120424-56060-1n33ecl'
|
874
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
875
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 7
|
876
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Tue, 24 Apr 2012 10:16:43 UTC +00:00], ["book_id", 7], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
877
|
+
[paperclip] Saving attachments.
|
878
|
+
[1m[35m (1.8ms)[0m commit transaction
|
879
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
880
|
+
[1m[35mSQL (2.5ms)[0m DELETE FROM "books_assets"
|
881
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
882
|
+
[1m[35m (0.1ms)[0m begin transaction
|
883
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
884
|
+
[1m[35m (2.1ms)[0m commit transaction
|
885
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120424-56060-3z3cui[0]'
|
886
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120424-56060-3z3cui[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-1y9wsmd'
|
887
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-1y9wsmd20120424-56060-1w3qonn[0]'
|
888
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-1y9wsmd20120424-56060-1w3qonn[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-1y9wsmd20120424-56060-1w3qonn20120424-56060-xxnvnv'
|
889
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-1y9wsmd20120424-56060-1w3qonn[0]'
|
890
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-1y9wsmd20120424-56060-1w3qonn[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-1y9wsmd20120424-56060-1w3qonn20120424-56060-1m5o0bh'
|
891
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
892
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 8
|
893
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Tue, 24 Apr 2012 10:16:43 UTC +00:00], ["book_id", 8], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
894
|
+
[paperclip] Saving attachments.
|
895
|
+
[1m[35m (2.1ms)[0m commit transaction
|
896
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
897
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
898
|
+
[1m[36mSQL (1.4ms)[0m [1mDELETE FROM "books"[0m
|
899
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
900
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
901
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books"
|
902
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
903
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
904
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
905
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
906
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
907
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books"
|
908
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
909
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books_assets"
|
910
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
911
|
+
[1m[35m (0.1ms)[0m begin transaction
|
912
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
913
|
+
[1m[35m (1.6ms)[0m commit transaction
|
914
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
915
|
+
[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" = 9
|
916
|
+
[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, 24 Apr 2012 10:16:44 UTC +00:00], ["book_id", 9], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
917
|
+
[paperclip] Saving attachments.
|
918
|
+
[1m[35m (1.5ms)[0m commit transaction
|
919
|
+
Processing by Books::AssetsController#index as HTML
|
920
|
+
Parameters: {"multiple"=>true, "book_id"=>"9", "type"=>"Assets/TestDoc"}
|
921
|
+
[1m[36mBook Load (0.3ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "9"]]
|
922
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (63.0ms)
|
923
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 9
|
924
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.8ms)
|
925
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (4.2ms)
|
926
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (70.8ms)
|
927
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/index.html.erb (77.7ms)
|
928
|
+
Completed 200 OK in 163ms (Views: 160.2ms | ActiveRecord: 0.6ms)
|
929
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
930
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
931
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books"[0m
|
932
|
+
[1m[35m (0.1ms)[0m begin transaction
|
933
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
934
|
+
[1m[35m (1.5ms)[0m commit transaction
|
935
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
936
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10
|
937
|
+
[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, 24 Apr 2012 10:16:44 UTC +00:00], ["book_id", 10], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
938
|
+
[paperclip] Saving attachments.
|
939
|
+
[1m[35m (1.8ms)[0m commit transaction
|
940
|
+
Processing by Books::AssetsController#index as HTML
|
941
|
+
Parameters: {"target"=>"target_div", "book_id"=>"10", "type"=>"Assets/TestDoc"}
|
942
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "10"]]
|
943
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.2ms)
|
944
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10
|
945
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.1ms)
|
946
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.4ms)
|
947
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (5.0ms)
|
948
|
+
Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.5ms)
|
949
|
+
[1m[36mSQL (2.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
950
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
951
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
952
|
+
[1m[35m (0.1ms)[0m begin transaction
|
953
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
954
|
+
[1m[35m (1.6ms)[0m commit transaction
|
955
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
956
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 11
|
957
|
+
[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, 24 Apr 2012 10:16:44 UTC +00:00], ["book_id", 11], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
958
|
+
[paperclip] Saving attachments.
|
959
|
+
[1m[35m (1.5ms)[0m commit transaction
|
960
|
+
Processing by Books::AssetsController#index as HTML
|
961
|
+
Parameters: {"target"=>"target_div", "book_id"=>"11", "type"=>"Assets/TestDoc"}
|
962
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "11"]]
|
963
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.3ms)
|
964
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 11
|
965
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.0ms)
|
966
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.3ms)
|
967
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.9ms)
|
968
|
+
Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.4ms)
|
969
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
970
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
971
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
972
|
+
[1m[35m (0.1ms)[0m begin transaction
|
973
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
974
|
+
[1m[35m (1.4ms)[0m commit transaction
|
975
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
976
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 12
|
977
|
+
[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, 24 Apr 2012 10:16:44 UTC +00:00], ["book_id", 12], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
978
|
+
[paperclip] Saving attachments.
|
979
|
+
[1m[35m (1.9ms)[0m commit transaction
|
980
|
+
Processing by Books::AssetsController#index as HTML
|
981
|
+
Parameters: {"target"=>"target_div", "book_id"=>"12", "type"=>"Assets/TestDoc"}
|
982
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "12"]]
|
983
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.5ms)
|
984
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 12
|
985
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (1.9ms)
|
986
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.2ms)
|
987
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (5.1ms)
|
988
|
+
Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.4ms)
|
989
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
990
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
991
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
992
|
+
[1m[35m (0.1ms)[0m begin transaction
|
993
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
994
|
+
[1m[35m (3.0ms)[0m commit transaction
|
995
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
996
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 13
|
997
|
+
[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, 24 Apr 2012 10:16:44 UTC +00:00], ["book_id", 13], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
998
|
+
[paperclip] Saving attachments.
|
999
|
+
[1m[35m (2.3ms)[0m commit transaction
|
1000
|
+
Processing by Books::AssetsController#index as HTML
|
1001
|
+
Parameters: {"target"=>"target_div", "book_id"=>"13", "type"=>"Assets/TestDoc"}
|
1002
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "13"]]
|
1003
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.2ms)
|
1004
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 13
|
1005
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (1.9ms)
|
1006
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.2ms)
|
1007
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.8ms)
|
1008
|
+
Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.4ms)
|
1009
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
1010
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
1011
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
1012
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1013
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1014
|
+
[1m[35m (1.7ms)[0m commit transaction
|
1015
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1016
|
+
[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" = 14
|
1017
|
+
[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, 24 Apr 2012 10:16:44 UTC +00:00], ["book_id", 14], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1018
|
+
[paperclip] Saving attachments.
|
1019
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1020
|
+
Processing by Books::AssetsController#index as JSON
|
1021
|
+
Parameters: {"target"=>"target_div", "book_id"=>"14", "type"=>"Assets/TestDoc"}
|
1022
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "14"]]
|
1023
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 14
|
1024
|
+
Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.4ms)
|
1025
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
1026
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
1027
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
1028
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1029
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1030
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1031
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1032
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 15
|
1033
|
+
[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, 24 Apr 2012 10:16:44 UTC +00:00], ["book_id", 15], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1034
|
+
[paperclip] Saving attachments.
|
1035
|
+
[1m[35m (1.7ms)[0m commit transaction
|
1036
|
+
Processing by Books::AssetsController#index as JSON
|
1037
|
+
Parameters: {"target"=>"target_div", "book_id"=>"15", "type"=>"Assets/TestDoc"}
|
1038
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "15"]]
|
1039
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 15
|
1040
|
+
Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.4ms)
|
1041
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
1042
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
1043
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
1044
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1045
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1046
|
+
[1m[35m (1.7ms)[0m commit transaction
|
1047
|
+
Processing by Books::AssetsController#create as JS
|
1048
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fa8ad8d85d0 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120424-56060-1m6jchn>>, "book_id"=>"16", "type"=>"Assets/TestDoc"}
|
1049
|
+
[1m[36mBook Load (0.3ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "16"]]
|
1050
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1051
|
+
[1m[36m (0.4ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 16[0m
|
1052
|
+
[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", Tue, 24 Apr 2012 10:16:44 UTC +00:00], ["book_id", 16], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1053
|
+
[paperclip] Saving attachments.
|
1054
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
1055
|
+
[1m[35mBooks::Assets::TestDoc Load (0.5ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 16
|
1056
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (2.0ms)
|
1057
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.8ms)
|
1058
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (4.3ms)
|
1059
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (8.9ms)
|
1060
|
+
Completed 200 OK in 33ms (Views: 17.4ms | ActiveRecord: 3.6ms)
|
1061
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
1062
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
1063
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
1064
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1065
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1066
|
+
[1m[35m (1.5ms)[0m commit transaction
|
1067
|
+
Processing by Books::AssetsController#create as JS
|
1068
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fa8ac2e1b00 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120424-56060-19vzndu>>, "book_id"=>"17", "type"=>"Assets/TestDoc"}
|
1069
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "17"]]
|
1070
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1071
|
+
[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" = 17[0m
|
1072
|
+
[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", Tue, 24 Apr 2012 10:16:44 UTC +00:00], ["book_id", 17], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1073
|
+
[paperclip] Saving attachments.
|
1074
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
1075
|
+
[1m[35mBooks::Assets::TestDoc Load (0.4ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 17
|
1076
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (57.7ms)
|
1077
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (3.0ms)
|
1078
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (3.7ms)
|
1079
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (62.1ms)
|
1080
|
+
Completed 200 OK in 76ms (Views: 64.0ms | ActiveRecord: 3.2ms)
|
1081
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
1082
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
1083
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
1084
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1085
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1086
|
+
[1m[35m (1.7ms)[0m commit transaction
|
1087
|
+
Processing by Books::AssetsController#create as JS
|
1088
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fa8aadf5f48 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120424-56060-12n9uuj>>, "book_id"=>"18", "type"=>"Assets/TestDoc"}
|
1089
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "18"]]
|
1090
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1091
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 18[0m
|
1092
|
+
[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", Tue, 24 Apr 2012 10:16:44 UTC +00:00], ["book_id", 18], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1093
|
+
[paperclip] Saving attachments.
|
1094
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
1095
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 18
|
1096
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.4ms)
|
1097
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.0ms)
|
1098
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.3ms)
|
1099
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.2ms)
|
1100
|
+
Completed 200 OK in 18ms (Views: 6.0ms | ActiveRecord: 3.0ms)
|
1101
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
1102
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
1103
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
1104
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1105
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1106
|
+
[1m[35m (1.5ms)[0m commit transaction
|
1107
|
+
Processing by Books::AssetsController#create as JS
|
1108
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fa8ac4d9ef8 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120424-56060-1sbcxxq>>, "book_id"=>"19", "type"=>"Assets/TestDoc"}
|
1109
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "19"]]
|
1110
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1111
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 19[0m
|
1112
|
+
[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", Tue, 24 Apr 2012 10:16:44 UTC +00:00], ["book_id", 19], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1113
|
+
[paperclip] Saving attachments.
|
1114
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
1115
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 19
|
1116
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.4ms)
|
1117
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.0ms)
|
1118
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.2ms)
|
1119
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.1ms)
|
1120
|
+
Completed 200 OK in 17ms (Views: 5.8ms | ActiveRecord: 3.3ms)
|
1121
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
1122
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
1123
|
+
[1m[36mSQL (1.4ms)[0m [1mDELETE FROM "books"[0m
|
1124
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1125
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1126
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1127
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1128
|
+
[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" = 20
|
1129
|
+
[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, 24 Apr 2012 10:16:44 UTC +00:00], ["book_id", 20], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1130
|
+
[paperclip] Saving attachments.
|
1131
|
+
[1m[35m (1.7ms)[0m commit transaction
|
1132
|
+
Processing by Books::AssetsController#destroy as JS
|
1133
|
+
Parameters: {"type"=>"Assets/TestDoc", "target"=>"target_div", "book_id"=>"20", "asset_id"=>"22"}
|
1134
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "20"]]
|
1135
|
+
[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" = 22 LIMIT 1
|
1136
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1137
|
+
[paperclip] Scheduling attachments for deletion.
|
1138
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 22]]
|
1139
|
+
[paperclip] Deleting attachments.
|
1140
|
+
[paperclip] deleting public/system/books/20/assets/test_doc.jpg
|
1141
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
1142
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 20
|
1143
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.4ms)
|
1144
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
1145
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.2ms)
|
1146
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.1ms)
|
1147
|
+
Completed 200 OK in 16ms (Views: 5.6ms | ActiveRecord: 3.0ms)
|
1148
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
1149
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
1150
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
1151
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1152
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1153
|
+
[1m[35m (1.5ms)[0m commit transaction
|
1154
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1155
|
+
[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" = 21
|
1156
|
+
[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, 24 Apr 2012 10:16:44 UTC +00:00], ["book_id", 21], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1157
|
+
[paperclip] Saving attachments.
|
1158
|
+
[1m[35m (2.5ms)[0m commit transaction
|
1159
|
+
Processing by Books::AssetsController#destroy as JS
|
1160
|
+
Parameters: {"type"=>"Assets/TestDoc", "target"=>"target_div", "book_id"=>"21", "asset_id"=>"23"}
|
1161
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "21"]]
|
1162
|
+
[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" = 23 LIMIT 1
|
1163
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1164
|
+
[paperclip] Scheduling attachments for deletion.
|
1165
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 23]]
|
1166
|
+
[paperclip] Deleting attachments.
|
1167
|
+
[paperclip] deleting public/system/books/21/assets/test_doc.jpg
|
1168
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
1169
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 21
|
1170
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.6ms)
|
1171
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
1172
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.2ms)
|
1173
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.8ms)
|
1174
|
+
Completed 200 OK in 13ms (Views: 4.5ms | ActiveRecord: 3.2ms)
|
1175
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
1176
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
1177
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books"[0m
|
1178
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1179
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1180
|
+
[1m[35m (1.5ms)[0m commit transaction
|
1181
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1182
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 22
|
1183
|
+
[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, 24 Apr 2012 10:16:44 UTC +00:00], ["book_id", 22], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1184
|
+
[paperclip] Saving attachments.
|
1185
|
+
[1m[35m (1.6ms)[0m commit transaction
|
1186
|
+
Processing by Books::AssetsController#destroy as JS
|
1187
|
+
Parameters: {"type"=>"Assets/TestDoc", "target"=>"target_div", "book_id"=>"22", "asset_id"=>"24"}
|
1188
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "22"]]
|
1189
|
+
[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" = 24 LIMIT 1
|
1190
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1191
|
+
[paperclip] Scheduling attachments for deletion.
|
1192
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 24]]
|
1193
|
+
[paperclip] Deleting attachments.
|
1194
|
+
[paperclip] deleting public/system/books/22/assets/test_doc.jpg
|
1195
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
1196
|
+
[1m[35mBooks::Assets::TestDoc Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 22
|
1197
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.4ms)
|
1198
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
1199
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.2ms)
|
1200
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.1ms)
|
1201
|
+
Completed 200 OK in 12ms (Views: 4.2ms | ActiveRecord: 2.6ms)
|
1202
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
1203
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books_assets"
|
1204
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
1205
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1206
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1207
|
+
[1m[35m (1.6ms)[0m commit transaction
|
1208
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1209
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 23
|
1210
|
+
[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, 24 Apr 2012 10:16:44 UTC +00:00], ["book_id", 23], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1211
|
+
[paperclip] Saving attachments.
|
1212
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1213
|
+
Processing by Books::AssetsController#destroy as JS
|
1214
|
+
Parameters: {"type"=>"Assets/TestDoc", "target"=>"target_div", "book_id"=>"23", "asset_id"=>"25"}
|
1215
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "23"]]
|
1216
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 25 LIMIT 1
|
1217
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1218
|
+
[paperclip] Scheduling attachments for deletion.
|
1219
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 25]]
|
1220
|
+
[paperclip] Deleting attachments.
|
1221
|
+
[paperclip] deleting public/system/books/23/assets/test_doc.jpg
|
1222
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
1223
|
+
[1m[35mBooks::Assets::TestDoc Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 23
|
1224
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.4ms)
|
1225
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
|
1226
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.2ms)
|
1227
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.0ms)
|
1228
|
+
Completed 200 OK in 12ms (Views: 3.6ms | ActiveRecord: 2.7ms)
|
1229
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
1230
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
1231
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
1232
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1233
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1234
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1235
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
1236
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 24
|
1237
|
+
[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, 24 Apr 2012 10:16:44 UTC +00:00], ["book_id", 24], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1238
|
+
[paperclip] Saving attachments.
|
1239
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1240
|
+
Processing by Books::AssetsController#get as HTML
|
1241
|
+
Parameters: {"book_id"=>"24", "asset_id"=>"26", "type"=>"Assets/TestDoc"}
|
1242
|
+
[1m[36mBooks::Assets::TestDoc Load (0.4ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? LIMIT 1[0m [["id", "26"]]
|
1243
|
+
Sent file public/system/books/24/assets/test_doc.jpg (0.2ms)
|
1244
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.4ms)
|
1245
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books_assets"
|
1246
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
1247
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books"
|
1248
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1249
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
1250
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
1251
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120424-56060-137182h[0]'
|
1252
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120424-56060-137182h[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-g7as3e'
|
1253
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-g7as3e20120424-56060-1lwt1uo[0]'
|
1254
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-g7as3e20120424-56060-1lwt1uo[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-g7as3e20120424-56060-1lwt1uo20120424-56060-1xx4999'
|
1255
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-g7as3e20120424-56060-1lwt1uo[0]'
|
1256
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-g7as3e20120424-56060-1lwt1uo[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-g7as3e20120424-56060-1lwt1uo20120424-56060-1wtarkd'
|
1257
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1258
|
+
[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" = 25[0m
|
1259
|
+
[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", Tue, 24 Apr 2012 10:16:44 UTC +00:00], ["book_id", 25], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
1260
|
+
[paperclip] Saving attachments.
|
1261
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
1262
|
+
Processing by Books::AssetsController#get as HTML
|
1263
|
+
Parameters: {"book_id"=>"25", "asset_id"=>"27", "style"=>"thumb", "type"=>"Assets/TestImage"}
|
1264
|
+
[1m[35mBooks::Assets::TestImage Load (0.4ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."id" = ? LIMIT 1 [["id", "27"]]
|
1265
|
+
Sent file public/system/books/25/assets/thumb/test_image.jpg (0.2ms)
|
1266
|
+
Completed 200 OK in 5ms (ActiveRecord: 0.4ms)
|
1267
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
1268
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
1269
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
1270
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1271
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
1272
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1273
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120424-56060-1pjw9kp[0]'
|
1274
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test.jpg20120424-56060-1pjw9kp[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-1g3kjl0'
|
1275
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-1g3kjl020120424-56060-h3md1k[0]'
|
1276
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-1g3kjl020120424-56060-h3md1k[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-1g3kjl020120424-56060-h3md1k20120424-56060-1i2drlz'
|
1277
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-1g3kjl020120424-56060-h3md1k[0]'
|
1278
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-1g3kjl020120424-56060-h3md1k[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120424-56060-1g3kjl020120424-56060-h3md1k20120424-56060-4xa7r7'
|
1279
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1280
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 26
|
1281
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Tue, 24 Apr 2012 10:16:45 UTC +00:00], ["book_id", 26], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
1282
|
+
[paperclip] Saving attachments.
|
1283
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1284
|
+
Processing by Books::AssetsController#get as HTML
|
1285
|
+
Parameters: {"book_id"=>"26", "asset_id"=>"28", "style"=>"thumb", "type"=>"Assets/TestImage"}
|
1286
|
+
[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", "28"]]
|
1287
|
+
Sent file public/system/books/26/assets/thumb/test_image.jpg (0.2ms)
|
1288
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
|
1289
|
+
[32mCommand[0m :: identify -format %wx%h '/opt/code/fractalgarden/acts_as_assets/spec/temp/test.jpg[0]'
|
1290
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
1291
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
1292
|
+
[1m[35mSQL (1.4ms)[0m DELETE FROM "books"
|
1293
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1294
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
1295
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1296
|
+
Processing by Books::AssetsController#get as HTML
|
1297
|
+
Parameters: {"book_id"=>"27", "asset_id"=>"123456789", "type"=>"Assets/TestDoc"}
|
1298
|
+
[1m[35mBooks::Assets::TestDoc Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? LIMIT 1 [["id", "123456789"]]
|
1299
|
+
Completed 404 Not Found in 10ms (Views: 7.3ms | ActiveRecord: 0.2ms)
|
1300
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
1301
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
1302
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
1303
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
1304
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
1305
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
1306
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
1307
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
1308
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
1309
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
1310
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
1311
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books"
|
1312
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
1313
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
1314
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
1315
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
1316
|
+
[1m[36mSQL (1.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
1317
|
+
[1m[35mSQL (1.4ms)[0m DELETE FROM "books"
|
1318
|
+
[1m[36mSQL (5.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
1319
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
1320
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
1321
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
1322
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
1323
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books"
|
1324
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
1325
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
1326
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
1327
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
1328
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
1329
|
+
[1m[35mSQL (3.0ms)[0m DELETE FROM "books"
|
1330
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
1331
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
1332
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
1333
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
1334
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
1335
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books"
|
1336
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1337
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
1338
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
1339
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1340
|
+
[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" = 28 LIMIT 1[0m
|
1341
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 28
|
1342
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 28], ["counter", 1], ["displayable", false], ["type", "Books::Assets::UniqueTestDoc"]]
|
1343
|
+
[paperclip] Saving attachments.
|
1344
|
+
[1m[35m (1.8ms)[0m commit transaction
|
1345
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1346
|
+
[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" = 28 LIMIT 1
|
1347
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1348
|
+
[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" = 28 LIMIT 1
|
1349
|
+
[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" = 28 LIMIT 1[0m
|
1350
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
1351
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
1352
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books"
|
1353
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1354
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
1355
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
1356
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1357
|
+
[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" = 29[0m
|
1358
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 29], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1359
|
+
[paperclip] Saving attachments.
|
1360
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
1361
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1362
|
+
[1m[36m (0.4ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 29[0m
|
1363
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 29], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
1364
|
+
[paperclip] Saving attachments.
|
1365
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|