buddies_avatar 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,7 +36,6 @@ class AvatarUploader < CarrierWave::Uploader::Base
36
36
  img = yield(img) if block_given?
37
37
  img
38
38
  end
39
- [:crop_x, :crop_y, :crop_w, :crop_h].each { |field| model.update_attribute field, nil }
40
39
  end
41
40
 
42
41
  # Override the filename of the uploaded files:
@@ -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, 'buddies_avatar/orm/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
- raise NotImplementedError
13
+ !crop_x.blank? && !crop_y.blank? && !crop_w.blank? && !crop_h.blank?
13
14
  end
14
-
15
+
15
16
  def crop_string
16
- raise NotImplementedError
17
+ "#{crop_w}x#{crop_h}+#{crop_x}+#{crop_y}"
17
18
  end
18
19
 
19
20
  def avatar_geometry
@@ -1,3 +1,3 @@
1
1
  module BuddiesAvatar
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  class User < ActiveRecord::Base
2
- include BuddiesAvatar::ORM::ActiveRecord
2
+ include BuddiesAvatar::ORM::Base
3
3
  end
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
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
48
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
49
+  (0.4ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
165
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
166
+  (0.4ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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)
@@ -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
  User Load (0.2ms) 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
+ Fixture Delete (0.4ms) DELETE FROM "users"
350
+ Fixture Insert (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2011-09-17 03:44:07', '2011-09-17 03:44:07', 980190962)
351
+ Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2011-09-17 03:44:07', '2011-09-17 03:44:07', 298486374)
352
+ User Load (0.1ms) SELECT "users".* FROM "users"
353
+  (0.0ms) SAVEPOINT active_record_1
354
+ SQL (0.4ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
355
+  (0.0ms) RELEASE SAVEPOINT active_record_1
356
+  (0.0ms) SAVEPOINT active_record_1
357
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
358
+  (0.0ms) RELEASE SAVEPOINT active_record_1
359
+  (0.0ms) SAVEPOINT active_record_1
360
+ SQL (2.9ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
362
+  (0.0ms) SAVEPOINT active_record_1
363
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
364
+  (0.1ms) UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 03:44:07.371575' WHERE "users"."id" = 980190963
365
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
379
+  (0.1ms) SAVEPOINT active_record_1
380
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" 
391
+  (0.0ms) SAVEPOINT active_record_1
392
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
393
+  (0.0ms) RELEASE SAVEPOINT active_record_1
394
+  (0.0ms) SAVEPOINT active_record_1
395
+ SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
396
+  (0.0ms) RELEASE SAVEPOINT active_record_1
397
+  (0.0ms) SAVEPOINT active_record_1
398
+ SQL (0.4ms) 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]]
399
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
405
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)
406
+ User Load (0.2ms) SELECT "users".* FROM "users"
407
+  (0.0ms) SAVEPOINT active_record_1
408
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
409
+  (0.0ms) RELEASE SAVEPOINT active_record_1
410
+  (0.0ms) SAVEPOINT active_record_1
411
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
412
+  (0.0ms) RELEASE SAVEPOINT active_record_1
413
+  (0.0ms) SAVEPOINT active_record_1
414
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
428
+  (0.1ms) SAVEPOINT active_record_1
429
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
430
+ Completed 200 OK in 9ms (Views: 3.6ms | ActiveRecord: 0.3ms)
431
+ User Load (0.2ms) SELECT "users".* FROM "users"
432
+  (0.1ms) SAVEPOINT active_record_1
433
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
434
+  (0.0ms) RELEASE SAVEPOINT active_record_1
435
+  (0.0ms) SAVEPOINT active_record_1
436
+ SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
437
+  (0.0ms) RELEASE SAVEPOINT active_record_1
438
+  (0.0ms) SAVEPOINT active_record_1
439
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
453
+  (0.0ms) SAVEPOINT active_record_1
454
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
455
+  (0.1ms) UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 03:44:08.278382' WHERE "users"."id" = 980190963
456
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
464
+ Completed 200 OK in 148ms (Views: 146.6ms | ActiveRecord: 0.1ms)
465
+ Fixture Delete (0.3ms) DELETE FROM "users"
466
+ Fixture Insert (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2011-09-17 03:45:12', '2011-09-17 03:45:12', 980190962)
467
+ Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2011-09-17 03:45:12', '2011-09-17 03:45:12', 298486374)
468
+ User Load (0.1ms) SELECT "users".* FROM "users"
469
+  (0.0ms) SAVEPOINT active_record_1
470
+ SQL (0.7ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
471
+  (0.0ms) RELEASE SAVEPOINT active_record_1
472
+  (0.0ms) SAVEPOINT active_record_1
473
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
475
+  (0.0ms) SAVEPOINT active_record_1
476
+ SQL (3.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
478
+  (0.0ms) SAVEPOINT active_record_1
479
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
480
+  (0.1ms) UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 03:45:13.084707' WHERE "users"."id" = 980190963
481
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
495
+  (0.1ms) SAVEPOINT active_record_1
496
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" 
507
+  (0.0ms) SAVEPOINT active_record_1
508
+ SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
509
+  (0.0ms) RELEASE SAVEPOINT active_record_1
510
+  (0.0ms) SAVEPOINT active_record_1
511
+ SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
513
+  (0.0ms) SAVEPOINT active_record_1
514
+ SQL (0.4ms) 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]]
515
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
521
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)
522
+ User Load (0.2ms) SELECT "users".* FROM "users"
523
+  (0.0ms) SAVEPOINT active_record_1
524
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
525
+  (0.0ms) RELEASE SAVEPOINT active_record_1
526
+  (0.0ms) SAVEPOINT active_record_1
527
+ SQL (0.6ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
529
+  (0.0ms) SAVEPOINT active_record_1
530
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
544
+  (0.0ms) SAVEPOINT active_record_1
545
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
546
+ Completed 200 OK in 6ms (Views: 2.2ms | ActiveRecord: 0.2ms)
547
+ User Load (0.2ms) SELECT "users".* FROM "users"
548
+  (0.0ms) SAVEPOINT active_record_1
549
+ SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
550
+  (0.1ms) RELEASE SAVEPOINT active_record_1
551
+  (0.1ms) SAVEPOINT active_record_1
552
+ SQL (0.7ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
553
+  (0.0ms) RELEASE SAVEPOINT active_record_1
554
+  (0.0ms) SAVEPOINT active_record_1
555
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
569
+  (0.0ms) SAVEPOINT active_record_1
570
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
571
+  (0.2ms) UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 03:45:14.010077' WHERE "users"."id" = 980190963
572
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
580
+ Completed 200 OK in 74ms (Views: 73.3ms | ActiveRecord: 0.2ms)
581
+ Fixture Delete (0.3ms) DELETE FROM "users"
582
+ Fixture Insert (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2011-09-17 03:45:56', '2011-09-17 03:45:56', 980190962)
583
+ Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2011-09-17 03:45:56', '2011-09-17 03:45:56', 298486374)
584
+ User Load (0.1ms) SELECT "users".* FROM "users"
585
+  (0.0ms) SAVEPOINT active_record_1
586
+ SQL (0.4ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
587
+  (0.1ms) RELEASE SAVEPOINT active_record_1
588
+  (0.0ms) SAVEPOINT active_record_1
589
+ SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
590
+  (0.0ms) RELEASE SAVEPOINT active_record_1
591
+  (0.0ms) SAVEPOINT active_record_1
592
+ SQL (3.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
594
+  (0.1ms) SAVEPOINT active_record_1
595
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
596
+  (0.1ms) UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 03:45:56.611660' WHERE "users"."id" = 980190963
597
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) 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
+ User Load (0.3ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
611
+  (0.1ms) SAVEPOINT active_record_1
612
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.2ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" 
623
+  (0.0ms) SAVEPOINT active_record_1
624
+ SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
625
+  (0.0ms) RELEASE SAVEPOINT active_record_1
626
+  (0.0ms) SAVEPOINT active_record_1
627
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
628
+  (0.0ms) RELEASE SAVEPOINT active_record_1
629
+  (0.0ms) SAVEPOINT active_record_1
630
+ SQL (0.5ms) 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]]
631
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
637
+ Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
638
+ User Load (0.2ms) SELECT "users".* FROM "users"
639
+  (0.0ms) SAVEPOINT active_record_1
640
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
641
+  (0.1ms) RELEASE SAVEPOINT active_record_1
642
+  (0.1ms) SAVEPOINT active_record_1
643
+ SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
644
+  (0.1ms) RELEASE SAVEPOINT active_record_1
645
+  (0.0ms) SAVEPOINT active_record_1
646
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
660
+  (0.0ms) SAVEPOINT active_record_1
661
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
662
+ Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.2ms)
663
+ User Load (0.1ms) SELECT "users".* FROM "users"
664
+  (0.0ms) SAVEPOINT active_record_1
665
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
666
+  (0.1ms) RELEASE SAVEPOINT active_record_1
667
+  (0.0ms) SAVEPOINT active_record_1
668
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
670
+  (0.0ms) SAVEPOINT active_record_1
671
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
685
+  (0.0ms) SAVEPOINT active_record_1
686
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
687
+  (0.1ms) UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 03:45:57.469857' WHERE "users"."id" = 980190963
688
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
696
+ Completed 200 OK in 76ms (Views: 74.6ms | ActiveRecord: 0.2ms)
697
+ User Load (0.2ms) SELECT "users".* FROM "users" 
698
+  (0.0ms) SAVEPOINT active_record_1
699
+ SQL (10.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
700
+  (0.1ms) RELEASE SAVEPOINT active_record_1
701
+  (0.0ms) SAVEPOINT active_record_1
702
+ SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
703
+  (0.0ms) RELEASE SAVEPOINT active_record_1
704
+  (0.0ms) SAVEPOINT active_record_1
705
+ SQL (2.6ms) INSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
707
+  (0.0ms) SAVEPOINT active_record_1
708
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
709
+  (0.1ms) UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:06:45.549873' WHERE "users"."id" = 980190963
710
+  (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
724
+  (0.1ms) SAVEPOINT active_record_1
725
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.2ms) SELECT "users".* FROM "users"
736
+  (0.0ms) SAVEPOINT active_record_1
737
+ SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
738
+  (0.0ms) RELEASE SAVEPOINT active_record_1
739
+  (0.0ms) SAVEPOINT active_record_1
740
+ SQL (0.4ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
742
+  (0.0ms) SAVEPOINT active_record_1
743
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
750
+ Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)
751
+ User Load (0.3ms) SELECT "users".* FROM "users" 
752
+  (0.1ms) SAVEPOINT active_record_1
753
+ SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
754
+  (0.1ms) RELEASE SAVEPOINT active_record_1
755
+  (0.0ms) SAVEPOINT active_record_1
756
+ SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
757
+  (0.0ms) RELEASE SAVEPOINT active_record_1
758
+  (0.0ms) SAVEPOINT active_record_1
759
+ SQL (0.4ms) 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]]
760
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
773
+  (0.0ms) SAVEPOINT active_record_1
774
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
775
+ Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.2ms)
776
+ User Load (0.1ms) SELECT "users".* FROM "users" 
777
+  (0.1ms) SAVEPOINT active_record_1
778
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
779
+  (0.0ms) RELEASE SAVEPOINT active_record_1
780
+  (0.0ms) SAVEPOINT active_record_1
781
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
782
+  (0.0ms) RELEASE SAVEPOINT active_record_1
783
+  (0.0ms) SAVEPOINT active_record_1
784
+ SQL (0.3ms) 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]]
785
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
798
+  (0.0ms) SAVEPOINT active_record_1
799
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
800
+  (0.2ms) UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:06:46.488405' WHERE "users"."id" = 980190963
801
+  (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
809
+ Completed 200 OK in 71ms (Views: 70.3ms | ActiveRecord: 0.2ms)
810
+ User Load (0.1ms) SELECT "users".* FROM "users" 
811
+  (0.0ms) SAVEPOINT active_record_1
812
+ SQL (10.9ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
813
+  (0.1ms) RELEASE SAVEPOINT active_record_1
814
+  (0.0ms) SAVEPOINT active_record_1
815
+ SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
816
+  (0.0ms) RELEASE SAVEPOINT active_record_1
817
+  (0.0ms) SAVEPOINT active_record_1
818
+ SQL (2.6ms) INSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
820
+  (0.0ms) SAVEPOINT active_record_1
821
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
822
+  (0.1ms) UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:46:56.632247' WHERE "users"."id" = 980190963
823
+  (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
837
+  (0.0ms) SAVEPOINT active_record_1
838
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.2ms) SELECT "users".* FROM "users"
849
+  (0.0ms) SAVEPOINT active_record_1
850
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
851
+  (0.0ms) RELEASE SAVEPOINT active_record_1
852
+  (0.0ms) SAVEPOINT active_record_1
853
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
855
+  (0.0ms) SAVEPOINT active_record_1
856
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
863
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
864
+ User Load (0.2ms) SELECT "users".* FROM "users" 
865
+  (0.0ms) SAVEPOINT active_record_1
866
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
867
+  (0.0ms) RELEASE SAVEPOINT active_record_1
868
+  (0.0ms) SAVEPOINT active_record_1
869
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
870
+  (0.0ms) RELEASE SAVEPOINT active_record_1
871
+  (0.0ms) SAVEPOINT active_record_1
872
+ SQL (0.3ms) 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]]
873
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
886
+  (0.0ms) SAVEPOINT active_record_1
887
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
888
+ Completed 200 OK in 9ms (Views: 3.6ms | ActiveRecord: 0.3ms)
889
+ User Load (0.2ms) SELECT "users".* FROM "users" 
890
+  (0.0ms) SAVEPOINT active_record_1
891
+ SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
892
+  (0.1ms) RELEASE SAVEPOINT active_record_1
893
+  (0.1ms) SAVEPOINT active_record_1
894
+ SQL (0.4ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
895
+  (0.0ms) RELEASE SAVEPOINT active_record_1
896
+  (0.0ms) SAVEPOINT active_record_1
897
+ SQL (0.6ms) 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]]
898
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
911
+  (0.0ms) SAVEPOINT active_record_1
912
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
913
+  (0.1ms) UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:46:57.527928' WHERE "users"."id" = 980190963
914
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
922
+ Completed 200 OK in 74ms (Views: 73.1ms | ActiveRecord: 0.1ms)
923
+ User Load (0.2ms) SELECT "users".* FROM "users" 
924
+  (0.0ms) SAVEPOINT active_record_1
925
+ SQL (10.6ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
926
+  (0.1ms) RELEASE SAVEPOINT active_record_1
927
+  (0.0ms) SAVEPOINT active_record_1
928
+ SQL (0.4ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
929
+  (0.0ms) RELEASE SAVEPOINT active_record_1
930
+  (0.0ms) SAVEPOINT active_record_1
931
+ SQL (3.4ms) INSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
933
+  (0.0ms) SAVEPOINT active_record_1
934
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
935
+  (0.1ms) UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:48:52.424311' WHERE "users"."id" = 980190963
936
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
950
+  (0.0ms) SAVEPOINT active_record_1
951
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.2ms) SELECT "users".* FROM "users"
962
+  (0.0ms) SAVEPOINT active_record_1
963
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
964
+  (0.0ms) RELEASE SAVEPOINT active_record_1
965
+  (0.0ms) SAVEPOINT active_record_1
966
+ SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
967
+  (0.0ms) RELEASE SAVEPOINT active_record_1
968
+  (0.0ms) SAVEPOINT active_record_1
969
+ SQL (0.5ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
976
+ Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
977
+ User Load (0.2ms) SELECT "users".* FROM "users" 
978
+  (0.1ms) SAVEPOINT active_record_1
979
+ SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
980
+  (0.1ms) RELEASE SAVEPOINT active_record_1
981
+  (0.1ms) SAVEPOINT active_record_1
982
+ SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
983
+  (0.1ms) RELEASE SAVEPOINT active_record_1
984
+  (0.1ms) SAVEPOINT active_record_1
985
+ SQL (0.4ms) 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]]
986
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
999
+  (0.0ms) SAVEPOINT active_record_1
1000
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1001
+ Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.2ms)
1002
+ User Load (0.2ms) SELECT "users".* FROM "users" 
1003
+  (0.1ms) SAVEPOINT active_record_1
1004
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
1005
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1006
+  (0.0ms) SAVEPOINT active_record_1
1007
+ SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
1008
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1009
+  (0.0ms) SAVEPOINT active_record_1
1010
+ SQL (0.3ms) 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]]
1011
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
1024
+  (0.1ms) SAVEPOINT active_record_1
1025
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
1026
+  (0.2ms) UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:48:53.389519' WHERE "users"."id" = 980190963
1027
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
1035
+ Completed 200 OK in 79ms (Views: 77.7ms | ActiveRecord: 0.1ms)
1036
+ User Load (0.2ms) SELECT "users".* FROM "users" 
1037
+  (0.0ms) SAVEPOINT active_record_1
1038
+ SQL (10.9ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
1039
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1040
+  (0.0ms) SAVEPOINT active_record_1
1041
+ SQL (0.5ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
1042
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1043
+  (0.0ms) SAVEPOINT active_record_1
1044
+ SQL (2.9ms) INSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1046
+  (0.0ms) SAVEPOINT active_record_1
1047
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
1048
+  (0.2ms) UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:50:39.938596' WHERE "users"."id" = 980190963
1049
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
1063
+  (0.0ms) SAVEPOINT active_record_1
1064
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.2ms) SELECT "users".* FROM "users"
1075
+  (0.0ms) SAVEPOINT active_record_1
1076
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
1077
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1078
+  (0.0ms) SAVEPOINT active_record_1
1079
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
1080
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1081
+  (0.0ms) SAVEPOINT active_record_1
1082
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
1089
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
1090
+ User Load (0.2ms) SELECT "users".* FROM "users" 
1091
+  (0.0ms) SAVEPOINT active_record_1
1092
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
1093
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1094
+  (0.0ms) SAVEPOINT active_record_1
1095
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
1096
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1097
+  (0.0ms) SAVEPOINT active_record_1
1098
+ SQL (0.3ms) 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]]
1099
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
1112
+  (0.0ms) SAVEPOINT active_record_1
1113
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1114
+ Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 0.2ms)
1115
+ User Load (0.1ms) SELECT "users".* FROM "users" 
1116
+  (0.0ms) SAVEPOINT active_record_1
1117
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
1118
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1119
+  (0.0ms) SAVEPOINT active_record_1
1120
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
1121
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1122
+  (0.0ms) SAVEPOINT active_record_1
1123
+ SQL (0.3ms) 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]]
1124
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
1137
+  (0.0ms) SAVEPOINT active_record_1
1138
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
1139
+  (0.2ms) UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:50:40.912538' WHERE "users"."id" = 980190963
1140
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
1148
+ Completed 200 OK in 76ms (Views: 74.8ms | ActiveRecord: 0.1ms)
1149
+ User Load (0.2ms) SELECT "users".* FROM "users" 
1150
+  (0.0ms) SAVEPOINT active_record_1
1151
+ SQL (12.9ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
1152
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1153
+  (0.0ms) SAVEPOINT active_record_1
1154
+ SQL (0.4ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
1155
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1156
+  (0.0ms) SAVEPOINT active_record_1
1157
+ SQL (4.1ms) INSERT INTO "users" ("avatar", "created_at", "updated_at") VALUES (?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1159
+  (0.0ms) SAVEPOINT active_record_1
1160
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
1161
+  (0.1ms) UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:50:54.579023' WHERE "users"."id" = 980190963
1162
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
1176
+  (0.0ms) SAVEPOINT active_record_1
1177
+  (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.1ms) SELECT "users".* FROM "users"
1188
+  (0.0ms) SAVEPOINT active_record_1
1189
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
1190
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1191
+  (0.0ms) SAVEPOINT active_record_1
1192
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
1193
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1194
+  (0.0ms) SAVEPOINT active_record_1
1195
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
1202
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)
1203
+ User Load (0.2ms) SELECT "users".* FROM "users" 
1204
+  (0.0ms) SAVEPOINT active_record_1
1205
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
1206
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1207
+  (0.0ms) SAVEPOINT active_record_1
1208
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
1209
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1210
+  (0.0ms) SAVEPOINT active_record_1
1211
+ SQL (0.3ms) 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]]
1212
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
1225
+  (0.0ms) SAVEPOINT active_record_1
1226
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1227
+ Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.2ms)
1228
+ User Load (0.2ms) SELECT "users".* FROM "users" 
1229
+  (0.0ms) SAVEPOINT active_record_1
1230
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 298486374]]
1231
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1232
+  (0.0ms) SAVEPOINT active_record_1
1233
+ SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 980190962]]
1234
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1235
+  (0.0ms) SAVEPOINT active_record_1
1236
+ SQL (0.3ms) 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]]
1237
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
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
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
1250
+  (0.0ms) SAVEPOINT active_record_1
1251
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
1252
+  (0.2ms) UPDATE "users" SET "avatar" = 'panda.jpg', "updated_at" = '2011-09-17 04:50:55.511354' WHERE "users"."id" = 980190963
1253
+  (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
1261
+ Completed 200 OK in 75ms (Views: 73.8ms | ActiveRecord: 0.2ms)