buddies_avatar 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/app/uploaders/avatar_uploader.rb +0 -1
- data/lib/buddies_avatar.rb +3 -2
- data/lib/buddies_avatar/orm/base.rb +5 -4
- data/lib/buddies_avatar/version.rb +1 -1
- data/test/buddies_avatar_test.rb +10 -0
- data/test/dummy/app/models/user.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +245 -0
- data/test/dummy/log/test.log +913 -0
- data/test/dummy/public/uploads/user/avatar/1/panda.jpg +0 -0
- data/test/dummy/public/uploads/user/avatar/1/thumb_panda.jpg +0 -0
- data/test/dummy/tmp/cache/assets/D44/480/sprockets%2F1e1c983942aeb241dddf2e6ed8916507 +0 -0
- data/test/dummy/tmp/cache/assets/D60/A10/sprockets%2F40ee4d5f36bc1b45418cd82cb2325ae4 +0 -0
- data/test/dummy/tmp/cache/assets/E88/B20/sprockets%2F038dc6bf06847b1fdbcec5bdf7ecaf1a +0 -0
- data/test/dummy/tmp/cache/assets/E88/F00/sprockets%2F72f3aaedc6caddde0a39d09c2c84bde8 +0 -0
- data/test/integration/navigation_test.rb +0 -1
- metadata +79 -7
- data/lib/buddies_avatar/orm/active_record.rb +0 -24
data/lib/buddies_avatar.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
+
require "carrierwave"
|
2
|
+
require "jquery-rails"
|
1
3
|
require "buddies_avatar/engine"
|
2
4
|
|
3
5
|
module BuddiesAvatar
|
4
6
|
module ORM
|
5
|
-
autoload :Base,
|
6
|
-
autoload :ActiveRecord, 'buddies_avatar/orm/active_record'
|
7
|
+
autoload :Base, 'buddies_avatar/orm/base'
|
7
8
|
end
|
8
9
|
end
|
@@ -4,16 +4,17 @@ module BuddiesAvatar
|
|
4
4
|
extend ActiveSupport::Concern
|
5
5
|
|
6
6
|
included do
|
7
|
+
attr_accessor :crop_x, :crop_y, :crop_w, :crop_h
|
7
8
|
after_update :reprocess_avatar, if: :cropping?
|
8
9
|
mount_uploader :avatar, AvatarUploader
|
9
10
|
end
|
10
|
-
|
11
|
+
|
11
12
|
def cropping?
|
12
|
-
|
13
|
+
!crop_x.blank? && !crop_y.blank? && !crop_w.blank? && !crop_h.blank?
|
13
14
|
end
|
14
|
-
|
15
|
+
|
15
16
|
def crop_string
|
16
|
-
|
17
|
+
"#{crop_w}x#{crop_h}+#{crop_x}+#{crop_y}"
|
17
18
|
end
|
18
19
|
|
19
20
|
def avatar_geometry
|
data/test/buddies_avatar_test.rb
CHANGED
@@ -1,4 +1,14 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
|
+
class MockStuff < ActiveRecord::Base
|
4
|
+
self.table_name = "users"
|
5
|
+
include BuddiesAvatar::ORM::Base
|
6
|
+
end
|
7
|
+
|
3
8
|
class BuddiesAvatarTest < ActiveSupport::TestCase
|
9
|
+
test "crop string" do
|
10
|
+
mu = MockStuff.new crop_x: 1, crop_y: 2, crop_w: 3, crop_h: 4
|
11
|
+
|
12
|
+
assert_equal "3x4+1+2", mu.crop_string
|
13
|
+
end
|
4
14
|
end
|
Binary file
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -0,0 +1,245 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:34:13 +0800
|
4
|
+
Processing by AvatarsController#show as HTML
|
5
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
6
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/show.html.erb within layouts/application (24.0ms)
|
7
|
+
Completed 200 OK in 329ms (Views: 62.4ms | ActiveRecord: 1.2ms)
|
8
|
+
|
9
|
+
|
10
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-09-17 12:34:14 +0800
|
11
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
12
|
+
|
13
|
+
|
14
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-09-17 12:34:14 +0800
|
15
|
+
Served asset /jquery.js - 404 Not Found (3ms)
|
16
|
+
|
17
|
+
ActionController::RoutingError (No route matches [GET] "/assets/jquery.js"):
|
18
|
+
|
19
|
+
|
20
|
+
Rendered /Users/linhe/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.1ms)
|
21
|
+
|
22
|
+
|
23
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-09-17 12:34:14 +0800
|
24
|
+
Served asset /jquery_ujs.js - 404 Not Found (3ms)
|
25
|
+
|
26
|
+
ActionController::RoutingError (No route matches [GET] "/assets/jquery_ujs.js"):
|
27
|
+
|
28
|
+
|
29
|
+
Rendered /Users/linhe/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.8ms)
|
30
|
+
|
31
|
+
|
32
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-09-17 12:34:14 +0800
|
33
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
34
|
+
|
35
|
+
|
36
|
+
Started GET "/uploads/user/avatar/1/thumb_meme.JPG" for 127.0.0.1 at 2011-09-17 12:34:14 +0800
|
37
|
+
|
38
|
+
ActionController::RoutingError (No route matches [GET] "/uploads/user/avatar/1/thumb_meme.JPG"):
|
39
|
+
|
40
|
+
|
41
|
+
Rendered /Users/linhe/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.0ms)
|
42
|
+
|
43
|
+
|
44
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 12:34:44 +0800
|
45
|
+
Processing by AvatarsController#update as HTML
|
46
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"iGKenOMiPQqyRFBIP6NP1s1GByZNBeuORTlEJS051xc=", "user"=>{"avatar"=>#<ActionDispatch::Http::UploadedFile:0x00000101109c88 @original_filename="panda.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"user[avatar]\"; filename=\"panda.jpg\"\r\nContent-Type: image/jpeg\r\n", @tempfile=#<File:/var/folders/ck/9dk9w45s7fncc53nn62n3c7w0000gn/T/RackMultipart20110917-2092-1w761t>>, "avatar_cache"=>""}, "commit"=>"Upload"}
|
47
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
48
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
49
|
+
[1m[35m (0.4ms)[0m UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:34:44.235211' WHERE "users"."id" = 1
|
50
|
+
Redirected to http://localhost:3000/avatar/crop
|
51
|
+
Completed 302 Found in 164ms
|
52
|
+
|
53
|
+
|
54
|
+
Started GET "/avatar/crop" for 127.0.0.1 at 2011-09-17 12:34:44 +0800
|
55
|
+
Processing by AvatarsController#crop as HTML
|
56
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
57
|
+
Compiled jquery.Jcrop (0ms) (pid 2092)
|
58
|
+
Compiled jquery.Jcrop.min (0ms) (pid 2092)
|
59
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/crop.html.erb within layouts/application (93.1ms)
|
60
|
+
Completed 200 OK in 118ms (Views: 100.7ms | ActiveRecord: 0.9ms)
|
61
|
+
|
62
|
+
|
63
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-09-17 12:34:44 +0800
|
64
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
65
|
+
|
66
|
+
|
67
|
+
Started GET "/assets/jquery.Jcrop?body=1" for 127.0.0.1 at 2011-09-17 12:34:44 +0800
|
68
|
+
Served asset /jquery.Jcrop - 200 OK (8ms)
|
69
|
+
|
70
|
+
|
71
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-09-17 12:34:44 +0800
|
72
|
+
Served asset /jquery_ujs.js - 404 Not Found (3ms)
|
73
|
+
|
74
|
+
ActionController::RoutingError (No route matches [GET] "/assets/jquery_ujs.js"):
|
75
|
+
|
76
|
+
|
77
|
+
Rendered /Users/linhe/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.7ms)
|
78
|
+
|
79
|
+
|
80
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-09-17 12:34:44 +0800
|
81
|
+
Served asset /jquery.js - 404 Not Found (3ms)
|
82
|
+
|
83
|
+
ActionController::RoutingError (No route matches [GET] "/assets/jquery.js"):
|
84
|
+
|
85
|
+
|
86
|
+
Rendered /Users/linhe/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.1ms)
|
87
|
+
|
88
|
+
|
89
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-09-17 12:34:44 +0800
|
90
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
91
|
+
|
92
|
+
|
93
|
+
Started GET "/assets/jquery.Jcrop.min?body=1" for 127.0.0.1 at 2011-09-17 12:34:44 +0800
|
94
|
+
Served asset /jquery.Jcrop.min - 304 Not Modified (0ms)
|
95
|
+
|
96
|
+
|
97
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 12:35:10 +0800
|
98
|
+
Processing by AvatarsController#update as HTML
|
99
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"iGKenOMiPQqyRFBIP6NP1s1GByZNBeuORTlEJS051xc=", "user"=>{"crop_x"=>"", "crop_y"=>"", "crop_w"=>"", "crop_h"=>""}, "commit"=>"Crop"}
|
100
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
101
|
+
Redirected to http://localhost:3000/avatar
|
102
|
+
Completed 302 Found in 23ms
|
103
|
+
|
104
|
+
|
105
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:35:10 +0800
|
106
|
+
Processing by AvatarsController#show as HTML
|
107
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
108
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/show.html.erb within layouts/application (5.8ms)
|
109
|
+
Completed 200 OK in 75ms (Views: 12.2ms | ActiveRecord: 0.9ms)
|
110
|
+
|
111
|
+
|
112
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-09-17 12:35:10 +0800
|
113
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
114
|
+
|
115
|
+
|
116
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-09-17 12:35:10 +0800
|
117
|
+
Served asset /jquery_ujs.js - 404 Not Found (4ms)
|
118
|
+
|
119
|
+
ActionController::RoutingError (No route matches [GET] "/assets/jquery_ujs.js"):
|
120
|
+
|
121
|
+
|
122
|
+
Rendered /Users/linhe/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.7ms)
|
123
|
+
|
124
|
+
|
125
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-09-17 12:35:10 +0800
|
126
|
+
Served asset /jquery.js - 404 Not Found (2ms)
|
127
|
+
|
128
|
+
ActionController::RoutingError (No route matches [GET] "/assets/jquery.js"):
|
129
|
+
|
130
|
+
|
131
|
+
Rendered /Users/linhe/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms)
|
132
|
+
|
133
|
+
|
134
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-09-17 12:35:10 +0800
|
135
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
136
|
+
|
137
|
+
|
138
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:36:32 +0800
|
139
|
+
Processing by AvatarsController#show as HTML
|
140
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
141
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/show.html.erb within layouts/application (25.4ms)
|
142
|
+
Completed 200 OK in 289ms (Views: 70.9ms | ActiveRecord: 1.0ms)
|
143
|
+
|
144
|
+
|
145
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-09-17 12:36:33 +0800
|
146
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
147
|
+
|
148
|
+
|
149
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-09-17 12:36:33 +0800
|
150
|
+
Served asset /jquery.js - 200 OK (5ms)
|
151
|
+
|
152
|
+
|
153
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-09-17 12:36:33 +0800
|
154
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
155
|
+
|
156
|
+
|
157
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-09-17 12:36:33 +0800
|
158
|
+
Served asset /jquery_ujs.js - 200 OK (3ms)
|
159
|
+
|
160
|
+
|
161
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 12:36:41 +0800
|
162
|
+
Processing by AvatarsController#update as HTML
|
163
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"iGKenOMiPQqyRFBIP6NP1s1GByZNBeuORTlEJS051xc=", "user"=>{"avatar"=>#<ActionDispatch::Http::UploadedFile:0x00000100e034d0 @original_filename="panda.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"user[avatar]\"; filename=\"panda.jpg\"\r\nContent-Type: image/jpeg\r\n", @tempfile=#<File:/var/folders/ck/9dk9w45s7fncc53nn62n3c7w0000gn/T/RackMultipart20110917-2201-18ri0p5>>, "avatar_cache"=>""}, "commit"=>"Upload"}
|
164
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
165
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
166
|
+
[1m[35m (0.4ms)[0m UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:36:41.533176' WHERE "users"."id" = 1
|
167
|
+
Redirected to http://localhost:3000/avatar/crop
|
168
|
+
Completed 302 Found in 207ms
|
169
|
+
|
170
|
+
|
171
|
+
Started GET "/avatar/crop" for 127.0.0.1 at 2011-09-17 12:36:41 +0800
|
172
|
+
Processing by AvatarsController#crop as HTML
|
173
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
174
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/crop.html.erb within layouts/application (90.2ms)
|
175
|
+
Completed 200 OK in 118ms (Views: 98.1ms | ActiveRecord: 1.2ms)
|
176
|
+
|
177
|
+
|
178
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-09-17 12:36:41 +0800
|
179
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
180
|
+
|
181
|
+
|
182
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-09-17 12:36:41 +0800
|
183
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
184
|
+
|
185
|
+
|
186
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-09-17 12:36:41 +0800
|
187
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
188
|
+
|
189
|
+
|
190
|
+
Started GET "/assets/jquery.Jcrop.min?body=1" for 127.0.0.1 at 2011-09-17 12:36:41 +0800
|
191
|
+
Served asset /jquery.Jcrop.min - 304 Not Modified (0ms)
|
192
|
+
|
193
|
+
|
194
|
+
Started GET "/assets/Jcrop.gif" for 127.0.0.1 at 2011-09-17 12:36:41 +0800
|
195
|
+
Served asset /Jcrop.gif - 304 Not Modified (5ms)
|
196
|
+
|
197
|
+
|
198
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 12:36:49 +0800
|
199
|
+
Processing by AvatarsController#update as HTML
|
200
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"iGKenOMiPQqyRFBIP6NP1s1GByZNBeuORTlEJS051xc=", "user"=>{"crop_x"=>"102", "crop_y"=>"10", "crop_w"=>"109", "crop_h"=>"109"}, "commit"=>"Crop"}
|
201
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
202
|
+
Redirected to http://localhost:3000/avatar
|
203
|
+
Completed 302 Found in 349ms
|
204
|
+
|
205
|
+
|
206
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:36:49 +0800
|
207
|
+
Processing by AvatarsController#show as HTML
|
208
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
209
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/show.html.erb within layouts/application (7.2ms)
|
210
|
+
Completed 200 OK in 34ms (Views: 14.5ms | ActiveRecord: 0.8ms)
|
211
|
+
|
212
|
+
|
213
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-09-17 12:36:49 +0800
|
214
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
215
|
+
|
216
|
+
|
217
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-09-17 12:36:49 +0800
|
218
|
+
Served asset /application.js - 304 Not Modified (1ms)
|
219
|
+
|
220
|
+
|
221
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-09-17 12:36:49 +0800
|
222
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
223
|
+
|
224
|
+
|
225
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:37:10 +0800
|
226
|
+
Processing by AvatarsController#show as HTML
|
227
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
228
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/show.html.erb within layouts/application (26.1ms)
|
229
|
+
Completed 200 OK in 281ms (Views: 66.5ms | ActiveRecord: 1.0ms)
|
230
|
+
|
231
|
+
|
232
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-09-17 12:37:11 +0800
|
233
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
234
|
+
|
235
|
+
|
236
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-09-17 12:37:11 +0800
|
237
|
+
Served asset /jquery.js - 304 Not Modified (3ms)
|
238
|
+
|
239
|
+
|
240
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-09-17 12:37:11 +0800
|
241
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
242
|
+
|
243
|
+
|
244
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-09-17 12:37:11 +0800
|
245
|
+
Served asset /jquery_ujs.js - 304 Not Modified (3ms)
|
data/test/dummy/log/test.log
CHANGED
@@ -346,3 +346,916 @@ Started GET "/avatar/crop" for 127.0.0.1 at 2011-09-17 11:06:21 +0800
|
|
346
346
|
Processing by AvatarsController#crop as HTML
|
347
347
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
348
348
|
Completed 200 OK in 72ms (Views: 70.7ms | ActiveRecord: 0.2ms)
|
349
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "users"[0m
|
350
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2011-09-17 03:44:07', '2011-09-17 03:44:07', 980190962)
|
351
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2011-09-17 03:44:07', '2011-09-17 03:44:07', 298486374)[0m
|
352
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
353
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
354
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
|
355
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
356
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
357
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 980190962]]
|
358
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
359
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
360
|
+
[1m[35mSQL (2.9ms)[0m INSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?) [["avatar", nil], ["created_at", Sat, 17 Sep 2011 03:44:07 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 03:44:07 UTC +00:00]]
|
361
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
362
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
363
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
364
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 03:44:07.371575' WHERE "users"."id" = 980190963
|
365
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
366
|
+
|
367
|
+
|
368
|
+
Started GET "/avatar/crop" for 127.0.0.1 at 2011-09-17 11:44:07 +0800
|
369
|
+
Processing by AvatarsController#crop as HTML
|
370
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
371
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/crop.html.erb within layouts/application (85.0ms)
|
372
|
+
Completed 200 OK in 122ms (Views: 120.9ms | ActiveRecord: 0.1ms)
|
373
|
+
|
374
|
+
|
375
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 11:44:08 +0800
|
376
|
+
Processing by AvatarsController#update as HTML
|
377
|
+
Parameters: {"utf8"=>"✓", "user"=>{"crop_x"=>"", "crop_y"=>"", "crop_w"=>"", "crop_h"=>""}, "commit"=>"Crop"}
|
378
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
379
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
380
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
381
|
+
Redirected to http://www.example.com/avatar
|
382
|
+
Completed 302 Found in 5ms
|
383
|
+
|
384
|
+
|
385
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 11:44:08 +0800
|
386
|
+
Processing by AvatarsController#show as HTML
|
387
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
388
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/show.html.erb within layouts/application (3.0ms)
|
389
|
+
Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.1ms)
|
390
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
391
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
392
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 298486374]]
|
393
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
394
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
395
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
|
396
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
397
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
398
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["avatar", nil], ["created_at", Sat, 17 Sep 2011 03:44:08 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 03:44:08 UTC +00:00]]
|
399
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
400
|
+
|
401
|
+
|
402
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 11:44:08 +0800
|
403
|
+
Processing by AvatarsController#show as HTML
|
404
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
405
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)
|
406
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
407
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
408
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
|
409
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
410
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
411
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 980190962]]
|
412
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
413
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
414
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?) [["avatar", nil], ["created_at", Sat, 17 Sep 2011 03:44:08 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 03:44:08 UTC +00:00]]
|
415
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
416
|
+
|
417
|
+
|
418
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 11:44:08 +0800
|
419
|
+
Processing by AvatarsController#show as HTML
|
420
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
421
|
+
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
|
422
|
+
|
423
|
+
|
424
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 11:44:08 +0800
|
425
|
+
Processing by AvatarsController#update as HTML
|
426
|
+
Parameters: {"utf8"=>"✓", "user"=>{"avatar"=>#<ActionDispatch::Http::UploadedFile:0x00000100cf9a30 @original_filename="invalid.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"user[avatar]\"; filename=\"invalid.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 13\r\n", @tempfile=#<File:/var/folders/ck/9dk9w45s7fncc53nn62n3c7w0000gn/T/RackMultipart20110917-1034-iqugnt>>, "avatar_cache"=>""}, "commit"=>"Upload"}
|
427
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
428
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
429
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
430
|
+
Completed 200 OK in 9ms (Views: 3.6ms | ActiveRecord: 0.3ms)
|
431
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
432
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
433
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
|
434
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
435
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
436
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 980190962]]
|
437
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
438
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
439
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?) [["avatar", nil], ["created_at", Sat, 17 Sep 2011 03:44:08 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 03:44:08 UTC +00:00]]
|
440
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
441
|
+
|
442
|
+
|
443
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 11:44:08 +0800
|
444
|
+
Processing by AvatarsController#show as HTML
|
445
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
446
|
+
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
|
447
|
+
|
448
|
+
|
449
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 11:44:08 +0800
|
450
|
+
Processing by AvatarsController#update as HTML
|
451
|
+
Parameters: {"utf8"=>"✓", "user"=>{"avatar"=>#<ActionDispatch::Http::UploadedFile:0x000001030e7fc8 @original_filename="panda.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"user[avatar]\"; filename=\"panda.jpg\"\r\nContent-Type: image/jpeg\r\nContent-Length: 24356\r\n", @tempfile=#<File:/var/folders/ck/9dk9w45s7fncc53nn62n3c7w0000gn/T/RackMultipart20110917-1034-1maf5ir>>, "avatar_cache"=>""}, "commit"=>"Upload"}
|
452
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
453
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
454
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
455
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 03:44:08.278382' WHERE "users"."id" = 980190963
|
456
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
457
|
+
Redirected to http://www.example.com/avatar/crop
|
458
|
+
Completed 302 Found in 114ms
|
459
|
+
|
460
|
+
|
461
|
+
Started GET "/avatar/crop" for 127.0.0.1 at 2011-09-17 11:44:08 +0800
|
462
|
+
Processing by AvatarsController#crop as HTML
|
463
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
464
|
+
Completed 200 OK in 148ms (Views: 146.6ms | ActiveRecord: 0.1ms)
|
465
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
466
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2011-09-17 03:45:12', '2011-09-17 03:45:12', 980190962)
|
467
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2011-09-17 03:45:12', '2011-09-17 03:45:12', 298486374)[0m
|
468
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
469
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
470
|
+
[1m[35mSQL (0.7ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
|
471
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
472
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
473
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 980190962]]
|
474
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
475
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
476
|
+
[1m[35mSQL (3.1ms)[0m INSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?) [["avatar", nil], ["created_at", Sat, 17 Sep 2011 03:45:12 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 03:45:12 UTC +00:00]]
|
477
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
478
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
479
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
480
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 03:45:13.084707' WHERE "users"."id" = 980190963
|
481
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
482
|
+
|
483
|
+
|
484
|
+
Started GET "/avatar/crop" for 127.0.0.1 at 2011-09-17 11:45:13 +0800
|
485
|
+
Processing by AvatarsController#crop as HTML
|
486
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
487
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/crop.html.erb within layouts/application (82.9ms)
|
488
|
+
Completed 200 OK in 118ms (Views: 116.2ms | ActiveRecord: 0.1ms)
|
489
|
+
|
490
|
+
|
491
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 11:45:13 +0800
|
492
|
+
Processing by AvatarsController#update as HTML
|
493
|
+
Parameters: {"utf8"=>"✓", "user"=>{"crop_x"=>"", "crop_y"=>"", "crop_w"=>"", "crop_h"=>""}, "commit"=>"Crop"}
|
494
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
495
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
496
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
497
|
+
Redirected to http://www.example.com/avatar
|
498
|
+
Completed 302 Found in 64ms
|
499
|
+
|
500
|
+
|
501
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 11:45:13 +0800
|
502
|
+
Processing by AvatarsController#show as HTML
|
503
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
504
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/show.html.erb within layouts/application (2.7ms)
|
505
|
+
Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.1ms)
|
506
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
507
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
508
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 298486374]]
|
509
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
510
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
511
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
|
512
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
513
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
514
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["avatar", nil], ["created_at", Sat, 17 Sep 2011 03:45:13 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 03:45:13 UTC +00:00]]
|
515
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
516
|
+
|
517
|
+
|
518
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 11:45:13 +0800
|
519
|
+
Processing by AvatarsController#show as HTML
|
520
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
521
|
+
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)
|
522
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
523
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
524
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
|
525
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
526
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
527
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 980190962]]
|
528
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
529
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
530
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?) [["avatar", nil], ["created_at", Sat, 17 Sep 2011 03:45:13 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 03:45:13 UTC +00:00]]
|
531
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
532
|
+
|
533
|
+
|
534
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 11:45:13 +0800
|
535
|
+
Processing by AvatarsController#show as HTML
|
536
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
537
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
|
538
|
+
|
539
|
+
|
540
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 11:45:13 +0800
|
541
|
+
Processing by AvatarsController#update as HTML
|
542
|
+
Parameters: {"utf8"=>"✓", "user"=>{"avatar"=>#<ActionDispatch::Http::UploadedFile:0x00000104a88d38 @original_filename="invalid.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"user[avatar]\"; filename=\"invalid.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 13\r\n", @tempfile=#<File:/var/folders/ck/9dk9w45s7fncc53nn62n3c7w0000gn/T/RackMultipart20110917-1093-1y4wn8b>>, "avatar_cache"=>""}, "commit"=>"Upload"}
|
543
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
544
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
545
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
546
|
+
Completed 200 OK in 6ms (Views: 2.2ms | ActiveRecord: 0.2ms)
|
547
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
548
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
549
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
|
550
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
551
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
552
|
+
[1m[36mSQL (0.7ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 980190962]]
|
553
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
554
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
555
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?) [["avatar", nil], ["created_at", Sat, 17 Sep 2011 03:45:13 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 03:45:13 UTC +00:00]]
|
556
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
557
|
+
|
558
|
+
|
559
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 11:45:13 +0800
|
560
|
+
Processing by AvatarsController#show as HTML
|
561
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
562
|
+
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
|
563
|
+
|
564
|
+
|
565
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 11:45:13 +0800
|
566
|
+
Processing by AvatarsController#update as HTML
|
567
|
+
Parameters: {"utf8"=>"✓", "user"=>{"avatar"=>#<ActionDispatch::Http::UploadedFile:0x000001033d4a10 @original_filename="panda.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"user[avatar]\"; filename=\"panda.jpg\"\r\nContent-Type: image/jpeg\r\nContent-Length: 24356\r\n", @tempfile=#<File:/var/folders/ck/9dk9w45s7fncc53nn62n3c7w0000gn/T/RackMultipart20110917-1093-1ik67cw>>, "avatar_cache"=>""}, "commit"=>"Upload"}
|
568
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
569
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
570
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
571
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 03:45:14.010077' WHERE "users"."id" = 980190963
|
572
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
573
|
+
Redirected to http://www.example.com/avatar/crop
|
574
|
+
Completed 302 Found in 117ms
|
575
|
+
|
576
|
+
|
577
|
+
Started GET "/avatar/crop" for 127.0.0.1 at 2011-09-17 11:45:14 +0800
|
578
|
+
Processing by AvatarsController#crop as HTML
|
579
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
580
|
+
Completed 200 OK in 74ms (Views: 73.3ms | ActiveRecord: 0.2ms)
|
581
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
582
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2011-09-17 03:45:56', '2011-09-17 03:45:56', 980190962)
|
583
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2011-09-17 03:45:56', '2011-09-17 03:45:56', 298486374)[0m
|
584
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
585
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
586
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
|
587
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
588
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
589
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 980190962]]
|
590
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
591
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
592
|
+
[1m[35mSQL (3.3ms)[0m INSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?) [["avatar", nil], ["created_at", Sat, 17 Sep 2011 03:45:56 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 03:45:56 UTC +00:00]]
|
593
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
594
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
595
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
596
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 03:45:56.611660' WHERE "users"."id" = 980190963
|
597
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
598
|
+
|
599
|
+
|
600
|
+
Started GET "/avatar/crop" for 127.0.0.1 at 2011-09-17 11:45:56 +0800
|
601
|
+
Processing by AvatarsController#crop as HTML
|
602
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
603
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/crop.html.erb within layouts/application (88.3ms)
|
604
|
+
Completed 200 OK in 123ms (Views: 121.1ms | ActiveRecord: 0.1ms)
|
605
|
+
|
606
|
+
|
607
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 11:45:57 +0800
|
608
|
+
Processing by AvatarsController#update as HTML
|
609
|
+
Parameters: {"utf8"=>"✓", "user"=>{"crop_x"=>"", "crop_y"=>"", "crop_w"=>"", "crop_h"=>""}, "commit"=>"Crop"}
|
610
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
611
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
612
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
613
|
+
Redirected to http://www.example.com/avatar
|
614
|
+
Completed 302 Found in 8ms
|
615
|
+
|
616
|
+
|
617
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 11:45:57 +0800
|
618
|
+
Processing by AvatarsController#show as HTML
|
619
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
620
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/show.html.erb within layouts/application (4.7ms)
|
621
|
+
Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.2ms)
|
622
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
623
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
624
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 298486374]]
|
625
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
626
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
627
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
|
628
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
629
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
630
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["avatar", nil], ["created_at", Sat, 17 Sep 2011 03:45:57 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 03:45:57 UTC +00:00]]
|
631
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
632
|
+
|
633
|
+
|
634
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 11:45:57 +0800
|
635
|
+
Processing by AvatarsController#show as HTML
|
636
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
637
|
+
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
|
638
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
639
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
640
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
|
641
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
642
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
643
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 980190962]]
|
644
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
645
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
646
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?) [["avatar", nil], ["created_at", Sat, 17 Sep 2011 03:45:57 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 03:45:57 UTC +00:00]]
|
647
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
648
|
+
|
649
|
+
|
650
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 11:45:57 +0800
|
651
|
+
Processing by AvatarsController#show as HTML
|
652
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
653
|
+
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)
|
654
|
+
|
655
|
+
|
656
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 11:45:57 +0800
|
657
|
+
Processing by AvatarsController#update as HTML
|
658
|
+
Parameters: {"utf8"=>"✓", "user"=>{"avatar"=>#<ActionDispatch::Http::UploadedFile:0x00000100b92980 @original_filename="invalid.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"user[avatar]\"; filename=\"invalid.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 13\r\n", @tempfile=#<File:/var/folders/ck/9dk9w45s7fncc53nn62n3c7w0000gn/T/RackMultipart20110917-1127-1hc5a2r>>, "avatar_cache"=>""}, "commit"=>"Upload"}
|
659
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
660
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
661
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
662
|
+
Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.2ms)
|
663
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
664
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
665
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
|
666
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
667
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
668
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 980190962]]
|
669
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
670
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
671
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?) [["avatar", nil], ["created_at", Sat, 17 Sep 2011 03:45:57 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 03:45:57 UTC +00:00]]
|
672
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
673
|
+
|
674
|
+
|
675
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 11:45:57 +0800
|
676
|
+
Processing by AvatarsController#show as HTML
|
677
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
678
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)
|
679
|
+
|
680
|
+
|
681
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 11:45:57 +0800
|
682
|
+
Processing by AvatarsController#update as HTML
|
683
|
+
Parameters: {"utf8"=>"✓", "user"=>{"avatar"=>#<ActionDispatch::Http::UploadedFile:0x00000105941eb0 @original_filename="panda.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"user[avatar]\"; filename=\"panda.jpg\"\r\nContent-Type: image/jpeg\r\nContent-Length: 24356\r\n", @tempfile=#<File:/var/folders/ck/9dk9w45s7fncc53nn62n3c7w0000gn/T/RackMultipart20110917-1127-l1zorr>>, "avatar_cache"=>""}, "commit"=>"Upload"}
|
684
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
685
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
686
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
687
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 03:45:57.469857' WHERE "users"."id" = 980190963
|
688
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
689
|
+
Redirected to http://www.example.com/avatar/crop
|
690
|
+
Completed 302 Found in 185ms
|
691
|
+
|
692
|
+
|
693
|
+
Started GET "/avatar/crop" for 127.0.0.1 at 2011-09-17 11:45:57 +0800
|
694
|
+
Processing by AvatarsController#crop as HTML
|
695
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
696
|
+
Completed 200 OK in 76ms (Views: 74.6ms | ActiveRecord: 0.2ms)
|
697
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
698
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
699
|
+
[1m[36mSQL (10.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 298486374]]
|
700
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
701
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
702
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
|
703
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
704
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
705
|
+
[1m[36mSQL (2.6ms)[0m [1mINSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["avatar", nil], ["created_at", Sat, 17 Sep 2011 04:06:45 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 04:06:45 UTC +00:00]]
|
706
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
707
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
708
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
709
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:06:45.549873' WHERE "users"."id" = 980190963[0m
|
710
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
711
|
+
|
712
|
+
|
713
|
+
Started GET "/avatar/crop" for 127.0.0.1 at 2011-09-17 12:06:45 +0800
|
714
|
+
Processing by AvatarsController#crop as HTML
|
715
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
716
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/crop.html.erb within layouts/application (83.2ms)
|
717
|
+
Completed 200 OK in 119ms (Views: 117.6ms | ActiveRecord: 0.2ms)
|
718
|
+
|
719
|
+
|
720
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 12:06:46 +0800
|
721
|
+
Processing by AvatarsController#update as HTML
|
722
|
+
Parameters: {"utf8"=>"✓", "user"=>{"crop_x"=>"", "crop_y"=>"", "crop_w"=>"", "crop_h"=>""}, "commit"=>"Crop"}
|
723
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
724
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
725
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
726
|
+
Redirected to http://www.example.com/avatar
|
727
|
+
Completed 302 Found in 4ms
|
728
|
+
|
729
|
+
|
730
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:06:46 +0800
|
731
|
+
Processing by AvatarsController#show as HTML
|
732
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
733
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/show.html.erb within layouts/application (4.0ms)
|
734
|
+
Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms)
|
735
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
736
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
737
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
|
738
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
739
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
740
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 980190962]]
|
741
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
742
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
743
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?) [["avatar", nil], ["created_at", Sat, 17 Sep 2011 04:06:46 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 04:06:46 UTC +00:00]]
|
744
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
745
|
+
|
746
|
+
|
747
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:06:46 +0800
|
748
|
+
Processing by AvatarsController#show as HTML
|
749
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
750
|
+
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)
|
751
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" [0m
|
752
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
753
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 298486374]]
|
754
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
755
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
756
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
|
757
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
758
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
759
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["avatar", nil], ["created_at", Sat, 17 Sep 2011 04:06:46 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 04:06:46 UTC +00:00]]
|
760
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
761
|
+
|
762
|
+
|
763
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:06:46 +0800
|
764
|
+
Processing by AvatarsController#show as HTML
|
765
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
766
|
+
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)
|
767
|
+
|
768
|
+
|
769
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 12:06:46 +0800
|
770
|
+
Processing by AvatarsController#update as HTML
|
771
|
+
Parameters: {"utf8"=>"✓", "user"=>{"avatar"=>#<ActionDispatch::Http::UploadedFile:0x00000102cc6520 @original_filename="invalid.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"user[avatar]\"; filename=\"invalid.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 13\r\n", @tempfile=#<File:/var/folders/ck/9dk9w45s7fncc53nn62n3c7w0000gn/T/RackMultipart20110917-1415-1r8er4z>>, "avatar_cache"=>""}, "commit"=>"Upload"}
|
772
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
773
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
774
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
775
|
+
Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.2ms)
|
776
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" [0m
|
777
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
778
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 298486374]]
|
779
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
780
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
781
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
|
782
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
783
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
784
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["avatar", nil], ["created_at", Sat, 17 Sep 2011 04:06:46 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 04:06:46 UTC +00:00]]
|
785
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
786
|
+
|
787
|
+
|
788
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:06:46 +0800
|
789
|
+
Processing by AvatarsController#show as HTML
|
790
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
791
|
+
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)
|
792
|
+
|
793
|
+
|
794
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 12:06:46 +0800
|
795
|
+
Processing by AvatarsController#update as HTML
|
796
|
+
Parameters: {"utf8"=>"✓", "user"=>{"avatar"=>#<ActionDispatch::Http::UploadedFile:0x0000010121b018 @original_filename="panda.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"user[avatar]\"; filename=\"panda.jpg\"\r\nContent-Type: image/jpeg\r\nContent-Length: 24356\r\n", @tempfile=#<File:/var/folders/ck/9dk9w45s7fncc53nn62n3c7w0000gn/T/RackMultipart20110917-1415-ge2qu2>>, "avatar_cache"=>""}, "commit"=>"Upload"}
|
797
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
798
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
799
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
800
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:06:46.488405' WHERE "users"."id" = 980190963[0m
|
801
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
802
|
+
Redirected to http://www.example.com/avatar/crop
|
803
|
+
Completed 302 Found in 114ms
|
804
|
+
|
805
|
+
|
806
|
+
Started GET "/avatar/crop" for 127.0.0.1 at 2011-09-17 12:06:46 +0800
|
807
|
+
Processing by AvatarsController#crop as HTML
|
808
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
809
|
+
Completed 200 OK in 71ms (Views: 70.3ms | ActiveRecord: 0.2ms)
|
810
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" [0m
|
811
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
812
|
+
[1m[36mSQL (10.9ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 298486374]]
|
813
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
814
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
815
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
|
816
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
817
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
818
|
+
[1m[36mSQL (2.6ms)[0m [1mINSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["avatar", nil], ["created_at", Sat, 17 Sep 2011 04:46:56 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 04:46:56 UTC +00:00]]
|
819
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
820
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
821
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
822
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:46:56.632247' WHERE "users"."id" = 980190963[0m
|
823
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
824
|
+
|
825
|
+
|
826
|
+
Started GET "/avatar/crop" for 127.0.0.1 at 2011-09-17 12:46:57 +0800
|
827
|
+
Processing by AvatarsController#crop as HTML
|
828
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
829
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/crop.html.erb within layouts/application (82.6ms)
|
830
|
+
Completed 200 OK in 119ms (Views: 117.6ms | ActiveRecord: 0.2ms)
|
831
|
+
|
832
|
+
|
833
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 12:46:57 +0800
|
834
|
+
Processing by AvatarsController#update as HTML
|
835
|
+
Parameters: {"utf8"=>"✓", "user"=>{"crop_x"=>"", "crop_y"=>"", "crop_w"=>"", "crop_h"=>""}, "commit"=>"Crop"}
|
836
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
837
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
838
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
839
|
+
Redirected to http://www.example.com/avatar
|
840
|
+
Completed 302 Found in 5ms
|
841
|
+
|
842
|
+
|
843
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:46:57 +0800
|
844
|
+
Processing by AvatarsController#show as HTML
|
845
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
846
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/show.html.erb within layouts/application (2.8ms)
|
847
|
+
Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.1ms)
|
848
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
849
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
850
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
|
851
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
852
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
853
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 980190962]]
|
854
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
855
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
856
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?) [["avatar", nil], ["created_at", Sat, 17 Sep 2011 04:46:57 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 04:46:57 UTC +00:00]]
|
857
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
858
|
+
|
859
|
+
|
860
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:46:57 +0800
|
861
|
+
Processing by AvatarsController#show as HTML
|
862
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
863
|
+
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
|
864
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
865
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
866
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 298486374]]
|
867
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
868
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
869
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
|
870
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
871
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
872
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["avatar", nil], ["created_at", Sat, 17 Sep 2011 04:46:57 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 04:46:57 UTC +00:00]]
|
873
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
874
|
+
|
875
|
+
|
876
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:46:57 +0800
|
877
|
+
Processing by AvatarsController#show as HTML
|
878
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
879
|
+
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)
|
880
|
+
|
881
|
+
|
882
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 12:46:57 +0800
|
883
|
+
Processing by AvatarsController#update as HTML
|
884
|
+
Parameters: {"utf8"=>"✓", "user"=>{"avatar"=>#<ActionDispatch::Http::UploadedFile:0x000001027417d0 @original_filename="invalid.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"user[avatar]\"; filename=\"invalid.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 13\r\n", @tempfile=#<File:/var/folders/ck/9dk9w45s7fncc53nn62n3c7w0000gn/T/RackMultipart20110917-2506-x5cg3h>>, "avatar_cache"=>""}, "commit"=>"Upload"}
|
885
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
886
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
887
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
888
|
+
Completed 200 OK in 9ms (Views: 3.6ms | ActiveRecord: 0.3ms)
|
889
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
890
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
891
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 298486374]]
|
892
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
893
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
894
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
|
895
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
896
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
897
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["avatar", nil], ["created_at", Sat, 17 Sep 2011 04:46:57 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 04:46:57 UTC +00:00]]
|
898
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
899
|
+
|
900
|
+
|
901
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:46:57 +0800
|
902
|
+
Processing by AvatarsController#show as HTML
|
903
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
904
|
+
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
|
905
|
+
|
906
|
+
|
907
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 12:46:57 +0800
|
908
|
+
Processing by AvatarsController#update as HTML
|
909
|
+
Parameters: {"utf8"=>"✓", "user"=>{"avatar"=>#<ActionDispatch::Http::UploadedFile:0x000001011e7498 @original_filename="panda.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"user[avatar]\"; filename=\"panda.jpg\"\r\nContent-Type: image/jpeg\r\nContent-Length: 24356\r\n", @tempfile=#<File:/var/folders/ck/9dk9w45s7fncc53nn62n3c7w0000gn/T/RackMultipart20110917-2506-19kesyc>>, "avatar_cache"=>""}, "commit"=>"Upload"}
|
910
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
911
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
912
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
913
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:46:57.527928' WHERE "users"."id" = 980190963[0m
|
914
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
915
|
+
Redirected to http://www.example.com/avatar/crop
|
916
|
+
Completed 302 Found in 117ms
|
917
|
+
|
918
|
+
|
919
|
+
Started GET "/avatar/crop" for 127.0.0.1 at 2011-09-17 12:46:57 +0800
|
920
|
+
Processing by AvatarsController#crop as HTML
|
921
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
922
|
+
Completed 200 OK in 74ms (Views: 73.1ms | ActiveRecord: 0.1ms)
|
923
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
924
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
925
|
+
[1m[36mSQL (10.6ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 298486374]]
|
926
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
927
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
928
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
|
929
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
930
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
931
|
+
[1m[36mSQL (3.4ms)[0m [1mINSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["avatar", nil], ["created_at", Sat, 17 Sep 2011 04:48:52 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 04:48:52 UTC +00:00]]
|
932
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
933
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
934
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
935
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:48:52.424311' WHERE "users"."id" = 980190963[0m
|
936
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
937
|
+
|
938
|
+
|
939
|
+
Started GET "/avatar/crop" for 127.0.0.1 at 2011-09-17 12:48:52 +0800
|
940
|
+
Processing by AvatarsController#crop as HTML
|
941
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
942
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/crop.html.erb within layouts/application (86.0ms)
|
943
|
+
Completed 200 OK in 121ms (Views: 119.7ms | ActiveRecord: 0.1ms)
|
944
|
+
|
945
|
+
|
946
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 12:48:53 +0800
|
947
|
+
Processing by AvatarsController#update as HTML
|
948
|
+
Parameters: {"utf8"=>"✓", "user"=>{"crop_x"=>"", "crop_y"=>"", "crop_w"=>"", "crop_h"=>""}, "commit"=>"Crop"}
|
949
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
950
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
951
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
952
|
+
Redirected to http://www.example.com/avatar
|
953
|
+
Completed 302 Found in 5ms
|
954
|
+
|
955
|
+
|
956
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:48:53 +0800
|
957
|
+
Processing by AvatarsController#show as HTML
|
958
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
959
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/show.html.erb within layouts/application (3.5ms)
|
960
|
+
Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.1ms)
|
961
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
962
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
963
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
|
964
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
965
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
966
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 980190962]]
|
967
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
968
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
969
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?) [["avatar", nil], ["created_at", Sat, 17 Sep 2011 04:48:53 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 04:48:53 UTC +00:00]]
|
970
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
971
|
+
|
972
|
+
|
973
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:48:53 +0800
|
974
|
+
Processing by AvatarsController#show as HTML
|
975
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
976
|
+
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
|
977
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
978
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
979
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 298486374]]
|
980
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
981
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
982
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
|
983
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
984
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
985
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["avatar", nil], ["created_at", Sat, 17 Sep 2011 04:48:53 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 04:48:53 UTC +00:00]]
|
986
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
987
|
+
|
988
|
+
|
989
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:48:53 +0800
|
990
|
+
Processing by AvatarsController#show as HTML
|
991
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
992
|
+
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
|
993
|
+
|
994
|
+
|
995
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 12:48:53 +0800
|
996
|
+
Processing by AvatarsController#update as HTML
|
997
|
+
Parameters: {"utf8"=>"✓", "user"=>{"avatar"=>#<ActionDispatch::Http::UploadedFile:0x00000100a6d7a8 @original_filename="invalid.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"user[avatar]\"; filename=\"invalid.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 13\r\n", @tempfile=#<File:/var/folders/ck/9dk9w45s7fncc53nn62n3c7w0000gn/T/RackMultipart20110917-2598-2lsvlr>>, "avatar_cache"=>""}, "commit"=>"Upload"}
|
998
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
999
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1000
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1001
|
+
Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.2ms)
|
1002
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
1003
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1004
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 298486374]]
|
1005
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1006
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1007
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
|
1008
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1009
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1010
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["avatar", nil], ["created_at", Sat, 17 Sep 2011 04:48:53 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 04:48:53 UTC +00:00]]
|
1011
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1012
|
+
|
1013
|
+
|
1014
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:48:53 +0800
|
1015
|
+
Processing by AvatarsController#show as HTML
|
1016
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
1017
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
|
1018
|
+
|
1019
|
+
|
1020
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 12:48:53 +0800
|
1021
|
+
Processing by AvatarsController#update as HTML
|
1022
|
+
Parameters: {"utf8"=>"✓", "user"=>{"avatar"=>#<ActionDispatch::Http::UploadedFile:0x00000104b0e690 @original_filename="panda.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"user[avatar]\"; filename=\"panda.jpg\"\r\nContent-Type: image/jpeg\r\nContent-Length: 24356\r\n", @tempfile=#<File:/var/folders/ck/9dk9w45s7fncc53nn62n3c7w0000gn/T/RackMultipart20110917-2598-9cdsi2>>, "avatar_cache"=>""}, "commit"=>"Upload"}
|
1023
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
1024
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1025
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
1026
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:48:53.389519' WHERE "users"."id" = 980190963[0m
|
1027
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1028
|
+
Redirected to http://www.example.com/avatar/crop
|
1029
|
+
Completed 302 Found in 198ms
|
1030
|
+
|
1031
|
+
|
1032
|
+
Started GET "/avatar/crop" for 127.0.0.1 at 2011-09-17 12:48:53 +0800
|
1033
|
+
Processing by AvatarsController#crop as HTML
|
1034
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
1035
|
+
Completed 200 OK in 79ms (Views: 77.7ms | ActiveRecord: 0.1ms)
|
1036
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
1037
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1038
|
+
[1m[36mSQL (10.9ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 298486374]]
|
1039
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1040
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1041
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
|
1042
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1043
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1044
|
+
[1m[36mSQL (2.9ms)[0m [1mINSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["avatar", nil], ["created_at", Sat, 17 Sep 2011 04:50:39 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 04:50:39 UTC +00:00]]
|
1045
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1046
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1047
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
1048
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:50:39.938596' WHERE "users"."id" = 980190963[0m
|
1049
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1050
|
+
|
1051
|
+
|
1052
|
+
Started GET "/avatar/crop" for 127.0.0.1 at 2011-09-17 12:50:40 +0800
|
1053
|
+
Processing by AvatarsController#crop as HTML
|
1054
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
1055
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/crop.html.erb within layouts/application (88.8ms)
|
1056
|
+
Completed 200 OK in 124ms (Views: 122.6ms | ActiveRecord: 0.1ms)
|
1057
|
+
|
1058
|
+
|
1059
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 12:50:40 +0800
|
1060
|
+
Processing by AvatarsController#update as HTML
|
1061
|
+
Parameters: {"utf8"=>"✓", "user"=>{"crop_x"=>"", "crop_y"=>"", "crop_w"=>"", "crop_h"=>""}, "commit"=>"Crop"}
|
1062
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
1063
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1064
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1065
|
+
Redirected to http://www.example.com/avatar
|
1066
|
+
Completed 302 Found in 4ms
|
1067
|
+
|
1068
|
+
|
1069
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:50:40 +0800
|
1070
|
+
Processing by AvatarsController#show as HTML
|
1071
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
1072
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/show.html.erb within layouts/application (2.7ms)
|
1073
|
+
Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.1ms)
|
1074
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
1075
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1076
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
|
1077
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1078
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1079
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 980190962]]
|
1080
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1081
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1082
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?) [["avatar", nil], ["created_at", Sat, 17 Sep 2011 04:50:40 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 04:50:40 UTC +00:00]]
|
1083
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1084
|
+
|
1085
|
+
|
1086
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:50:40 +0800
|
1087
|
+
Processing by AvatarsController#show as HTML
|
1088
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
1089
|
+
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
|
1090
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
1091
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1092
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 298486374]]
|
1093
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1094
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1095
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
|
1096
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1097
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1098
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["avatar", nil], ["created_at", Sat, 17 Sep 2011 04:50:40 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 04:50:40 UTC +00:00]]
|
1099
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1100
|
+
|
1101
|
+
|
1102
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:50:40 +0800
|
1103
|
+
Processing by AvatarsController#show as HTML
|
1104
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
1105
|
+
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
|
1106
|
+
|
1107
|
+
|
1108
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 12:50:40 +0800
|
1109
|
+
Processing by AvatarsController#update as HTML
|
1110
|
+
Parameters: {"utf8"=>"✓", "user"=>{"avatar"=>#<ActionDispatch::Http::UploadedFile:0x000001027a5a28 @original_filename="invalid.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"user[avatar]\"; filename=\"invalid.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 13\r\n", @tempfile=#<File:/var/folders/ck/9dk9w45s7fncc53nn62n3c7w0000gn/T/RackMultipart20110917-2735-1fgwhwn>>, "avatar_cache"=>""}, "commit"=>"Upload"}
|
1111
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
1112
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1113
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1114
|
+
Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 0.2ms)
|
1115
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" [0m
|
1116
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1117
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 298486374]]
|
1118
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1119
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1120
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
|
1121
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1122
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1123
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["avatar", nil], ["created_at", Sat, 17 Sep 2011 04:50:40 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 04:50:40 UTC +00:00]]
|
1124
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1125
|
+
|
1126
|
+
|
1127
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:50:40 +0800
|
1128
|
+
Processing by AvatarsController#show as HTML
|
1129
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
1130
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
|
1131
|
+
|
1132
|
+
|
1133
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 12:50:40 +0800
|
1134
|
+
Processing by AvatarsController#update as HTML
|
1135
|
+
Parameters: {"utf8"=>"✓", "user"=>{"avatar"=>#<ActionDispatch::Http::UploadedFile:0x00000100f897f0 @original_filename="panda.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"user[avatar]\"; filename=\"panda.jpg\"\r\nContent-Type: image/jpeg\r\nContent-Length: 24356\r\n", @tempfile=#<File:/var/folders/ck/9dk9w45s7fncc53nn62n3c7w0000gn/T/RackMultipart20110917-2735-18zbhae>>, "avatar_cache"=>""}, "commit"=>"Upload"}
|
1136
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
1137
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1138
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
1139
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:50:40.912538' WHERE "users"."id" = 980190963[0m
|
1140
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1141
|
+
Redirected to http://www.example.com/avatar/crop
|
1142
|
+
Completed 302 Found in 246ms
|
1143
|
+
|
1144
|
+
|
1145
|
+
Started GET "/avatar/crop" for 127.0.0.1 at 2011-09-17 12:50:40 +0800
|
1146
|
+
Processing by AvatarsController#crop as HTML
|
1147
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
1148
|
+
Completed 200 OK in 76ms (Views: 74.8ms | ActiveRecord: 0.1ms)
|
1149
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
1150
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1151
|
+
[1m[36mSQL (12.9ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 298486374]]
|
1152
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1153
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1154
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
|
1155
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1156
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1157
|
+
[1m[36mSQL (4.1ms)[0m [1mINSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["avatar", nil], ["created_at", Sat, 17 Sep 2011 04:50:54 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 04:50:54 UTC +00:00]]
|
1158
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1159
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1160
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
1161
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:50:54.579023' WHERE "users"."id" = 980190963[0m
|
1162
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1163
|
+
|
1164
|
+
|
1165
|
+
Started GET "/avatar/crop" for 127.0.0.1 at 2011-09-17 12:50:54 +0800
|
1166
|
+
Processing by AvatarsController#crop as HTML
|
1167
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
1168
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/crop.html.erb within layouts/application (84.6ms)
|
1169
|
+
Completed 200 OK in 123ms (Views: 121.4ms | ActiveRecord: 0.1ms)
|
1170
|
+
|
1171
|
+
|
1172
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 12:50:55 +0800
|
1173
|
+
Processing by AvatarsController#update as HTML
|
1174
|
+
Parameters: {"utf8"=>"✓", "user"=>{"crop_x"=>"", "crop_y"=>"", "crop_w"=>"", "crop_h"=>""}, "commit"=>"Crop"}
|
1175
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
1176
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1177
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1178
|
+
Redirected to http://www.example.com/avatar
|
1179
|
+
Completed 302 Found in 5ms
|
1180
|
+
|
1181
|
+
|
1182
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:50:55 +0800
|
1183
|
+
Processing by AvatarsController#show as HTML
|
1184
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
1185
|
+
Rendered /Users/linhe/Projects/buddies_avatar/app/views/avatars/show.html.erb within layouts/application (3.2ms)
|
1186
|
+
Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.2ms)
|
1187
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
1188
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1189
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
|
1190
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1191
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1192
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 980190962]]
|
1193
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1194
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1195
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?) [["avatar", nil], ["created_at", Sat, 17 Sep 2011 04:50:55 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 04:50:55 UTC +00:00]]
|
1196
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1197
|
+
|
1198
|
+
|
1199
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:50:55 +0800
|
1200
|
+
Processing by AvatarsController#show as HTML
|
1201
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
1202
|
+
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)
|
1203
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
1204
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1205
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 298486374]]
|
1206
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1207
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1208
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
|
1209
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1210
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1211
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["avatar", nil], ["created_at", Sat, 17 Sep 2011 04:50:55 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 04:50:55 UTC +00:00]]
|
1212
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1213
|
+
|
1214
|
+
|
1215
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:50:55 +0800
|
1216
|
+
Processing by AvatarsController#show as HTML
|
1217
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
1218
|
+
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms)
|
1219
|
+
|
1220
|
+
|
1221
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 12:50:55 +0800
|
1222
|
+
Processing by AvatarsController#update as HTML
|
1223
|
+
Parameters: {"utf8"=>"✓", "user"=>{"avatar"=>#<ActionDispatch::Http::UploadedFile:0x00000104385090 @original_filename="invalid.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"user[avatar]\"; filename=\"invalid.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 13\r\n", @tempfile=#<File:/var/folders/ck/9dk9w45s7fncc53nn62n3c7w0000gn/T/RackMultipart20110917-2767-1wmwn0k>>, "avatar_cache"=>""}, "commit"=>"Upload"}
|
1224
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
1225
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1226
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1227
|
+
Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.2ms)
|
1228
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
1229
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1230
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 298486374]]
|
1231
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1232
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1233
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
|
1234
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1235
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1236
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["avatar", nil], ["created_at", Sat, 17 Sep 2011 04:50:55 UTC +00:00], ["updated_at", Sat, 17 Sep 2011 04:50:55 UTC +00:00]]
|
1237
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1238
|
+
|
1239
|
+
|
1240
|
+
Started GET "/avatar" for 127.0.0.1 at 2011-09-17 12:50:55 +0800
|
1241
|
+
Processing by AvatarsController#show as HTML
|
1242
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
1243
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
|
1244
|
+
|
1245
|
+
|
1246
|
+
Started PUT "/avatar" for 127.0.0.1 at 2011-09-17 12:50:55 +0800
|
1247
|
+
Processing by AvatarsController#update as HTML
|
1248
|
+
Parameters: {"utf8"=>"✓", "user"=>{"avatar"=>#<ActionDispatch::Http::UploadedFile:0x000001042caa10 @original_filename="panda.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"user[avatar]\"; filename=\"panda.jpg\"\r\nContent-Type: image/jpeg\r\nContent-Length: 24356\r\n", @tempfile=#<File:/var/folders/ck/9dk9w45s7fncc53nn62n3c7w0000gn/T/RackMultipart20110917-2767-38tn2w>>, "avatar_cache"=>""}, "commit"=>"Upload"}
|
1249
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
1250
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1251
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
1252
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:50:55.511354' WHERE "users"."id" = 980190963[0m
|
1253
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1254
|
+
Redirected to http://www.example.com/avatar/crop
|
1255
|
+
Completed 302 Found in 121ms
|
1256
|
+
|
1257
|
+
|
1258
|
+
Started GET "/avatar/crop" for 127.0.0.1 at 2011-09-17 12:50:55 +0800
|
1259
|
+
Processing by AvatarsController#crop as HTML
|
1260
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
1261
|
+
Completed 200 OK in 75ms (Views: 73.8ms | ActiveRecord: 0.2ms)
|