favorite_it 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +47 -0
  3. data/Rakefile +40 -0
  4. data/app/controllers/favorites_controller.rb +19 -0
  5. data/app/models/favorite.rb +6 -0
  6. data/config/routes.rb +4 -0
  7. data/db/migrate/20121206184554_create_favorites.rb +12 -0
  8. data/lib/favorite_it.rb +10 -0
  9. data/lib/favorite_it/engine.rb +7 -0
  10. data/lib/favorite_it/version.rb +3 -0
  11. data/lib/generators/favorite_it/install/USAGE +12 -0
  12. data/lib/generators/favorite_it/install/install_generator.rb +15 -0
  13. data/lib/generators/favorite_it/install/templates/config/initializers/favorite_it.rb +2 -0
  14. data/lib/tasks/favorite_it_tasks.rake +4 -0
  15. data/spec/controllers/favorites_controller_spec.rb +95 -0
  16. data/spec/dummy/README.rdoc +261 -0
  17. data/spec/dummy/Rakefile +7 -0
  18. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  19. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  20. data/spec/dummy/app/controllers/application_controller.rb +9 -0
  21. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  22. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  23. data/spec/dummy/config.ru +4 -0
  24. data/spec/dummy/config/application.rb +59 -0
  25. data/spec/dummy/config/boot.rb +10 -0
  26. data/spec/dummy/config/database.yml +25 -0
  27. data/spec/dummy/config/environment.rb +5 -0
  28. data/spec/dummy/config/environments/development.rb +37 -0
  29. data/spec/dummy/config/environments/production.rb +67 -0
  30. data/spec/dummy/config/environments/test.rb +37 -0
  31. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  32. data/spec/dummy/config/initializers/inflections.rb +15 -0
  33. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  34. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  35. data/spec/dummy/config/initializers/session_store.rb +8 -0
  36. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  37. data/spec/dummy/config/locales/en.yml +5 -0
  38. data/spec/dummy/config/routes.rb +58 -0
  39. data/spec/dummy/db/development.sqlite3 +0 -0
  40. data/spec/dummy/db/schema.rb +27 -0
  41. data/spec/dummy/db/test.sqlite3 +0 -0
  42. data/spec/dummy/log/development.log +26 -0
  43. data/spec/dummy/log/test.log +3945 -0
  44. data/spec/dummy/public/404.html +26 -0
  45. data/spec/dummy/public/422.html +26 -0
  46. data/spec/dummy/public/500.html +25 -0
  47. data/spec/dummy/public/favicon.ico +0 -0
  48. data/spec/dummy/script/rails +6 -0
  49. data/spec/factories.rb +9 -0
  50. data/spec/models/favorite_spec.rb +22 -0
  51. data/spec/routing/favorites_routing_spec.rb +14 -0
  52. data/spec/spec_helper.rb +41 -0
  53. data/spec/support/user.rb +6 -0
  54. metadata +239 -0
@@ -0,0 +1,27 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20121206184554) do
15
+
16
+ create_table "favorites", :force => true do |t|
17
+ t.integer "user_id"
18
+ t.integer "favoriteable_id"
19
+ t.string "favoriteable_type"
20
+ t.datetime "created_at", :null => false
21
+ t.datetime "updated_at", :null => false
22
+ end
23
+
24
+ add_index "favorites", ["favoriteable_type", "favoriteable_id"], :name => "index_favorites_on_favoriteable_type_and_favoriteable_id"
25
+ add_index "favorites", ["user_id"], :name => "index_favorites_on_user_id"
26
+
27
+ end
@@ -0,0 +1,26 @@
1
+ Connecting to database specified by database.yml
2
+  (0.1ms) select sqlite_version(*)
3
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
4
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+  (2.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
6
+ Migrating to CreateFavorites (20121206184554)
7
+  (0.0ms) begin transaction
8
+  (0.4ms) CREATE TABLE "favorites" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "favoriteable_id" integer, "favoriteable_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
9
+  (0.1ms) CREATE INDEX "index_favorites_on_user_id" ON "favorites" ("user_id")
10
+  (0.1ms) CREATE INDEX "index_favorites_on_favoriteable_type_and_favoriteable_id" ON "favorites" ("favoriteable_type", "favoriteable_id")
11
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121206184554')
12
+  (1.0ms) commit transaction
13
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
14
+ Connecting to database specified by database.yml
15
+  (1.4ms) select sqlite_version(*)
16
+  (3.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
17
+  (0.2ms) select sqlite_version(*)
18
+  (1.0ms) CREATE TABLE "favorites" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "favoriteable_id" integer, "favoriteable_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
19
+  (0.9ms) CREATE INDEX "index_favorites_on_favoriteable_type_and_favoriteable_id" ON "favorites" ("favoriteable_type", "favoriteable_id")
20
+  (0.9ms) CREATE INDEX "index_favorites_on_user_id" ON "favorites" ("user_id")
21
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
22
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
23
+  (0.1ms) SELECT version FROM "schema_migrations"
24
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20121206184554')
25
+ Connecting to database specified by database.yml
26
+ Connecting to database specified by database.yml
@@ -0,0 +1,3945 @@
1
+ Connecting to database specified by database.yml
2
+ Connecting to database specified by database.yml
3
+  (0.2ms) begin transaction
4
+  (0.0ms) rollback transaction
5
+ Connecting to database specified by database.yml
6
+  (0.5ms) begin transaction
7
+  (0.1ms) rollback transaction
8
+ Connecting to database specified by database.yml
9
+  (0.3ms) begin transaction
10
+  (0.1ms) rollback transaction
11
+  (0.0ms) begin transaction
12
+  (0.0ms) rollback transaction
13
+  (0.0ms) begin transaction
14
+  (0.0ms) rollback transaction
15
+  (0.0ms) begin transaction
16
+  (0.0ms) rollback transaction
17
+  (0.0ms) begin transaction
18
+  (0.0ms) rollback transaction
19
+  (0.0ms) begin transaction
20
+  (0.0ms) rollback transaction
21
+  (0.0ms) begin transaction
22
+  (0.1ms) rollback transaction
23
+  (0.0ms) begin transaction
24
+  (0.0ms) rollback transaction
25
+  (0.0ms) begin transaction
26
+  (0.0ms) rollback transaction
27
+ Connecting to database specified by database.yml
28
+  (0.7ms) begin transaction
29
+  (0.1ms) rollback transaction
30
+  (0.1ms) begin transaction
31
+  (0.0ms) rollback transaction
32
+  (0.1ms) begin transaction
33
+  (0.0ms) rollback transaction
34
+  (0.1ms) begin transaction
35
+  (0.0ms) rollback transaction
36
+  (0.1ms) begin transaction
37
+  (0.0ms) rollback transaction
38
+  (0.1ms) begin transaction
39
+  (0.0ms) rollback transaction
40
+  (0.1ms) begin transaction
41
+  (0.1ms) rollback transaction
42
+  (0.1ms) begin transaction
43
+  (0.0ms) rollback transaction
44
+  (0.0ms) begin transaction
45
+  (0.0ms) SAVEPOINT active_record_1
46
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
47
+  (0.0ms) rollback transaction
48
+ Connecting to database specified by database.yml
49
+  (0.4ms) begin transaction
50
+  (0.1ms) rollback transaction
51
+  (0.0ms) begin transaction
52
+  (0.0ms) rollback transaction
53
+  (0.0ms) begin transaction
54
+  (0.0ms) rollback transaction
55
+  (0.0ms) begin transaction
56
+  (0.0ms) rollback transaction
57
+  (0.0ms) begin transaction
58
+  (0.0ms) rollback transaction
59
+  (0.0ms) begin transaction
60
+  (0.0ms) rollback transaction
61
+  (0.0ms) begin transaction
62
+  (0.0ms) rollback transaction
63
+  (0.0ms) begin transaction
64
+  (0.1ms) rollback transaction
65
+  (0.0ms) begin transaction
66
+  (0.0ms) SAVEPOINT active_record_1
67
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
68
+  (0.0ms) rollback transaction
69
+ Connecting to database specified by database.yml
70
+  (0.4ms) begin transaction
71
+  (0.1ms) rollback transaction
72
+  (0.1ms) begin transaction
73
+  (0.0ms) rollback transaction
74
+  (0.0ms) begin transaction
75
+  (0.0ms) rollback transaction
76
+  (0.0ms) begin transaction
77
+  (0.0ms) rollback transaction
78
+  (0.1ms) begin transaction
79
+  (0.0ms) rollback transaction
80
+  (0.0ms) begin transaction
81
+  (0.0ms) rollback transaction
82
+  (0.0ms) begin transaction
83
+ Favorite Exists (1.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
84
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
85
+  (0.0ms) rollback transaction
86
+  (0.0ms) begin transaction
87
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
88
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
89
+  (0.0ms) rollback transaction
90
+  (0.0ms) begin transaction
91
+  (0.0ms) SAVEPOINT active_record_1
92
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
93
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
94
+  (0.0ms) rollback transaction
95
+ Connecting to database specified by database.yml
96
+  (1.3ms) select sqlite_version(*)
97
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followers_count" integer DEFAULT 0, "name" varchar(255))
98
+  (0.1ms) begin transaction
99
+  (0.1ms) rollback transaction
100
+  (0.0ms) begin transaction
101
+  (0.0ms) rollback transaction
102
+  (0.0ms) begin transaction
103
+  (0.0ms) rollback transaction
104
+  (0.0ms) begin transaction
105
+  (0.0ms) rollback transaction
106
+  (0.0ms) begin transaction
107
+  (0.0ms) rollback transaction
108
+  (0.0ms) begin transaction
109
+  (0.0ms) rollback transaction
110
+  (0.0ms) begin transaction
111
+ Favorite Exists (2.9ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
112
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
113
+  (0.1ms) rollback transaction
114
+  (0.1ms) begin transaction
115
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
116
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
117
+  (0.0ms) rollback transaction
118
+  (0.0ms) begin transaction
119
+  (0.0ms) rollback transaction
120
+ Connecting to database specified by database.yml
121
+  (0.9ms) select sqlite_version(*)
122
+  (0.7ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followers_count" integer DEFAULT 0, "name" varchar(255))
123
+  (0.1ms) begin transaction
124
+  (0.1ms) rollback transaction
125
+  (0.0ms) begin transaction
126
+  (0.0ms) rollback transaction
127
+  (0.0ms) begin transaction
128
+  (0.0ms) rollback transaction
129
+  (0.0ms) begin transaction
130
+  (0.0ms) rollback transaction
131
+  (0.0ms) begin transaction
132
+  (0.0ms) rollback transaction
133
+  (0.0ms) begin transaction
134
+  (0.0ms) rollback transaction
135
+  (0.0ms) begin transaction
136
+ Favorite Exists (1.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
137
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
138
+  (0.0ms) rollback transaction
139
+  (0.0ms) begin transaction
140
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
141
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
142
+  (0.0ms) rollback transaction
143
+  (0.0ms) begin transaction
144
+  (0.0ms) SAVEPOINT active_record_1
145
+ SQL (0.2ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
147
+  (0.1ms) SAVEPOINT active_record_1
148
+ SQL (0.3ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
149
+  (0.1ms) RELEASE SAVEPOINT active_record_1
150
+  (0.0ms) SAVEPOINT active_record_1
151
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
152
+ SQL (3.1ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 06 Dec 2012 22:14:05 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Thu, 06 Dec 2012 22:14:05 UTC +00:00], ["user_id", 1]]
153
+  (0.1ms) RELEASE SAVEPOINT active_record_1
154
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" LIMIT 1
155
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
156
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
157
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
158
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
159
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
160
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 2 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
161
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
162
+  (0.9ms) rollback transaction
163
+ Connecting to database specified by database.yml
164
+  (1.3ms) select sqlite_version(*)
165
+  (0.9ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followers_count" integer DEFAULT 0, "name" varchar(255))
166
+  (0.1ms) begin transaction
167
+  (0.1ms) rollback transaction
168
+  (0.1ms) begin transaction
169
+  (0.0ms) rollback transaction
170
+  (0.1ms) begin transaction
171
+  (0.0ms) rollback transaction
172
+  (0.1ms) begin transaction
173
+  (0.0ms) rollback transaction
174
+  (0.1ms) begin transaction
175
+  (0.0ms) rollback transaction
176
+  (0.1ms) begin transaction
177
+  (0.0ms) rollback transaction
178
+  (0.1ms) begin transaction
179
+ Favorite Exists (1.7ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
180
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
181
+  (0.1ms) rollback transaction
182
+  (0.1ms) begin transaction
183
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
184
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
185
+  (0.1ms) rollback transaction
186
+  (0.0ms) begin transaction
187
+  (0.1ms) SAVEPOINT active_record_1
188
+ SQL (0.3ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
189
+  (0.1ms) RELEASE SAVEPOINT active_record_1
190
+  (0.1ms) SAVEPOINT active_record_1
191
+ SQL (0.3ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
192
+  (0.1ms) RELEASE SAVEPOINT active_record_1
193
+  (0.1ms) SAVEPOINT active_record_1
194
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
195
+ SQL (1.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 06 Dec 2012 22:15:14 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Thu, 06 Dec 2012 22:15:14 UTC +00:00], ["user_id", 1]]
196
+  (0.1ms) RELEASE SAVEPOINT active_record_1
197
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" LIMIT 1
198
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
199
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
200
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
201
+  (2.4ms) rollback transaction
202
+ Connecting to database specified by database.yml
203
+  (0.9ms) select sqlite_version(*)
204
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followers_count" integer DEFAULT 0, "name" varchar(255))
205
+  (0.1ms) begin transaction
206
+  (0.1ms) rollback transaction
207
+  (0.1ms) begin transaction
208
+  (0.0ms) rollback transaction
209
+  (0.1ms) begin transaction
210
+  (0.0ms) rollback transaction
211
+  (0.0ms) begin transaction
212
+  (0.0ms) rollback transaction
213
+  (0.0ms) begin transaction
214
+  (0.0ms) rollback transaction
215
+  (0.1ms) begin transaction
216
+  (0.0ms) rollback transaction
217
+  (0.0ms) begin transaction
218
+ Favorite Exists (1.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
219
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
220
+  (0.1ms) rollback transaction
221
+  (0.0ms) begin transaction
222
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
223
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
224
+  (0.0ms) rollback transaction
225
+  (0.0ms) begin transaction
226
+  (0.0ms) SAVEPOINT active_record_1
227
+ SQL (0.2ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
228
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229
+  (0.0ms) SAVEPOINT active_record_1
230
+ SQL (0.2ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
232
+  (0.0ms) SAVEPOINT active_record_1
233
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
234
+ SQL (1.1ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 06 Dec 2012 22:16:05 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Thu, 06 Dec 2012 22:16:05 UTC +00:00], ["user_id", 1]]
235
+  (0.0ms) RELEASE SAVEPOINT active_record_1
236
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" LIMIT 1
237
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
238
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
239
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
240
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
241
+  (0.3ms) rollback transaction
242
+ Connecting to database specified by database.yml
243
+  (1.3ms) select sqlite_version(*)
244
+  (0.9ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followers_count" integer DEFAULT 0, "name" varchar(255))
245
+  (0.1ms) begin transaction
246
+  (0.1ms) rollback transaction
247
+  (0.1ms) begin transaction
248
+  (0.0ms) rollback transaction
249
+  (0.0ms) begin transaction
250
+  (0.0ms) rollback transaction
251
+  (0.0ms) begin transaction
252
+  (0.0ms) rollback transaction
253
+  (0.1ms) begin transaction
254
+  (0.0ms) rollback transaction
255
+  (0.1ms) begin transaction
256
+  (0.0ms) rollback transaction
257
+  (0.0ms) begin transaction
258
+ Favorite Exists (1.3ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
259
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
260
+  (0.1ms) rollback transaction
261
+  (0.1ms) begin transaction
262
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
263
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
264
+  (0.1ms) rollback transaction
265
+  (0.1ms) begin transaction
266
+  (0.1ms) SAVEPOINT active_record_1
267
+ SQL (0.3ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
268
+  (0.1ms) RELEASE SAVEPOINT active_record_1
269
+  (0.1ms) SAVEPOINT active_record_1
270
+ SQL (0.3ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
272
+  (0.0ms) SAVEPOINT active_record_1
273
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
274
+ SQL (1.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 06 Dec 2012 22:16:22 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Thu, 06 Dec 2012 22:16:22 UTC +00:00], ["user_id", 1]]
275
+  (0.1ms) RELEASE SAVEPOINT active_record_1
276
+ Favorite Load (0.2ms) SELECT "favorites".* FROM "favorites" LIMIT 1
277
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
278
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
279
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
280
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
281
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
282
+  (0.4ms) rollback transaction
283
+ Connecting to database specified by database.yml
284
+  (1.0ms) select sqlite_version(*)
285
+  (0.7ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followers_count" integer DEFAULT 0, "name" varchar(255))
286
+  (0.1ms) begin transaction
287
+  (0.1ms) rollback transaction
288
+  (0.1ms) begin transaction
289
+  (0.0ms) rollback transaction
290
+  (0.1ms) begin transaction
291
+  (0.0ms) rollback transaction
292
+  (0.1ms) begin transaction
293
+  (0.0ms) rollback transaction
294
+  (0.1ms) begin transaction
295
+  (0.0ms) rollback transaction
296
+  (0.1ms) begin transaction
297
+  (0.0ms) rollback transaction
298
+  (0.1ms) begin transaction
299
+ Favorite Exists (1.8ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
300
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
301
+  (0.1ms) rollback transaction
302
+  (0.1ms) begin transaction
303
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
304
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
305
+  (0.1ms) rollback transaction
306
+  (0.1ms) begin transaction
307
+  (0.1ms) SAVEPOINT active_record_1
308
+ SQL (0.4ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
309
+  (0.1ms) RELEASE SAVEPOINT active_record_1
310
+  (0.1ms) SAVEPOINT active_record_1
311
+ SQL (0.4ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
313
+  (0.0ms) SAVEPOINT active_record_1
314
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
315
+ SQL (1.5ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 06 Dec 2012 22:17:03 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Thu, 06 Dec 2012 22:17:03 UTC +00:00], ["user_id", 1]]
316
+  (0.1ms) RELEASE SAVEPOINT active_record_1
317
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" LIMIT 1
318
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
319
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
320
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
321
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
322
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
323
+  (0.4ms) rollback transaction
324
+ Connecting to database specified by database.yml
325
+  (0.8ms) select sqlite_version(*)
326
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followers_count" integer DEFAULT 0, "name" varchar(255))
327
+  (0.1ms) begin transaction
328
+  (0.1ms) rollback transaction
329
+  (0.0ms) begin transaction
330
+  (0.0ms) rollback transaction
331
+  (0.0ms) begin transaction
332
+  (0.0ms) rollback transaction
333
+  (0.0ms) begin transaction
334
+  (0.0ms) rollback transaction
335
+  (0.0ms) begin transaction
336
+  (0.0ms) rollback transaction
337
+  (0.1ms) begin transaction
338
+  (0.0ms) rollback transaction
339
+  (0.0ms) begin transaction
340
+ Favorite Exists (1.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
341
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
342
+  (0.0ms) rollback transaction
343
+  (0.0ms) begin transaction
344
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
345
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
346
+  (0.0ms) rollback transaction
347
+  (0.0ms) begin transaction
348
+  (0.0ms) SAVEPOINT active_record_1
349
+ SQL (0.2ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
350
+  (0.0ms) RELEASE SAVEPOINT active_record_1
351
+  (0.0ms) SAVEPOINT active_record_1
352
+ SQL (0.3ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
353
+  (0.0ms) RELEASE SAVEPOINT active_record_1
354
+  (0.0ms) SAVEPOINT active_record_1
355
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
356
+ SQL (1.0ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 06 Dec 2012 22:17:19 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Thu, 06 Dec 2012 22:17:19 UTC +00:00], ["user_id", 1]]
357
+  (0.0ms) RELEASE SAVEPOINT active_record_1
358
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" LIMIT 1
359
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
360
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
361
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
362
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
363
+  (2.7ms) rollback transaction
364
+ Connecting to database specified by database.yml
365
+  (0.9ms) select sqlite_version(*)
366
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followers_count" integer DEFAULT 0, "name" varchar(255))
367
+  (0.1ms) begin transaction
368
+  (0.1ms) rollback transaction
369
+  (0.0ms) begin transaction
370
+  (0.0ms) rollback transaction
371
+  (0.1ms) begin transaction
372
+  (0.0ms) rollback transaction
373
+  (0.1ms) begin transaction
374
+  (0.0ms) rollback transaction
375
+  (0.1ms) begin transaction
376
+  (0.0ms) rollback transaction
377
+  (0.0ms) begin transaction
378
+  (0.0ms) rollback transaction
379
+  (0.0ms) begin transaction
380
+ Favorite Exists (1.3ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
381
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
382
+  (0.0ms) rollback transaction
383
+  (0.1ms) begin transaction
384
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
385
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
386
+  (0.1ms) rollback transaction
387
+  (0.0ms) begin transaction
388
+  (0.0ms) SAVEPOINT active_record_1
389
+ SQL (0.2ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
390
+  (0.0ms) RELEASE SAVEPOINT active_record_1
391
+  (0.1ms) SAVEPOINT active_record_1
392
+ SQL (0.3ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
393
+  (0.0ms) RELEASE SAVEPOINT active_record_1
394
+  (0.0ms) SAVEPOINT active_record_1
395
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
396
+ SQL (1.1ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 06 Dec 2012 22:18:01 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Thu, 06 Dec 2012 22:18:01 UTC +00:00], ["user_id", 1]]
397
+  (0.0ms) RELEASE SAVEPOINT active_record_1
398
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" LIMIT 1
399
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
400
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
401
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
402
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
403
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
404
+  (0.6ms) rollback transaction
405
+ Connecting to database specified by database.yml
406
+  (0.8ms) select sqlite_version(*)
407
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followers_count" integer DEFAULT 0, "name" varchar(255))
408
+  (0.1ms) begin transaction
409
+  (0.1ms) rollback transaction
410
+  (0.1ms) begin transaction
411
+  (0.0ms) rollback transaction
412
+  (0.1ms) begin transaction
413
+  (0.0ms) rollback transaction
414
+  (0.1ms) begin transaction
415
+  (0.0ms) rollback transaction
416
+  (0.1ms) begin transaction
417
+  (0.0ms) rollback transaction
418
+  (0.0ms) begin transaction
419
+  (0.0ms) rollback transaction
420
+  (0.0ms) begin transaction
421
+ Favorite Exists (1.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable" IS NULL AND "favorites"."user" IS NULL) LIMIT 1
422
+ SQLite3::SQLException: no such column: favorites.favoriteable: SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable" IS NULL AND "favorites"."user" IS NULL) LIMIT 1
423
+  (0.0ms) rollback transaction
424
+  (0.0ms) begin transaction
425
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable" IS NULL AND "favorites"."user" IS NULL) LIMIT 1
426
+ SQLite3::SQLException: no such column: favorites.favoriteable: SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable" IS NULL AND "favorites"."user" IS NULL) LIMIT 1
427
+  (0.0ms) rollback transaction
428
+  (0.0ms) begin transaction
429
+  (0.0ms) SAVEPOINT active_record_1
430
+ SQL (0.2ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
431
+  (0.0ms) RELEASE SAVEPOINT active_record_1
432
+  (0.0ms) SAVEPOINT active_record_1
433
+ SQL (0.3ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
434
+  (0.0ms) RELEASE SAVEPOINT active_record_1
435
+  (0.0ms) SAVEPOINT active_record_1
436
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
437
+  (0.1ms) rollback transaction
438
+ Connecting to database specified by database.yml
439
+  (0.9ms) select sqlite_version(*)
440
+  (0.7ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followers_count" integer DEFAULT 0, "name" varchar(255))
441
+  (0.1ms) begin transaction
442
+  (0.1ms) rollback transaction
443
+  (0.1ms) begin transaction
444
+  (0.0ms) rollback transaction
445
+  (0.0ms) begin transaction
446
+  (0.0ms) rollback transaction
447
+  (0.1ms) begin transaction
448
+  (0.0ms) rollback transaction
449
+  (0.1ms) begin transaction
450
+  (0.0ms) rollback transaction
451
+  (0.1ms) begin transaction
452
+  (0.0ms) rollback transaction
453
+  (0.0ms) begin transaction
454
+ Favorite Exists (1.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
455
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
456
+  (0.0ms) rollback transaction
457
+  (0.0ms) begin transaction
458
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
459
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
460
+  (0.0ms) rollback transaction
461
+  (0.0ms) begin transaction
462
+  (0.0ms) SAVEPOINT active_record_1
463
+ SQL (0.2ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
464
+  (0.0ms) RELEASE SAVEPOINT active_record_1
465
+  (0.0ms) SAVEPOINT active_record_1
466
+ SQL (0.3ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
467
+  (0.0ms) RELEASE SAVEPOINT active_record_1
468
+  (0.0ms) SAVEPOINT active_record_1
469
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
470
+ SQL (1.1ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 06 Dec 2012 22:19:52 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Thu, 06 Dec 2012 22:19:52 UTC +00:00], ["user_id", 1]]
471
+  (0.0ms) RELEASE SAVEPOINT active_record_1
472
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" LIMIT 1
473
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
474
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
475
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
476
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
477
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
478
+  (2.6ms) rollback transaction
479
+ Connecting to database specified by database.yml
480
+  (0.9ms) select sqlite_version(*)
481
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followers_count" integer DEFAULT 0, "name" varchar(255))
482
+  (0.1ms) begin transaction
483
+  (0.1ms) rollback transaction
484
+  (0.1ms) begin transaction
485
+  (0.0ms) rollback transaction
486
+  (0.1ms) begin transaction
487
+  (0.0ms) rollback transaction
488
+  (0.0ms) begin transaction
489
+  (0.0ms) rollback transaction
490
+  (0.0ms) begin transaction
491
+  (0.0ms) rollback transaction
492
+  (0.1ms) begin transaction
493
+  (0.0ms) rollback transaction
494
+  (0.0ms) begin transaction
495
+ Favorite Exists (1.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
496
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
497
+  (0.0ms) rollback transaction
498
+  (0.1ms) begin transaction
499
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
500
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
501
+  (0.0ms) rollback transaction
502
+  (0.0ms) begin transaction
503
+  (0.1ms) SAVEPOINT active_record_1
504
+ SQL (0.3ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
505
+  (0.1ms) RELEASE SAVEPOINT active_record_1
506
+  (0.1ms) SAVEPOINT active_record_1
507
+ SQL (0.3ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
508
+  (0.1ms) RELEASE SAVEPOINT active_record_1
509
+  (0.0ms) SAVEPOINT active_record_1
510
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
511
+ SQL (1.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 06 Dec 2012 22:20:22 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Thu, 06 Dec 2012 22:20:22 UTC +00:00], ["user_id", 1]]
512
+  (0.1ms) RELEASE SAVEPOINT active_record_1
513
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" LIMIT 1
514
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
515
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
516
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
517
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
518
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
519
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 2 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
520
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
521
+  (0.6ms) rollback transaction
522
+ Connecting to database specified by database.yml
523
+  (0.9ms) select sqlite_version(*)
524
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followers_count" integer DEFAULT 0, "name" varchar(255))
525
+  (0.1ms) begin transaction
526
+  (0.1ms) rollback transaction
527
+  (0.1ms) begin transaction
528
+  (0.0ms) rollback transaction
529
+  (0.1ms) begin transaction
530
+  (0.0ms) rollback transaction
531
+  (0.0ms) begin transaction
532
+  (0.0ms) rollback transaction
533
+  (0.0ms) begin transaction
534
+  (0.0ms) rollback transaction
535
+  (0.1ms) begin transaction
536
+  (0.0ms) rollback transaction
537
+  (0.0ms) begin transaction
538
+ Favorite Exists (1.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
539
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
540
+  (0.1ms) rollback transaction
541
+  (0.0ms) begin transaction
542
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
543
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
544
+  (0.0ms) rollback transaction
545
+  (0.0ms) begin transaction
546
+  (0.0ms) SAVEPOINT active_record_1
547
+ SQL (0.2ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
548
+  (0.0ms) RELEASE SAVEPOINT active_record_1
549
+  (0.0ms) SAVEPOINT active_record_1
550
+ SQL (0.2ms) INSERT INTO "users" ("followers_count", "name") VALUES (?, ?) [["followers_count", 0], ["name", nil]]
551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
552
+  (0.0ms) SAVEPOINT active_record_1
553
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
554
+ SQL (1.0ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 06 Dec 2012 22:20:40 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Thu, 06 Dec 2012 22:20:40 UTC +00:00], ["user_id", 1]]
555
+  (0.0ms) RELEASE SAVEPOINT active_record_1
556
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" LIMIT 1
557
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
558
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
559
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
560
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
561
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
562
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 2 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
563
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
564
+  (2.4ms) rollback transaction
565
+ Connecting to database specified by database.yml
566
+  (0.9ms) select sqlite_version(*)
567
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followers_count" integer DEFAULT 0, "name" varchar(255))
568
+  (0.1ms) begin transaction
569
+  (0.1ms) rollback transaction
570
+  (0.1ms) begin transaction
571
+  (0.0ms) rollback transaction
572
+  (0.0ms) begin transaction
573
+  (0.0ms) rollback transaction
574
+  (0.0ms) begin transaction
575
+  (0.0ms) rollback transaction
576
+  (0.1ms) begin transaction
577
+  (0.0ms) rollback transaction
578
+  (0.1ms) begin transaction
579
+  (0.1ms) rollback transaction
580
+  (0.1ms) begin transaction
581
+ Favorite Exists (1.3ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
582
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
583
+  (0.1ms) rollback transaction
584
+  (0.0ms) begin transaction
585
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
586
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
587
+  (0.0ms) rollback transaction
588
+ Connecting to database specified by database.yml
589
+  (1.4ms) select sqlite_version(*)
590
+  (0.9ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
591
+  (0.1ms) begin transaction
592
+  (0.1ms) rollback transaction
593
+  (0.1ms) begin transaction
594
+  (0.0ms) rollback transaction
595
+  (0.1ms) begin transaction
596
+  (0.0ms) rollback transaction
597
+  (0.1ms) begin transaction
598
+  (0.0ms) rollback transaction
599
+  (0.1ms) begin transaction
600
+  (0.1ms) rollback transaction
601
+  (0.1ms) begin transaction
602
+  (0.0ms) rollback transaction
603
+  (0.0ms) begin transaction
604
+ Favorite Exists (1.3ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
605
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
606
+  (0.1ms) rollback transaction
607
+  (0.1ms) begin transaction
608
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
609
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
610
+  (0.1ms) rollback transaction
611
+ Connecting to database specified by database.yml
612
+  (0.8ms) select sqlite_version(*)
613
+  (0.7ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
614
+  (0.1ms) begin transaction
615
+  (0.1ms) rollback transaction
616
+  (0.0ms) begin transaction
617
+  (0.0ms) rollback transaction
618
+  (0.0ms) begin transaction
619
+  (0.0ms) rollback transaction
620
+  (0.0ms) begin transaction
621
+  (0.0ms) rollback transaction
622
+  (0.1ms) begin transaction
623
+  (0.0ms) rollback transaction
624
+  (0.0ms) begin transaction
625
+  (0.0ms) rollback transaction
626
+  (0.0ms) begin transaction
627
+ Favorite Exists (1.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
628
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
629
+  (0.0ms) rollback transaction
630
+  (0.0ms) begin transaction
631
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
632
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
633
+  (0.0ms) rollback transaction
634
+ Connecting to database specified by database.yml
635
+  (1.0ms) select sqlite_version(*)
636
+  (0.7ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
637
+  (0.1ms) begin transaction
638
+  (0.1ms) rollback transaction
639
+  (0.1ms) begin transaction
640
+  (0.0ms) rollback transaction
641
+  (0.1ms) begin transaction
642
+  (0.0ms) rollback transaction
643
+  (0.0ms) begin transaction
644
+  (0.0ms) rollback transaction
645
+  (0.1ms) begin transaction
646
+  (0.0ms) rollback transaction
647
+  (0.1ms) begin transaction
648
+  (0.0ms) rollback transaction
649
+  (0.0ms) begin transaction
650
+ Favorite Exists (1.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
651
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
652
+  (0.0ms) rollback transaction
653
+  (0.0ms) begin transaction
654
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
655
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
656
+  (0.0ms) rollback transaction
657
+  (0.0ms) begin transaction
658
+  (0.0ms) SAVEPOINT active_record_1
659
+ SQL (2.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
660
+  (0.0ms) RELEASE SAVEPOINT active_record_1
661
+  (0.1ms) SAVEPOINT active_record_1
662
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
663
+  (0.0ms) RELEASE SAVEPOINT active_record_1
664
+  (0.0ms) SAVEPOINT active_record_1
665
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
666
+ SQL (1.0ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 06 Dec 2012 22:26:01 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Thu, 06 Dec 2012 22:26:01 UTC +00:00], ["user_id", 1]]
667
+  (0.0ms) RELEASE SAVEPOINT active_record_1
668
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" LIMIT 1
669
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
670
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
671
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
672
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
673
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
674
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 2 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
675
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
676
+  (0.6ms) rollback transaction
677
+ Connecting to database specified by database.yml
678
+  (1.8ms) select sqlite_version(*)
679
+  (0.9ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
680
+ Connecting to database specified by database.yml
681
+  (1.7ms) select sqlite_version(*)
682
+  (0.8ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
683
+  (0.1ms) begin transaction
684
+  (0.1ms) rollback transaction
685
+  (0.1ms) begin transaction
686
+  (0.1ms) rollback transaction
687
+  (0.1ms) begin transaction
688
+  (0.1ms) rollback transaction
689
+  (0.1ms) begin transaction
690
+  (0.1ms) rollback transaction
691
+  (0.1ms) begin transaction
692
+  (0.1ms) rollback transaction
693
+  (0.1ms) begin transaction
694
+  (0.1ms) rollback transaction
695
+  (0.1ms) begin transaction
696
+  (0.0ms) rollback transaction
697
+  (0.1ms) begin transaction
698
+  (0.1ms) rollback transaction
699
+  (0.1ms) begin transaction
700
+  (0.1ms) rollback transaction
701
+  (0.1ms) begin transaction
702
+  (0.1ms) rollback transaction
703
+  (0.1ms) begin transaction
704
+  (0.1ms) rollback transaction
705
+  (0.1ms) begin transaction
706
+  (0.1ms) rollback transaction
707
+  (0.1ms) begin transaction
708
+  (0.1ms) rollback transaction
709
+  (0.1ms) begin transaction
710
+  (0.0ms) rollback transaction
711
+ Connecting to database specified by database.yml
712
+  (1.3ms) select sqlite_version(*)
713
+  (0.8ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
714
+  (0.1ms) begin transaction
715
+  (0.1ms) rollback transaction
716
+  (0.1ms) begin transaction
717
+  (0.0ms) rollback transaction
718
+  (0.1ms) begin transaction
719
+  (0.0ms) rollback transaction
720
+  (0.0ms) begin transaction
721
+  (0.0ms) rollback transaction
722
+  (0.1ms) begin transaction
723
+  (0.0ms) rollback transaction
724
+  (0.0ms) begin transaction
725
+  (0.0ms) rollback transaction
726
+  (0.1ms) begin transaction
727
+ Favorite Exists (2.9ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
728
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
729
+  (0.1ms) rollback transaction
730
+  (0.1ms) begin transaction
731
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
732
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
733
+  (0.1ms) rollback transaction
734
+  (0.1ms) begin transaction
735
+  (0.1ms) rollback transaction
736
+  (0.0ms) begin transaction
737
+  (0.1ms) rollback transaction
738
+  (0.1ms) begin transaction
739
+  (0.1ms) rollback transaction
740
+  (0.1ms) begin transaction
741
+  (0.1ms) rollback transaction
742
+  (0.1ms) begin transaction
743
+  (0.1ms) rollback transaction
744
+  (0.1ms) begin transaction
745
+  (0.1ms) rollback transaction
746
+  (0.1ms) begin transaction
747
+  (0.1ms) rollback transaction
748
+  (0.1ms) begin transaction
749
+  (0.1ms) rollback transaction
750
+  (0.1ms) begin transaction
751
+  (0.1ms) rollback transaction
752
+  (0.1ms) begin transaction
753
+  (0.1ms) rollback transaction
754
+  (0.1ms) begin transaction
755
+  (0.1ms) rollback transaction
756
+  (0.1ms) begin transaction
757
+  (0.4ms) SELECT COUNT(*) FROM "favorites"
758
+  (0.1ms) rollback transaction
759
+  (0.1ms) begin transaction
760
+  (0.1ms) rollback transaction
761
+  (0.1ms) begin transaction
762
+  (0.1ms) rollback transaction
763
+ Connecting to database specified by database.yml
764
+  (1.3ms) select sqlite_version(*)
765
+  (0.8ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
766
+  (0.1ms) begin transaction
767
+  (0.1ms) SAVEPOINT active_record_1
768
+ SQL (4.9ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
769
+  (0.1ms) RELEASE SAVEPOINT active_record_1
770
+  (0.5ms) rollback transaction
771
+  (0.1ms) begin transaction
772
+  (0.1ms) SAVEPOINT active_record_1
773
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
774
+  (0.0ms) RELEASE SAVEPOINT active_record_1
775
+  (0.1ms) rollback transaction
776
+  (0.1ms) begin transaction
777
+  (0.0ms) SAVEPOINT active_record_1
778
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
779
+  (0.0ms) RELEASE SAVEPOINT active_record_1
780
+  (0.1ms) rollback transaction
781
+  (0.1ms) begin transaction
782
+  (0.0ms) rollback transaction
783
+  (0.0ms) begin transaction
784
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
785
+  (0.1ms) SAVEPOINT active_record_1
786
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
787
+  (0.0ms) RELEASE SAVEPOINT active_record_1
788
+  (0.1ms) rollback transaction
789
+  (0.1ms) begin transaction
790
+  (0.0ms) SAVEPOINT active_record_1
791
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
792
+  (0.0ms) RELEASE SAVEPOINT active_record_1
793
+  (0.1ms) rollback transaction
794
+  (0.1ms) begin transaction
795
+  (0.0ms) SAVEPOINT active_record_1
796
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
798
+  (0.1ms) rollback transaction
799
+  (0.1ms) begin transaction
800
+  (0.0ms) rollback transaction
801
+  (0.1ms) begin transaction
802
+  (0.1ms) rollback transaction
803
+  (0.1ms) begin transaction
804
+  (0.0ms) rollback transaction
805
+  (0.0ms) begin transaction
806
+  (0.0ms) rollback transaction
807
+  (0.1ms) begin transaction
808
+  (0.1ms) rollback transaction
809
+  (0.1ms) begin transaction
810
+  (0.0ms) rollback transaction
811
+  (0.1ms) begin transaction
812
+  (0.0ms) rollback transaction
813
+  (0.1ms) begin transaction
814
+  (0.1ms) rollback transaction
815
+  (0.1ms) begin transaction
816
+  (0.0ms) rollback transaction
817
+  (0.1ms) begin transaction
818
+  (0.0ms) rollback transaction
819
+  (0.1ms) begin transaction
820
+  (0.0ms) rollback transaction
821
+  (0.1ms) begin transaction
822
+  (0.0ms) rollback transaction
823
+  (0.1ms) begin transaction
824
+  (0.0ms) rollback transaction
825
+  (0.1ms) begin transaction
826
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
827
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
828
+  (0.0ms) rollback transaction
829
+  (0.0ms) begin transaction
830
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
831
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
832
+  (0.0ms) rollback transaction
833
+ Connecting to database specified by database.yml
834
+  (1.3ms) select sqlite_version(*)
835
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
836
+  (0.0ms) begin transaction
837
+ SQL (6.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
838
+  (0.1ms) commit transaction
839
+ Connecting to database specified by database.yml
840
+  (0.9ms) select sqlite_version(*)
841
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
842
+  (0.0ms) begin transaction
843
+ SQL (2.9ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
844
+  (0.1ms) commit transaction
845
+  (0.1ms) begin transaction
846
+  (0.5ms) SELECT COUNT(*) FROM "favorites" 
847
+  (0.0ms) SAVEPOINT active_record_1
848
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
849
+  (0.0ms) RELEASE SAVEPOINT active_record_1
850
+  (0.1ms) rollback transaction
851
+  (0.0ms) begin transaction
852
+  (0.0ms) SAVEPOINT active_record_1
853
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
855
+  (0.1ms) rollback transaction
856
+  (0.1ms) begin transaction
857
+  (0.0ms) SAVEPOINT active_record_1
858
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
859
+  (0.0ms) RELEASE SAVEPOINT active_record_1
860
+  (0.1ms) rollback transaction
861
+  (0.0ms) begin transaction
862
+  (0.0ms) SAVEPOINT active_record_1
863
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
864
+  (0.0ms) RELEASE SAVEPOINT active_record_1
865
+  (0.1ms) SAVEPOINT active_record_1
866
+ Favorite Exists (0.4ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
867
+ SQL (3.9ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 17:56:44 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 17:56:44 UTC +00:00], ["user_id", 1]]
868
+  (0.1ms) RELEASE SAVEPOINT active_record_1
869
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
870
+  (0.6ms) rollback transaction
871
+  (0.1ms) begin transaction
872
+  (0.0ms) SAVEPOINT active_record_1
873
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
874
+  (0.0ms) RELEASE SAVEPOINT active_record_1
875
+  (0.1ms) rollback transaction
876
+  (0.0ms) begin transaction
877
+  (0.0ms) SAVEPOINT active_record_1
878
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
879
+  (0.0ms) RELEASE SAVEPOINT active_record_1
880
+  (0.1ms) rollback transaction
881
+  (0.0ms) begin transaction
882
+  (0.0ms) SAVEPOINT active_record_1
883
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
884
+  (0.0ms) RELEASE SAVEPOINT active_record_1
885
+  (0.1ms) rollback transaction
886
+  (0.1ms) begin transaction
887
+  (0.0ms) rollback transaction
888
+  (0.0ms) begin transaction
889
+  (0.0ms) rollback transaction
890
+  (0.0ms) begin transaction
891
+  (0.0ms) rollback transaction
892
+  (0.0ms) begin transaction
893
+  (0.0ms) rollback transaction
894
+  (0.0ms) begin transaction
895
+  (0.0ms) rollback transaction
896
+  (0.0ms) begin transaction
897
+  (0.0ms) rollback transaction
898
+  (0.0ms) begin transaction
899
+  (0.0ms) SAVEPOINT active_record_1
900
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
901
+  (0.0ms) RELEASE SAVEPOINT active_record_1
902
+  (0.0ms) SAVEPOINT active_record_1
903
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
904
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 17:56:44 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 17:56:44 UTC +00:00], ["user_id", 1]]
905
+  (0.0ms) RELEASE SAVEPOINT active_record_1
906
+  (0.5ms) rollback transaction
907
+  (0.1ms) begin transaction
908
+  (0.1ms) rollback transaction
909
+  (0.1ms) begin transaction
910
+  (0.0ms) rollback transaction
911
+  (0.1ms) begin transaction
912
+  (0.0ms) rollback transaction
913
+  (0.1ms) begin transaction
914
+  (0.0ms) rollback transaction
915
+  (0.0ms) begin transaction
916
+  (0.0ms) rollback transaction
917
+  (0.1ms) begin transaction
918
+  (0.0ms) rollback transaction
919
+  (0.0ms) begin transaction
920
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
921
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
922
+  (0.1ms) rollback transaction
923
+  (0.1ms) begin transaction
924
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
925
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
926
+  (0.0ms) rollback transaction
927
+ Connecting to database specified by database.yml
928
+  (0.9ms) select sqlite_version(*)
929
+  (0.7ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
930
+  (0.0ms) begin transaction
931
+ SQL (3.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
932
+  (0.1ms) commit transaction
933
+  (0.1ms) begin transaction
934
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
935
+  (0.0ms) SAVEPOINT active_record_1
936
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
937
+  (0.0ms) RELEASE SAVEPOINT active_record_1
938
+  (0.1ms) rollback transaction
939
+  (0.1ms) begin transaction
940
+  (0.1ms) SAVEPOINT active_record_1
941
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
942
+  (0.0ms) RELEASE SAVEPOINT active_record_1
943
+  (0.1ms) rollback transaction
944
+  (0.1ms) begin transaction
945
+  (0.0ms) SAVEPOINT active_record_1
946
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
947
+  (0.0ms) RELEASE SAVEPOINT active_record_1
948
+  (0.1ms) rollback transaction
949
+  (0.0ms) begin transaction
950
+  (0.0ms) SAVEPOINT active_record_1
951
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
952
+  (0.0ms) RELEASE SAVEPOINT active_record_1
953
+  (0.1ms) SAVEPOINT active_record_1
954
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
955
+ SQL (1.7ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 17:57:00 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 17:57:00 UTC +00:00], ["user_id", 1]]
956
+  (0.1ms) RELEASE SAVEPOINT active_record_1
957
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
958
+  (0.7ms) rollback transaction
959
+  (0.0ms) begin transaction
960
+  (0.1ms) SAVEPOINT active_record_1
961
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
962
+  (0.0ms) RELEASE SAVEPOINT active_record_1
963
+  (0.1ms) rollback transaction
964
+  (0.0ms) begin transaction
965
+  (0.0ms) SAVEPOINT active_record_1
966
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
967
+  (0.0ms) RELEASE SAVEPOINT active_record_1
968
+  (0.1ms) rollback transaction
969
+  (0.0ms) begin transaction
970
+  (0.0ms) SAVEPOINT active_record_1
971
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
972
+  (0.0ms) RELEASE SAVEPOINT active_record_1
973
+  (0.1ms) rollback transaction
974
+  (0.0ms) begin transaction
975
+  (0.0ms) rollback transaction
976
+  (0.0ms) begin transaction
977
+  (0.0ms) rollback transaction
978
+  (0.0ms) begin transaction
979
+  (0.0ms) rollback transaction
980
+  (0.0ms) begin transaction
981
+  (0.0ms) rollback transaction
982
+  (0.0ms) begin transaction
983
+  (0.0ms) rollback transaction
984
+  (0.0ms) begin transaction
985
+  (0.0ms) rollback transaction
986
+  (0.0ms) begin transaction
987
+  (0.0ms) SAVEPOINT active_record_1
988
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
989
+  (0.0ms) RELEASE SAVEPOINT active_record_1
990
+  (0.0ms) SAVEPOINT active_record_1
991
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
992
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 17:57:00 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 17:57:00 UTC +00:00], ["user_id", 1]]
993
+  (0.0ms) RELEASE SAVEPOINT active_record_1
994
+  (0.5ms) rollback transaction
995
+  (0.1ms) begin transaction
996
+  (0.0ms) rollback transaction
997
+  (0.0ms) begin transaction
998
+  (0.0ms) rollback transaction
999
+  (0.0ms) begin transaction
1000
+  (0.0ms) rollback transaction
1001
+  (0.0ms) begin transaction
1002
+  (0.0ms) rollback transaction
1003
+  (0.0ms) begin transaction
1004
+  (0.0ms) rollback transaction
1005
+  (0.0ms) begin transaction
1006
+  (0.0ms) rollback transaction
1007
+  (0.0ms) begin transaction
1008
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1009
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1010
+  (0.1ms) rollback transaction
1011
+  (0.1ms) begin transaction
1012
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1013
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1014
+  (0.0ms) rollback transaction
1015
+ Connecting to database specified by database.yml
1016
+  (1.1ms) select sqlite_version(*)
1017
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
1018
+  (0.0ms) begin transaction
1019
+ SQL (2.9ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1020
+  (0.1ms) commit transaction
1021
+  (0.1ms) begin transaction
1022
+  (0.1ms) rollback transaction
1023
+  (0.0ms) begin transaction
1024
+  (0.0ms) rollback transaction
1025
+  (0.0ms) begin transaction
1026
+  (0.0ms) rollback transaction
1027
+  (0.0ms) begin transaction
1028
+  (0.0ms) rollback transaction
1029
+  (0.0ms) begin transaction
1030
+  (0.0ms) rollback transaction
1031
+  (0.1ms) begin transaction
1032
+  (0.0ms) rollback transaction
1033
+  (0.0ms) begin transaction
1034
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1035
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1036
+  (0.0ms) rollback transaction
1037
+  (0.0ms) begin transaction
1038
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1039
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1040
+  (0.0ms) rollback transaction
1041
+  (0.1ms) begin transaction
1042
+  (0.0ms) SAVEPOINT active_record_1
1043
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1044
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1045
+  (0.1ms) SAVEPOINT active_record_1
1046
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1047
+ SQL (1.0ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 17:57:50 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 17:57:50 UTC +00:00], ["user_id", 1]]
1048
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1049
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
1050
+  (0.6ms) rollback transaction
1051
+  (0.0ms) begin transaction
1052
+  (0.0ms) SAVEPOINT active_record_1
1053
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1054
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1055
+  (0.0ms) SAVEPOINT active_record_1
1056
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1057
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 17:57:50 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 17:57:50 UTC +00:00], ["user_id", 1]]
1058
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1059
+  (0.6ms) rollback transaction
1060
+  (0.1ms) begin transaction
1061
+  (0.1ms) SAVEPOINT active_record_1
1062
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1063
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1064
+  (0.0ms) SAVEPOINT active_record_1
1065
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1066
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 17:57:50 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 17:57:50 UTC +00:00], ["user_id", 1]]
1067
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1068
+  (0.6ms) rollback transaction
1069
+  (0.0ms) begin transaction
1070
+  (0.0ms) SAVEPOINT active_record_1
1071
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1072
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1073
+  (0.0ms) SAVEPOINT active_record_1
1074
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1075
+ SQL (0.5ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 17:57:50 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 17:57:50 UTC +00:00], ["user_id", 1]]
1076
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1077
+  (0.4ms) rollback transaction
1078
+  (0.0ms) begin transaction
1079
+  (0.0ms) SAVEPOINT active_record_1
1080
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1081
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1082
+  (0.0ms) SAVEPOINT active_record_1
1083
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1084
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1085
+  (0.0ms) SAVEPOINT active_record_1
1086
+ SQL (0.0ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1087
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1088
+  (0.1ms) rollback transaction
1089
+  (0.0ms) begin transaction
1090
+  (0.0ms) SAVEPOINT active_record_1
1091
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1092
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1093
+  (0.0ms) SAVEPOINT active_record_1
1094
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1095
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 17:57:50 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 17:57:50 UTC +00:00], ["user_id", 1]]
1096
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1097
+  (0.1ms) SAVEPOINT active_record_1
1098
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1099
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1100
+  (0.5ms) rollback transaction
1101
+  (0.0ms) begin transaction
1102
+  (0.1ms) SAVEPOINT active_record_1
1103
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1104
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1105
+  (0.1ms) SAVEPOINT active_record_1
1106
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1107
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 17:57:50 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 17:57:50 UTC +00:00], ["user_id", 1]]
1108
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1109
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
1110
+  (0.6ms) rollback transaction
1111
+  (0.0ms) begin transaction
1112
+  (0.0ms) SAVEPOINT active_record_1
1113
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1115
+  (0.1ms) rollback transaction
1116
+  (0.1ms) begin transaction
1117
+  (0.0ms) SAVEPOINT active_record_1
1118
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1120
+  (0.1ms) rollback transaction
1121
+  (0.0ms) begin transaction
1122
+  (0.0ms) SAVEPOINT active_record_1
1123
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1124
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1125
+  (0.1ms) rollback transaction
1126
+  (0.0ms) begin transaction
1127
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
1128
+  (0.0ms) SAVEPOINT active_record_1
1129
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1130
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1131
+  (0.1ms) rollback transaction
1132
+  (0.0ms) begin transaction
1133
+  (0.0ms) SAVEPOINT active_record_1
1134
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1135
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1136
+  (0.1ms) rollback transaction
1137
+  (0.0ms) begin transaction
1138
+  (0.1ms) SAVEPOINT active_record_1
1139
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1140
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1141
+  (0.1ms) rollback transaction
1142
+ Connecting to database specified by database.yml
1143
+  (0.9ms) select sqlite_version(*)
1144
+  (0.5ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
1145
+  (0.0ms) begin transaction
1146
+ SQL (2.8ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1147
+  (0.1ms) commit transaction
1148
+  (0.1ms) begin transaction
1149
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
1150
+  (0.0ms) SAVEPOINT active_record_1
1151
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1152
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1153
+ Processing by FavoritesController#create as JS
1154
+ Parameters: {"model_id"=>"2"}
1155
+ Completed 500 Internal Server Error in 0ms
1156
+  (0.1ms) rollback transaction
1157
+  (0.0ms) begin transaction
1158
+  (0.0ms) SAVEPOINT active_record_1
1159
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1160
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1161
+ Processing by FavoritesController#create as JS
1162
+ Parameters: {"model_id"=>"2"}
1163
+ Completed 500 Internal Server Error in 0ms
1164
+  (0.1ms) rollback transaction
1165
+  (0.0ms) begin transaction
1166
+  (0.0ms) SAVEPOINT active_record_1
1167
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1168
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1169
+ Processing by FavoritesController#create as JS
1170
+ Parameters: {"model_id"=>"2"}
1171
+ Completed 500 Internal Server Error in 0ms
1172
+  (0.1ms) rollback transaction
1173
+  (0.0ms) begin transaction
1174
+  (0.0ms) SAVEPOINT active_record_1
1175
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1176
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1177
+  (0.1ms) SAVEPOINT active_record_1
1178
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1179
+ SQL (1.0ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:01:35 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:01:35 UTC +00:00], ["user_id", 1]]
1180
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1181
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
1182
+ Processing by FavoritesController#create as JS
1183
+ Parameters: {"model_id"=>"2"}
1184
+ Completed 500 Internal Server Error in 0ms
1185
+  (0.4ms) rollback transaction
1186
+  (0.1ms) begin transaction
1187
+  (0.0ms) SAVEPOINT active_record_1
1188
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1190
+ Processing by FavoritesController#create as JS
1191
+ Parameters: {"model_id"=>"2"}
1192
+ Completed 500 Internal Server Error in 0ms
1193
+  (0.1ms) rollback transaction
1194
+  (0.1ms) begin transaction
1195
+  (0.0ms) SAVEPOINT active_record_1
1196
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1197
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1198
+ Processing by FavoritesController#create as JS
1199
+ Parameters: {"model_id"=>"2"}
1200
+ Completed 500 Internal Server Error in 0ms
1201
+  (0.1ms) rollback transaction
1202
+  (0.1ms) begin transaction
1203
+  (0.1ms) SAVEPOINT active_record_1
1204
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1205
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1206
+ Processing by FavoritesController#create as JS
1207
+ Parameters: {"model_id"=>"2"}
1208
+ Completed 500 Internal Server Error in 0ms
1209
+  (0.1ms) rollback transaction
1210
+  (0.0ms) begin transaction
1211
+  (0.0ms) SAVEPOINT active_record_1
1212
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1213
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1214
+  (0.0ms) SAVEPOINT active_record_1
1215
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1216
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:01:35 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:01:35 UTC +00:00], ["user_id", 1]]
1217
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1218
+  (0.0ms) SAVEPOINT active_record_1
1219
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1221
+  (0.7ms) rollback transaction
1222
+  (0.1ms) begin transaction
1223
+  (0.1ms) SAVEPOINT active_record_1
1224
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1225
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1226
+  (0.1ms) SAVEPOINT active_record_1
1227
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1228
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1229
+  (0.0ms) SAVEPOINT active_record_1
1230
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1232
+  (0.1ms) rollback transaction
1233
+  (0.0ms) begin transaction
1234
+  (0.1ms) SAVEPOINT active_record_1
1235
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1236
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1237
+  (0.0ms) SAVEPOINT active_record_1
1238
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1239
+ SQL (0.5ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:01:35 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:01:35 UTC +00:00], ["user_id", 1]]
1240
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1241
+  (0.4ms) rollback transaction
1242
+  (0.0ms) begin transaction
1243
+  (0.0ms) SAVEPOINT active_record_1
1244
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1245
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1246
+  (0.0ms) SAVEPOINT active_record_1
1247
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1248
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:01:35 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:01:35 UTC +00:00], ["user_id", 1]]
1249
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1250
+  (0.5ms) rollback transaction
1251
+  (0.1ms) begin transaction
1252
+  (0.0ms) SAVEPOINT active_record_1
1253
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1254
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1255
+  (0.0ms) SAVEPOINT active_record_1
1256
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1257
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:01:35 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:01:35 UTC +00:00], ["user_id", 1]]
1258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1259
+  (0.5ms) rollback transaction
1260
+  (0.0ms) begin transaction
1261
+  (0.0ms) SAVEPOINT active_record_1
1262
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1264
+  (0.0ms) SAVEPOINT active_record_1
1265
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1266
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:01:35 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:01:35 UTC +00:00], ["user_id", 1]]
1267
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1268
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
1269
+  (0.5ms) rollback transaction
1270
+  (0.0ms) begin transaction
1271
+  (0.0ms) rollback transaction
1272
+  (0.1ms) begin transaction
1273
+  (0.0ms) rollback transaction
1274
+  (0.1ms) begin transaction
1275
+  (0.0ms) rollback transaction
1276
+  (0.0ms) begin transaction
1277
+  (0.0ms) rollback transaction
1278
+  (0.1ms) begin transaction
1279
+  (0.0ms) rollback transaction
1280
+  (0.1ms) begin transaction
1281
+  (0.0ms) rollback transaction
1282
+  (0.0ms) begin transaction
1283
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1284
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1285
+  (0.0ms) rollback transaction
1286
+  (0.0ms) begin transaction
1287
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1288
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1289
+  (0.0ms) rollback transaction
1290
+ Connecting to database specified by database.yml
1291
+  (1.0ms) select sqlite_version(*)
1292
+  (0.5ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
1293
+  (0.0ms) begin transaction
1294
+ SQL (3.0ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1295
+  (0.1ms) commit transaction
1296
+  (0.1ms) begin transaction
1297
+  (0.1ms) rollback transaction
1298
+  (0.0ms) begin transaction
1299
+  (0.0ms) rollback transaction
1300
+  (0.0ms) begin transaction
1301
+  (0.0ms) rollback transaction
1302
+  (0.0ms) begin transaction
1303
+  (0.0ms) rollback transaction
1304
+  (0.0ms) begin transaction
1305
+  (0.0ms) rollback transaction
1306
+  (0.1ms) begin transaction
1307
+  (0.0ms) rollback transaction
1308
+  (0.1ms) begin transaction
1309
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1310
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1311
+  (0.0ms) rollback transaction
1312
+  (0.0ms) begin transaction
1313
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1314
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1315
+  (0.0ms) rollback transaction
1316
+  (0.0ms) begin transaction
1317
+  (0.0ms) SAVEPOINT active_record_1
1318
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1319
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1320
+  (0.0ms) SAVEPOINT active_record_1
1321
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1322
+ SQL (1.1ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:02:19 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:02:19 UTC +00:00], ["user_id", 1]]
1323
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1324
+  (0.0ms) SAVEPOINT active_record_1
1325
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1326
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1327
+ Processing by FavoritesController#destroy as JS
1328
+ Parameters: {"model_id"=>"3", "id"=>"1"}
1329
+ Completed 500 Internal Server Error in 0ms
1330
+  (0.6ms) rollback transaction
1331
+  (0.1ms) begin transaction
1332
+  (0.0ms) SAVEPOINT active_record_1
1333
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1334
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1335
+  (0.0ms) SAVEPOINT active_record_1
1336
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1337
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:02:19 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:02:19 UTC +00:00], ["user_id", 1]]
1338
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1339
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
1340
+ Processing by FavoritesController#destroy as JS
1341
+ Parameters: {"model_id"=>"2", "id"=>"1"}
1342
+ Completed 500 Internal Server Error in 0ms
1343
+  (0.6ms) rollback transaction
1344
+  (0.0ms) begin transaction
1345
+  (0.0ms) SAVEPOINT active_record_1
1346
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1347
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1348
+  (0.0ms) SAVEPOINT active_record_1
1349
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1350
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:02:19 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:02:19 UTC +00:00], ["user_id", 1]]
1351
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1352
+ Processing by FavoritesController#destroy as JS
1353
+ Parameters: {"model_id"=>"2", "id"=>"1"}
1354
+ Completed 500 Internal Server Error in 0ms
1355
+  (0.6ms) rollback transaction
1356
+  (0.1ms) begin transaction
1357
+  (0.0ms) SAVEPOINT active_record_1
1358
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1359
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1360
+  (0.0ms) SAVEPOINT active_record_1
1361
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1362
+ SQL (0.5ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:02:19 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:02:19 UTC +00:00], ["user_id", 1]]
1363
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1364
+ Processing by FavoritesController#destroy as JS
1365
+ Parameters: {"model_id"=>"2", "id"=>"1"}
1366
+ Completed 500 Internal Server Error in 0ms
1367
+  (0.6ms) rollback transaction
1368
+  (0.0ms) begin transaction
1369
+  (0.0ms) SAVEPOINT active_record_1
1370
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1371
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1372
+  (0.0ms) SAVEPOINT active_record_1
1373
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1374
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:02:19 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:02:19 UTC +00:00], ["user_id", 1]]
1375
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1376
+ Processing by FavoritesController#destroy as JS
1377
+ Parameters: {"model_id"=>"2", "id"=>"1"}
1378
+ Completed 500 Internal Server Error in 0ms
1379
+  (0.6ms) rollback transaction
1380
+  (0.1ms) begin transaction
1381
+  (0.0ms) SAVEPOINT active_record_1
1382
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1383
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1384
+  (0.0ms) SAVEPOINT active_record_1
1385
+ SQL (0.0ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1386
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1387
+  (0.0ms) SAVEPOINT active_record_1
1388
+ SQL (0.0ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1390
+  (0.1ms) rollback transaction
1391
+  (0.0ms) begin transaction
1392
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
1393
+  (0.0ms) SAVEPOINT active_record_1
1394
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1395
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1396
+ Processing by FavoritesController#create as JS
1397
+ Parameters: {"model_id"=>"2"}
1398
+ Completed 500 Internal Server Error in 0ms
1399
+  (0.1ms) rollback transaction
1400
+  (0.0ms) begin transaction
1401
+  (0.0ms) SAVEPOINT active_record_1
1402
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1404
+ Processing by FavoritesController#create as JS
1405
+ Parameters: {"model_id"=>"2"}
1406
+ Completed 500 Internal Server Error in 0ms
1407
+  (0.1ms) rollback transaction
1408
+  (0.0ms) begin transaction
1409
+  (0.0ms) SAVEPOINT active_record_1
1410
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1411
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1412
+ Processing by FavoritesController#create as JS
1413
+ Parameters: {"model_id"=>"2"}
1414
+ Completed 500 Internal Server Error in 0ms
1415
+  (0.1ms) rollback transaction
1416
+  (0.0ms) begin transaction
1417
+  (0.0ms) SAVEPOINT active_record_1
1418
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1419
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1420
+  (0.0ms) SAVEPOINT active_record_1
1421
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1422
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:02:19 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:02:19 UTC +00:00], ["user_id", 1]]
1423
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1424
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
1425
+ Processing by FavoritesController#create as JS
1426
+ Parameters: {"model_id"=>"2"}
1427
+ Completed 500 Internal Server Error in 0ms
1428
+  (0.4ms) rollback transaction
1429
+  (0.0ms) begin transaction
1430
+  (0.0ms) SAVEPOINT active_record_1
1431
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1432
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1433
+ Processing by FavoritesController#create as JS
1434
+ Parameters: {"model_id"=>"2"}
1435
+ Completed 500 Internal Server Error in 0ms
1436
+  (0.1ms) rollback transaction
1437
+  (0.1ms) begin transaction
1438
+  (0.1ms) SAVEPOINT active_record_1
1439
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1440
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1441
+ Processing by FavoritesController#create as JS
1442
+ Parameters: {"model_id"=>"2"}
1443
+ Completed 500 Internal Server Error in 0ms
1444
+  (0.1ms) rollback transaction
1445
+  (0.1ms) begin transaction
1446
+  (0.0ms) SAVEPOINT active_record_1
1447
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1448
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1449
+ Processing by FavoritesController#create as JS
1450
+ Parameters: {"model_id"=>"2"}
1451
+ Completed 500 Internal Server Error in 0ms
1452
+  (0.1ms) rollback transaction
1453
+ Connecting to database specified by database.yml
1454
+  (0.9ms) select sqlite_version(*)
1455
+  (0.5ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
1456
+  (0.0ms) begin transaction
1457
+ SQL (3.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1458
+  (0.1ms) commit transaction
1459
+  (0.1ms) begin transaction
1460
+  (0.1ms) rollback transaction
1461
+  (0.0ms) begin transaction
1462
+  (0.1ms) rollback transaction
1463
+  (0.1ms) begin transaction
1464
+  (0.0ms) rollback transaction
1465
+  (0.1ms) begin transaction
1466
+  (0.0ms) rollback transaction
1467
+  (0.1ms) begin transaction
1468
+  (0.0ms) rollback transaction
1469
+  (0.1ms) begin transaction
1470
+  (0.0ms) rollback transaction
1471
+  (0.0ms) begin transaction
1472
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1473
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1474
+  (0.0ms) rollback transaction
1475
+  (0.0ms) begin transaction
1476
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1477
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1478
+  (0.0ms) rollback transaction
1479
+  (0.1ms) begin transaction
1480
+  (0.0ms) SAVEPOINT active_record_1
1481
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1482
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1483
+  (0.0ms) SAVEPOINT active_record_1
1484
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1485
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1486
+  (0.0ms) SAVEPOINT active_record_1
1487
+ SQL (0.0ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1488
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1489
+  (0.1ms) rollback transaction
1490
+  (0.0ms) begin transaction
1491
+  (0.0ms) SAVEPOINT active_record_1
1492
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1493
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1494
+  (0.0ms) SAVEPOINT active_record_1
1495
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1496
+ SQL (1.0ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:02:44 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:02:44 UTC +00:00], ["user_id", 1]]
1497
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1498
+ Processing by FavoritesController#destroy as JS
1499
+ Parameters: {"model_id"=>"2", "id"=>"1"}
1500
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1501
+ Completed 500 Internal Server Error in 1ms
1502
+  (2.5ms) rollback transaction
1503
+  (0.1ms) begin transaction
1504
+  (0.0ms) SAVEPOINT active_record_1
1505
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1506
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1507
+  (0.0ms) SAVEPOINT active_record_1
1508
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1509
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:02:44 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:02:44 UTC +00:00], ["user_id", 1]]
1510
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1511
+ Processing by FavoritesController#destroy as JS
1512
+ Parameters: {"model_id"=>"2", "id"=>"1"}
1513
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1514
+ Completed 500 Internal Server Error in 1ms
1515
+  (0.4ms) rollback transaction
1516
+  (0.1ms) begin transaction
1517
+  (0.0ms) SAVEPOINT active_record_1
1518
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1519
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1520
+  (0.0ms) SAVEPOINT active_record_1
1521
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1522
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:02:44 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:02:44 UTC +00:00], ["user_id", 1]]
1523
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1524
+ Processing by FavoritesController#destroy as JS
1525
+ Parameters: {"model_id"=>"2", "id"=>"1"}
1526
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1527
+ Completed 500 Internal Server Error in 1ms
1528
+  (0.6ms) rollback transaction
1529
+  (0.1ms) begin transaction
1530
+  (0.0ms) SAVEPOINT active_record_1
1531
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1532
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1533
+  (0.0ms) SAVEPOINT active_record_1
1534
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1535
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:02:44 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:02:44 UTC +00:00], ["user_id", 1]]
1536
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1537
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
1538
+ Processing by FavoritesController#destroy as JS
1539
+ Parameters: {"model_id"=>"2", "id"=>"1"}
1540
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1541
+ Completed 500 Internal Server Error in 1ms
1542
+  (0.5ms) rollback transaction
1543
+  (0.1ms) begin transaction
1544
+  (0.0ms) SAVEPOINT active_record_1
1545
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1546
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1547
+  (0.0ms) SAVEPOINT active_record_1
1548
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1549
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:02:44 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:02:44 UTC +00:00], ["user_id", 1]]
1550
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1551
+  (0.0ms) SAVEPOINT active_record_1
1552
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1553
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1554
+ Processing by FavoritesController#destroy as JS
1555
+ Parameters: {"model_id"=>"3", "id"=>"1"}
1556
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "3"]]
1557
+ Completed 500 Internal Server Error in 1ms
1558
+  (0.6ms) rollback transaction
1559
+  (0.0ms) begin transaction
1560
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
1561
+  (0.0ms) SAVEPOINT active_record_1
1562
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1563
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1564
+ Processing by FavoritesController#create as JS
1565
+ Parameters: {"model_id"=>"2"}
1566
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1567
+ Completed 500 Internal Server Error in 1ms
1568
+  (0.1ms) rollback transaction
1569
+  (0.0ms) begin transaction
1570
+  (0.0ms) SAVEPOINT active_record_1
1571
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1573
+ Processing by FavoritesController#create as JS
1574
+ Parameters: {"model_id"=>"2"}
1575
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1576
+ Completed 500 Internal Server Error in 1ms
1577
+  (0.1ms) rollback transaction
1578
+  (0.1ms) begin transaction
1579
+  (0.0ms) SAVEPOINT active_record_1
1580
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1581
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1582
+ Processing by FavoritesController#create as JS
1583
+ Parameters: {"model_id"=>"2"}
1584
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1585
+ Completed 500 Internal Server Error in 1ms
1586
+  (0.1ms) rollback transaction
1587
+  (0.0ms) begin transaction
1588
+  (0.0ms) SAVEPOINT active_record_1
1589
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1590
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1591
+ Processing by FavoritesController#create as JS
1592
+ Parameters: {"model_id"=>"2"}
1593
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1594
+ Completed 500 Internal Server Error in 1ms
1595
+  (0.1ms) rollback transaction
1596
+  (0.1ms) begin transaction
1597
+  (0.0ms) SAVEPOINT active_record_1
1598
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1599
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1600
+ Processing by FavoritesController#create as JS
1601
+ Parameters: {"model_id"=>"2"}
1602
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1603
+ Completed 500 Internal Server Error in 1ms
1604
+  (0.1ms) rollback transaction
1605
+  (0.0ms) begin transaction
1606
+  (0.0ms) SAVEPOINT active_record_1
1607
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1608
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1609
+ Processing by FavoritesController#create as JS
1610
+ Parameters: {"model_id"=>"2"}
1611
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1612
+ Completed 500 Internal Server Error in 1ms
1613
+  (0.1ms) rollback transaction
1614
+  (0.0ms) begin transaction
1615
+  (0.0ms) SAVEPOINT active_record_1
1616
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1617
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1618
+  (0.0ms) SAVEPOINT active_record_1
1619
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1620
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:02:44 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:02:44 UTC +00:00], ["user_id", 1]]
1621
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1622
+  (0.0ms) SELECT COUNT(*) FROM "favorites"
1623
+ Processing by FavoritesController#create as JS
1624
+ Parameters: {"model_id"=>"2"}
1625
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1626
+ Completed 500 Internal Server Error in 1ms
1627
+  (0.5ms) rollback transaction
1628
+ Connecting to database specified by database.yml
1629
+  (1.0ms) select sqlite_version(*)
1630
+  (0.7ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
1631
+  (0.1ms) begin transaction
1632
+ SQL (4.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1633
+  (0.1ms) commit transaction
1634
+  (0.1ms) begin transaction
1635
+  (0.1ms) rollback transaction
1636
+  (0.0ms) begin transaction
1637
+  (0.0ms) rollback transaction
1638
+  (0.0ms) begin transaction
1639
+  (0.0ms) rollback transaction
1640
+  (0.1ms) begin transaction
1641
+  (0.0ms) rollback transaction
1642
+  (0.0ms) begin transaction
1643
+  (0.0ms) rollback transaction
1644
+  (0.1ms) begin transaction
1645
+  (0.0ms) rollback transaction
1646
+  (0.0ms) begin transaction
1647
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1648
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1649
+  (0.1ms) rollback transaction
1650
+  (0.0ms) begin transaction
1651
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1652
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1653
+  (0.0ms) rollback transaction
1654
+  (0.1ms) begin transaction
1655
+  (0.0ms) SAVEPOINT active_record_1
1656
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1657
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1658
+  (0.0ms) SAVEPOINT active_record_1
1659
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1660
+ SQL (1.0ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:03:00 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:03:00 UTC +00:00], ["user_id", 1]]
1661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1662
+  (0.0ms) SAVEPOINT active_record_1
1663
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1664
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1665
+ Processing by FavoritesController#destroy as JS
1666
+ Parameters: {"model_id"=>"3", "id"=>"1"}
1667
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "3"]]
1668
+ Completed 500 Internal Server Error in 1ms
1669
+  (0.6ms) rollback transaction
1670
+  (0.1ms) begin transaction
1671
+  (0.0ms) SAVEPOINT active_record_1
1672
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1673
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1674
+  (0.0ms) SAVEPOINT active_record_1
1675
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1676
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:03:00 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:03:00 UTC +00:00], ["user_id", 1]]
1677
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1678
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
1679
+ Processing by FavoritesController#destroy as JS
1680
+ Parameters: {"model_id"=>"2", "id"=>"1"}
1681
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1682
+ Completed 500 Internal Server Error in 1ms
1683
+  (0.4ms) rollback transaction
1684
+  (0.0ms) begin transaction
1685
+  (0.1ms) SAVEPOINT active_record_1
1686
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1687
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1688
+  (0.0ms) SAVEPOINT active_record_1
1689
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1690
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1691
+  (0.0ms) SAVEPOINT active_record_1
1692
+ SQL (0.0ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1693
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1694
+  (0.1ms) rollback transaction
1695
+  (0.0ms) begin transaction
1696
+  (0.0ms) SAVEPOINT active_record_1
1697
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1698
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1699
+  (0.0ms) SAVEPOINT active_record_1
1700
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1701
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:03:00 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:03:00 UTC +00:00], ["user_id", 1]]
1702
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1703
+ Processing by FavoritesController#destroy as JS
1704
+ Parameters: {"model_id"=>"2", "id"=>"1"}
1705
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1706
+ Completed 500 Internal Server Error in 1ms
1707
+  (0.6ms) rollback transaction
1708
+  (0.0ms) begin transaction
1709
+  (0.0ms) SAVEPOINT active_record_1
1710
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1711
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1712
+  (0.0ms) SAVEPOINT active_record_1
1713
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1714
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:03:00 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:03:00 UTC +00:00], ["user_id", 1]]
1715
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1716
+ Processing by FavoritesController#destroy as JS
1717
+ Parameters: {"model_id"=>"2", "id"=>"1"}
1718
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1719
+ Completed 500 Internal Server Error in 1ms
1720
+  (0.5ms) rollback transaction
1721
+  (0.0ms) begin transaction
1722
+  (0.1ms) SAVEPOINT active_record_1
1723
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1724
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1725
+  (0.1ms) SAVEPOINT active_record_1
1726
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1727
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:03:01 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:03:01 UTC +00:00], ["user_id", 1]]
1728
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1729
+ Processing by FavoritesController#destroy as JS
1730
+ Parameters: {"model_id"=>"2", "id"=>"1"}
1731
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1732
+ Completed 500 Internal Server Error in 1ms
1733
+  (0.5ms) rollback transaction
1734
+  (0.1ms) begin transaction
1735
+  (0.2ms) SELECT COUNT(*) FROM "favorites"
1736
+  (0.0ms) SAVEPOINT active_record_1
1737
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1738
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1739
+ Processing by FavoritesController#create as JS
1740
+ Parameters: {"model_id"=>"2"}
1741
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1742
+  (0.0ms) SAVEPOINT active_record_1
1743
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1744
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:03:01 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:03:01 UTC +00:00], ["user_id", 1]]
1745
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1746
+ Completed 500 Internal Server Error in 12ms
1747
+  (0.6ms) rollback transaction
1748
+  (0.0ms) begin transaction
1749
+  (0.0ms) SAVEPOINT active_record_1
1750
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1751
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1752
+ Processing by FavoritesController#create as JS
1753
+ Parameters: {"model_id"=>"2"}
1754
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1755
+  (0.0ms) SAVEPOINT active_record_1
1756
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1757
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:03:01 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:03:01 UTC +00:00], ["user_id", 1]]
1758
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1759
+ Completed 500 Internal Server Error in 3ms
1760
+  (0.5ms) rollback transaction
1761
+  (0.1ms) begin transaction
1762
+  (0.0ms) SAVEPOINT active_record_1
1763
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1764
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1765
+ Processing by FavoritesController#create as JS
1766
+ Parameters: {"model_id"=>"2"}
1767
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1768
+  (0.0ms) SAVEPOINT active_record_1
1769
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1770
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:03:01 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:03:01 UTC +00:00], ["user_id", 1]]
1771
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1772
+ Completed 500 Internal Server Error in 3ms
1773
+  (0.6ms) rollback transaction
1774
+  (0.1ms) begin transaction
1775
+  (0.0ms) SAVEPOINT active_record_1
1776
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1777
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1778
+  (0.0ms) SAVEPOINT active_record_1
1779
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1780
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:03:01 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:03:01 UTC +00:00], ["user_id", 1]]
1781
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1782
+  (0.0ms) SELECT COUNT(*) FROM "favorites"
1783
+ Processing by FavoritesController#create as JS
1784
+ Parameters: {"model_id"=>"2"}
1785
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1786
+  (0.0ms) SAVEPOINT active_record_1
1787
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1788
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1789
+ Completed 422 Unprocessable Entity in 3ms
1790
+  (0.4ms) rollback transaction
1791
+  (0.0ms) begin transaction
1792
+  (0.0ms) SAVEPOINT active_record_1
1793
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1794
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1795
+ Processing by FavoritesController#create as JS
1796
+ Parameters: {"model_id"=>"2"}
1797
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1798
+  (0.0ms) SAVEPOINT active_record_1
1799
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1800
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:03:01 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:03:01 UTC +00:00], ["user_id", 1]]
1801
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1802
+ Completed 500 Internal Server Error in 3ms
1803
+  (0.4ms) rollback transaction
1804
+  (0.0ms) begin transaction
1805
+  (0.0ms) SAVEPOINT active_record_1
1806
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1807
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1808
+ Processing by FavoritesController#create as JS
1809
+ Parameters: {"model_id"=>"2"}
1810
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1811
+  (0.0ms) SAVEPOINT active_record_1
1812
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1813
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:03:01 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:03:01 UTC +00:00], ["user_id", 1]]
1814
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1815
+ Completed 500 Internal Server Error in 3ms
1816
+  (0.4ms) rollback transaction
1817
+  (0.1ms) begin transaction
1818
+  (0.0ms) SAVEPOINT active_record_1
1819
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1820
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1821
+ Processing by FavoritesController#create as JS
1822
+ Parameters: {"model_id"=>"2"}
1823
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1824
+  (0.0ms) SAVEPOINT active_record_1
1825
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1826
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:03:01 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:03:01 UTC +00:00], ["user_id", 1]]
1827
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1828
+ Completed 500 Internal Server Error in 3ms
1829
+  (0.5ms) rollback transaction
1830
+ Connecting to database specified by database.yml
1831
+  (1.3ms) select sqlite_version(*)
1832
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
1833
+  (0.0ms) begin transaction
1834
+ SQL (6.7ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1835
+  (0.1ms) commit transaction
1836
+  (0.1ms) begin transaction
1837
+  (0.0ms) SAVEPOINT active_record_1
1838
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1839
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1840
+  (0.1ms) SAVEPOINT active_record_1
1841
+ Favorite Exists (0.4ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1842
+ SQL (1.8ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:36:41 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:36:41 UTC +00:00], ["user_id", 1]]
1843
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1844
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
1845
+ Processing by FavoritesController#create as JS
1846
+ Parameters: {"model_id"=>"2"}
1847
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1848
+  (0.0ms) SAVEPOINT active_record_1
1849
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1850
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1851
+ Completed 422 Unprocessable Entity in 10ms
1852
+  (0.6ms) rollback transaction
1853
+ Connecting to database specified by database.yml
1854
+  (0.8ms) select sqlite_version(*)
1855
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
1856
+  (0.0ms) begin transaction
1857
+ SQL (2.9ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1858
+  (0.1ms) commit transaction
1859
+  (0.1ms) begin transaction
1860
+  (0.0ms) SAVEPOINT active_record_1
1861
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1862
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1863
+ Processing by FavoritesController#create as JS
1864
+ Parameters: {"model_id"=>"2"}
1865
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1866
+  (0.1ms) SAVEPOINT active_record_1
1867
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1868
+ SQL (1.0ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:36:51 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:36:51 UTC +00:00], ["user_id", 1]]
1869
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1870
+ Completed 500 Internal Server Error in 49ms
1871
+  (0.4ms) rollback transaction
1872
+ Connecting to database specified by database.yml
1873
+  (0.8ms) select sqlite_version(*)
1874
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
1875
+  (0.0ms) begin transaction
1876
+ SQL (3.0ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1877
+  (0.1ms) commit transaction
1878
+  (0.1ms) begin transaction
1879
+  (0.0ms) SAVEPOINT active_record_1
1880
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1881
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1882
+ Processing by FavoritesController#create as JS
1883
+ Parameters: {"model_id"=>"2"}
1884
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1885
+  (0.1ms) SAVEPOINT active_record_1
1886
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1887
+ SQL (1.1ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:43:49 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:43:49 UTC +00:00], ["user_id", 1]]
1888
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1889
+ Completed 500 Internal Server Error in 46ms
1890
+  (0.6ms) rollback transaction
1891
+ Connecting to database specified by database.yml
1892
+  (0.8ms) select sqlite_version(*)
1893
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
1894
+  (0.0ms) begin transaction
1895
+ SQL (2.9ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1896
+  (0.1ms) commit transaction
1897
+  (0.1ms) begin transaction
1898
+  (0.1ms) SAVEPOINT active_record_1
1899
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1900
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1901
+ Processing by FavoritesController#create as JS
1902
+ Parameters: {"model_id"=>"2"}
1903
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1904
+  (0.1ms) SAVEPOINT active_record_1
1905
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1906
+ SQL (1.1ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:44:18 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:44:18 UTC +00:00], ["user_id", 1]]
1907
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1908
+ Rendered text template (0.0ms)
1909
+ Completed 200 OK in 49ms (Views: 5.6ms | ActiveRecord: 1.8ms)
1910
+  (0.3ms) rollback transaction
1911
+ Connecting to database specified by database.yml
1912
+  (0.8ms) select sqlite_version(*)
1913
+  (0.5ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
1914
+  (0.0ms) begin transaction
1915
+ SQL (2.9ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1916
+  (0.1ms) commit transaction
1917
+  (0.1ms) begin transaction
1918
+  (0.1ms) rollback transaction
1919
+  (0.0ms) begin transaction
1920
+  (0.0ms) rollback transaction
1921
+  (0.0ms) begin transaction
1922
+  (0.0ms) rollback transaction
1923
+  (0.0ms) begin transaction
1924
+  (0.0ms) rollback transaction
1925
+  (0.0ms) begin transaction
1926
+  (0.0ms) rollback transaction
1927
+  (0.0ms) begin transaction
1928
+  (0.0ms) rollback transaction
1929
+  (0.0ms) begin transaction
1930
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1931
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1932
+  (0.0ms) rollback transaction
1933
+  (0.0ms) begin transaction
1934
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1935
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
1936
+  (0.0ms) rollback transaction
1937
+  (0.1ms) begin transaction
1938
+  (0.0ms) SAVEPOINT active_record_1
1939
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1940
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1941
+  (0.0ms) SAVEPOINT active_record_1
1942
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1943
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1944
+  (0.0ms) SAVEPOINT active_record_1
1945
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1946
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1947
+  (0.1ms) rollback transaction
1948
+  (0.1ms) begin transaction
1949
+  (0.0ms) SAVEPOINT active_record_1
1950
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1951
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1952
+  (0.0ms) SAVEPOINT active_record_1
1953
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1954
+ SQL (1.1ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:45:35 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:45:35 UTC +00:00], ["user_id", 1]]
1955
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1956
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
1957
+ Processing by FavoritesController#destroy as JS
1958
+ Parameters: {"model_id"=>"2", "id"=>"1"}
1959
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1960
+ Completed 500 Internal Server Error in 1ms
1961
+  (0.6ms) rollback transaction
1962
+  (0.0ms) begin transaction
1963
+  (0.0ms) SAVEPOINT active_record_1
1964
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1965
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1966
+  (0.0ms) SAVEPOINT active_record_1
1967
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1968
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:45:35 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:45:35 UTC +00:00], ["user_id", 1]]
1969
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1970
+ Processing by FavoritesController#destroy as JS
1971
+ Parameters: {"model_id"=>"2", "id"=>"1"}
1972
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1973
+ Completed 500 Internal Server Error in 1ms
1974
+  (0.4ms) rollback transaction
1975
+  (0.1ms) begin transaction
1976
+  (0.0ms) SAVEPOINT active_record_1
1977
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1978
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1979
+  (0.0ms) SAVEPOINT active_record_1
1980
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1981
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:45:35 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:45:35 UTC +00:00], ["user_id", 1]]
1982
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1983
+ Processing by FavoritesController#destroy as JS
1984
+ Parameters: {"model_id"=>"2", "id"=>"1"}
1985
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1986
+ Completed 500 Internal Server Error in 1ms
1987
+  (0.3ms) rollback transaction
1988
+  (0.0ms) begin transaction
1989
+  (0.1ms) SAVEPOINT active_record_1
1990
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1991
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1992
+  (0.0ms) SAVEPOINT active_record_1
1993
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
1994
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:45:35 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:45:35 UTC +00:00], ["user_id", 1]]
1995
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1996
+  (0.0ms) SAVEPOINT active_record_1
1997
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
1998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1999
+ Processing by FavoritesController#destroy as JS
2000
+ Parameters: {"model_id"=>"3", "id"=>"1"}
2001
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "3"]]
2002
+ Completed 500 Internal Server Error in 1ms
2003
+  (0.5ms) rollback transaction
2004
+  (0.0ms) begin transaction
2005
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
2006
+  (0.0ms) SAVEPOINT active_record_1
2007
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2008
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2009
+ Processing by FavoritesController#create as JS
2010
+ Parameters: {"model_id"=>"2"}
2011
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2012
+  (0.1ms) SAVEPOINT active_record_1
2013
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2014
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:45:35 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:45:35 UTC +00:00], ["user_id", 1]]
2015
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2016
+ Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.6ms)
2017
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
2018
+  (0.5ms) rollback transaction
2019
+  (0.0ms) begin transaction
2020
+  (0.0ms) SAVEPOINT active_record_1
2021
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2022
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2023
+ Processing by FavoritesController#create as JS
2024
+ Parameters: {"model_id"=>"2"}
2025
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2026
+  (0.0ms) SAVEPOINT active_record_1
2027
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2028
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:45:35 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:45:35 UTC +00:00], ["user_id", 1]]
2029
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2030
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
2031
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" ORDER BY "favorites"."id" DESC LIMIT 1
2032
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2033
+  (0.4ms) rollback transaction
2034
+  (0.0ms) begin transaction
2035
+  (0.0ms) SAVEPOINT active_record_1
2036
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2037
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2038
+ Processing by FavoritesController#create as JS
2039
+ Parameters: {"model_id"=>"2"}
2040
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2041
+  (0.0ms) SAVEPOINT active_record_1
2042
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2043
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:45:35 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:45:35 UTC +00:00], ["user_id", 1]]
2044
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2045
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
2046
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" ORDER BY "favorites"."id" DESC LIMIT 1
2047
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2048
+  (0.6ms) rollback transaction
2049
+  (0.0ms) begin transaction
2050
+  (0.0ms) SAVEPOINT active_record_1
2051
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2052
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2053
+  (0.0ms) SAVEPOINT active_record_1
2054
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2055
+ SQL (0.6ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:45:35 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:45:35 UTC +00:00], ["user_id", 1]]
2056
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2057
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
2058
+ Processing by FavoritesController#create as JS
2059
+ Parameters: {"model_id"=>"2"}
2060
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2061
+  (0.0ms) SAVEPOINT active_record_1
2062
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2063
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2064
+ Completed 422 Unprocessable Entity in 3ms
2065
+  (0.4ms) rollback transaction
2066
+  (0.0ms) begin transaction
2067
+  (0.1ms) SAVEPOINT active_record_1
2068
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2069
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2070
+ Processing by FavoritesController#create as JS
2071
+ Parameters: {"model_id"=>"2"}
2072
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2073
+  (0.1ms) SAVEPOINT active_record_1
2074
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2075
+ SQL (0.6ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:45:35 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:45:35 UTC +00:00], ["user_id", 1]]
2076
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2077
+ Completed 200 OK in 6ms (Views: 0.5ms | ActiveRecord: 1.0ms)
2078
+  (1.0ms) rollback transaction
2079
+  (0.1ms) begin transaction
2080
+  (0.1ms) SAVEPOINT active_record_1
2081
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2082
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2083
+ Processing by FavoritesController#create as JS
2084
+ Parameters: {"model_id"=>"2"}
2085
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2086
+  (0.1ms) SAVEPOINT active_record_1
2087
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2088
+ SQL (0.6ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:45:35 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:45:35 UTC +00:00], ["user_id", 1]]
2089
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2090
+ Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 1.0ms)
2091
+  (0.5ms) rollback transaction
2092
+ Connecting to database specified by database.yml
2093
+  (0.9ms) select sqlite_version(*)
2094
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
2095
+  (0.1ms) begin transaction
2096
+ SQL (2.9ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2097
+  (0.1ms) commit transaction
2098
+  (0.1ms) begin transaction
2099
+  (0.0ms) SAVEPOINT active_record_1
2100
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2101
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2102
+ Processing by FavoritesController#create as JS
2103
+ Parameters: {"model_id"=>"2"}
2104
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2105
+  (0.0ms) SAVEPOINT active_record_1
2106
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2107
+ SQL (0.9ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:49:13 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:49:13 UTC +00:00], ["user_id", 1]]
2108
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2109
+ Rendered text template (0.0ms)
2110
+ Completed 200 OK in 43ms (Views: 4.1ms | ActiveRecord: 1.6ms)
2111
+  (0.5ms) rollback transaction
2112
+  (0.0ms) begin transaction
2113
+  (0.0ms) SAVEPOINT active_record_1
2114
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2115
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2116
+ Processing by FavoritesController#create as JS
2117
+ Parameters: {"model_id"=>"2"}
2118
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2119
+  (0.0ms) SAVEPOINT active_record_1
2120
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2121
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:49:13 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:49:13 UTC +00:00], ["user_id", 1]]
2122
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2123
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
2124
+  (0.5ms) rollback transaction
2125
+  (0.0ms) begin transaction
2126
+  (0.0ms) SAVEPOINT active_record_1
2127
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2128
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2129
+  (0.0ms) SAVEPOINT active_record_1
2130
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2131
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:49:13 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:49:13 UTC +00:00], ["user_id", 1]]
2132
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2133
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
2134
+ Processing by FavoritesController#create as JS
2135
+ Parameters: {"model_id"=>"2"}
2136
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2137
+  (0.0ms) SAVEPOINT active_record_1
2138
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2139
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2140
+ Completed 422 Unprocessable Entity in 7ms
2141
+  (0.4ms) rollback transaction
2142
+  (0.1ms) begin transaction
2143
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
2144
+  (0.0ms) SAVEPOINT active_record_1
2145
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2147
+ Processing by FavoritesController#create as JS
2148
+ Parameters: {"model_id"=>"2"}
2149
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2150
+  (0.0ms) SAVEPOINT active_record_1
2151
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2152
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:49:13 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:49:13 UTC +00:00], ["user_id", 1]]
2153
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2154
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
2155
+  (0.0ms) SELECT COUNT(*) FROM "favorites"
2156
+  (0.4ms) rollback transaction
2157
+  (0.0ms) begin transaction
2158
+  (0.0ms) SAVEPOINT active_record_1
2159
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2160
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2161
+ Processing by FavoritesController#create as JS
2162
+ Parameters: {"model_id"=>"2"}
2163
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2164
+  (0.0ms) SAVEPOINT active_record_1
2165
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2166
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:49:13 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:49:13 UTC +00:00], ["user_id", 1]]
2167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2168
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.6ms)
2169
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" ORDER BY "favorites"."id" DESC LIMIT 1
2170
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2171
+  (0.6ms) rollback transaction
2172
+  (0.0ms) begin transaction
2173
+  (0.0ms) SAVEPOINT active_record_1
2174
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2175
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2176
+ Processing by FavoritesController#create as JS
2177
+ Parameters: {"model_id"=>"2"}
2178
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2179
+  (0.0ms) SAVEPOINT active_record_1
2180
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2181
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:49:13 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:49:13 UTC +00:00], ["user_id", 1]]
2182
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2183
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)
2184
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" ORDER BY "favorites"."id" DESC LIMIT 1
2185
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2186
+  (0.5ms) rollback transaction
2187
+  (0.1ms) begin transaction
2188
+  (0.0ms) SAVEPOINT active_record_1
2189
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2190
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2191
+  (0.0ms) SAVEPOINT active_record_1
2192
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2193
+ SQL (0.5ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:49:13 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:49:13 UTC +00:00], ["user_id", 1]]
2194
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2195
+ Processing by FavoritesController#destroy as JS
2196
+ Parameters: {"model_id"=>"2", "id"=>"1"}
2197
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2198
+ Completed 500 Internal Server Error in 1ms
2199
+  (0.4ms) rollback transaction
2200
+  (0.1ms) begin transaction
2201
+  (0.0ms) SAVEPOINT active_record_1
2202
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2203
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2204
+  (0.0ms) SAVEPOINT active_record_1
2205
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2206
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:49:13 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:49:13 UTC +00:00], ["user_id", 1]]
2207
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2208
+ Processing by FavoritesController#destroy as JS
2209
+ Parameters: {"model_id"=>"2", "id"=>"1"}
2210
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2211
+ Completed 500 Internal Server Error in 1ms
2212
+  (0.6ms) rollback transaction
2213
+  (0.0ms) begin transaction
2214
+  (0.0ms) SAVEPOINT active_record_1
2215
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2216
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2217
+  (0.0ms) SAVEPOINT active_record_1
2218
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2219
+ SQL (0.5ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:49:13 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:49:13 UTC +00:00], ["user_id", 1]]
2220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2221
+  (0.0ms) SAVEPOINT active_record_1
2222
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2224
+ Processing by FavoritesController#destroy as JS
2225
+ Parameters: {"model_id"=>"3", "id"=>"1"}
2226
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "3"]]
2227
+ Completed 500 Internal Server Error in 1ms
2228
+  (0.3ms) rollback transaction
2229
+  (0.0ms) begin transaction
2230
+  (0.0ms) SAVEPOINT active_record_1
2231
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2232
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2233
+  (0.0ms) SAVEPOINT active_record_1
2234
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2235
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2236
+  (0.0ms) SAVEPOINT active_record_1
2237
+ SQL (0.0ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2238
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2239
+  (0.1ms) rollback transaction
2240
+  (0.0ms) begin transaction
2241
+  (0.0ms) SAVEPOINT active_record_1
2242
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2243
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2244
+  (0.0ms) SAVEPOINT active_record_1
2245
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2246
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:49:13 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:49:13 UTC +00:00], ["user_id", 1]]
2247
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2248
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
2249
+ Processing by FavoritesController#destroy as JS
2250
+ Parameters: {"model_id"=>"2", "id"=>"1"}
2251
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2252
+ Completed 500 Internal Server Error in 1ms
2253
+  (0.5ms) rollback transaction
2254
+ Connecting to database specified by database.yml
2255
+  (0.8ms) select sqlite_version(*)
2256
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
2257
+  (0.0ms) begin transaction
2258
+ SQL (2.9ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2259
+  (0.1ms) commit transaction
2260
+  (0.1ms) begin transaction
2261
+  (0.0ms) SAVEPOINT active_record_1
2262
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2264
+  (0.1ms) SAVEPOINT active_record_1
2265
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2266
+ SQL (1.0ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["user_id", 1]]
2267
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2268
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
2269
+ Processing by FavoritesController#create as JS
2270
+ Parameters: {"model_id"=>"2"}
2271
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2272
+  (0.0ms) SAVEPOINT active_record_1
2273
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2274
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2275
+ Completed 422 Unprocessable Entity in 8ms
2276
+  (0.4ms) rollback transaction
2277
+  (0.0ms) begin transaction
2278
+  (0.0ms) SAVEPOINT active_record_1
2279
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2280
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2281
+ Processing by FavoritesController#create as JS
2282
+ Parameters: {"model_id"=>"2"}
2283
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2284
+  (0.0ms) SAVEPOINT active_record_1
2285
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2286
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["user_id", 1]]
2287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2288
+ Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.6ms)
2289
+  (0.4ms) rollback transaction
2290
+  (0.1ms) begin transaction
2291
+  (0.1ms) SAVEPOINT active_record_1
2292
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2293
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2294
+ Processing by FavoritesController#create as JS
2295
+ Parameters: {"model_id"=>"2"}
2296
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2297
+  (0.1ms) SAVEPOINT active_record_1
2298
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2299
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["user_id", 1]]
2300
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2301
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
2302
+  (0.5ms) rollback transaction
2303
+  (0.0ms) begin transaction
2304
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
2305
+  (0.0ms) SAVEPOINT active_record_1
2306
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2307
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2308
+ Processing by FavoritesController#create as JS
2309
+ Parameters: {"model_id"=>"2"}
2310
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2311
+  (0.0ms) SAVEPOINT active_record_1
2312
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2313
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["user_id", 1]]
2314
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2315
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
2316
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
2317
+  (0.5ms) rollback transaction
2318
+  (0.0ms) begin transaction
2319
+  (0.0ms) SAVEPOINT active_record_1
2320
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2321
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2322
+ Processing by FavoritesController#create as JS
2323
+ Parameters: {"model_id"=>"2"}
2324
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2325
+  (0.0ms) SAVEPOINT active_record_1
2326
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2327
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["user_id", 1]]
2328
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2329
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
2330
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" ORDER BY "favorites"."id" DESC LIMIT 1
2331
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2332
+  (0.5ms) rollback transaction
2333
+  (0.0ms) begin transaction
2334
+  (0.0ms) SAVEPOINT active_record_1
2335
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2336
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2337
+ Processing by FavoritesController#create as JS
2338
+ Parameters: {"model_id"=>"2"}
2339
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2340
+  (0.0ms) SAVEPOINT active_record_1
2341
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2342
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["user_id", 1]]
2343
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2344
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
2345
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" ORDER BY "favorites"."id" DESC LIMIT 1
2346
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2347
+  (0.6ms) rollback transaction
2348
+  (0.1ms) begin transaction
2349
+  (0.1ms) SAVEPOINT active_record_1
2350
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2351
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2352
+  (0.0ms) SAVEPOINT active_record_1
2353
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2354
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2355
+  (0.0ms) SAVEPOINT active_record_1
2356
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 3 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2357
+ SQL (0.8ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["user_id", 3]]
2358
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2359
+ Processing by FavoritesController#destroy as JS
2360
+ Parameters: {"model_id"=>"2", "id"=>"1"}
2361
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2362
+ Completed 500 Internal Server Error in 1ms
2363
+  (0.4ms) rollback transaction
2364
+  (0.0ms) begin transaction
2365
+  (0.0ms) SAVEPOINT active_record_1
2366
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2367
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2368
+  (0.1ms) SAVEPOINT active_record_1
2369
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2370
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["user_id", 1]]
2371
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2372
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
2373
+ Processing by FavoritesController#destroy as JS
2374
+ Parameters: {"model_id"=>"2", "id"=>"1"}
2375
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2376
+ Completed 500 Internal Server Error in 1ms
2377
+  (0.5ms) rollback transaction
2378
+  (0.1ms) begin transaction
2379
+  (0.0ms) SAVEPOINT active_record_1
2380
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2381
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2382
+  (0.0ms) SAVEPOINT active_record_1
2383
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2384
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["user_id", 1]]
2385
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2386
+ Processing by FavoritesController#destroy as JS
2387
+ Parameters: {"model_id"=>"2", "id"=>"1"}
2388
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2389
+ Completed 500 Internal Server Error in 1ms
2390
+  (0.4ms) rollback transaction
2391
+  (0.1ms) begin transaction
2392
+  (0.1ms) SAVEPOINT active_record_1
2393
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2395
+  (0.0ms) SAVEPOINT active_record_1
2396
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2397
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["user_id", 1]]
2398
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2399
+ Processing by FavoritesController#destroy as JS
2400
+ Parameters: {"model_id"=>"2", "id"=>"1"}
2401
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2402
+ Completed 500 Internal Server Error in 1ms
2403
+  (0.6ms) rollback transaction
2404
+  (0.0ms) begin transaction
2405
+  (0.0ms) SAVEPOINT active_record_1
2406
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2407
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2408
+  (0.1ms) SAVEPOINT active_record_1
2409
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2410
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:49:37 UTC +00:00], ["user_id", 1]]
2411
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2412
+  (0.0ms) SAVEPOINT active_record_1
2413
+ SQL (0.0ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2414
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2415
+ Processing by FavoritesController#destroy as JS
2416
+ Parameters: {"model_id"=>"3", "id"=>"1"}
2417
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "3"]]
2418
+ Completed 500 Internal Server Error in 1ms
2419
+  (0.6ms) rollback transaction
2420
+ Connecting to database specified by database.yml
2421
+  (0.8ms) select sqlite_version(*)
2422
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
2423
+  (0.0ms) begin transaction
2424
+ SQL (3.0ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2425
+  (0.1ms) commit transaction
2426
+  (0.1ms) begin transaction
2427
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
2428
+  (0.0ms) SAVEPOINT active_record_1
2429
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2430
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2431
+ Processing by FavoritesController#create as JS
2432
+ Parameters: {"model_id"=>"2"}
2433
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2434
+  (0.0ms) SAVEPOINT active_record_1
2435
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2436
+ SQL (1.0ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["user_id", 1]]
2437
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2438
+ Rendered text template (0.0ms)
2439
+ Completed 200 OK in 46ms (Views: 4.2ms | ActiveRecord: 1.3ms)
2440
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
2441
+  (0.4ms) rollback transaction
2442
+  (0.0ms) begin transaction
2443
+  (0.0ms) SAVEPOINT active_record_1
2444
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2445
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2446
+ Processing by FavoritesController#create as JS
2447
+ Parameters: {"model_id"=>"2"}
2448
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2449
+  (0.0ms) SAVEPOINT active_record_1
2450
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2451
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["user_id", 1]]
2452
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2453
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
2454
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" ORDER BY "favorites"."id" DESC LIMIT 1
2455
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2456
+  (0.6ms) rollback transaction
2457
+  (0.0ms) begin transaction
2458
+  (0.0ms) SAVEPOINT active_record_1
2459
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2460
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2461
+ Processing by FavoritesController#create as JS
2462
+ Parameters: {"model_id"=>"2"}
2463
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2464
+  (0.0ms) SAVEPOINT active_record_1
2465
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2466
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["user_id", 1]]
2467
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2468
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.7ms)
2469
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" ORDER BY "favorites"."id" DESC LIMIT 1
2470
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2471
+  (0.6ms) rollback transaction
2472
+  (0.0ms) begin transaction
2473
+  (0.0ms) SAVEPOINT active_record_1
2474
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2475
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2476
+  (0.0ms) SAVEPOINT active_record_1
2477
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2478
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["user_id", 1]]
2479
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2480
+  (0.0ms) SELECT COUNT(*) FROM "favorites"
2481
+ Processing by FavoritesController#create as JS
2482
+ Parameters: {"model_id"=>"2"}
2483
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2484
+  (0.0ms) SAVEPOINT active_record_1
2485
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2486
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2487
+ Completed 422 Unprocessable Entity in 6ms
2488
+  (0.5ms) rollback transaction
2489
+  (0.0ms) begin transaction
2490
+  (0.0ms) SAVEPOINT active_record_1
2491
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2492
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2493
+ Processing by FavoritesController#create as JS
2494
+ Parameters: {"model_id"=>"2"}
2495
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2496
+  (0.0ms) SAVEPOINT active_record_1
2497
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2498
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["user_id", 1]]
2499
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2500
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
2501
+  (0.6ms) rollback transaction
2502
+  (0.0ms) begin transaction
2503
+  (0.0ms) SAVEPOINT active_record_1
2504
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2505
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2506
+ Processing by FavoritesController#create as JS
2507
+ Parameters: {"model_id"=>"2"}
2508
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2509
+  (0.0ms) SAVEPOINT active_record_1
2510
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2511
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["user_id", 1]]
2512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2513
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.7ms)
2514
+  (0.4ms) rollback transaction
2515
+  (0.0ms) begin transaction
2516
+  (0.1ms) SAVEPOINT active_record_1
2517
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2519
+  (0.0ms) SAVEPOINT active_record_1
2520
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2521
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["user_id", 1]]
2522
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2523
+  (0.0ms) SAVEPOINT active_record_1
2524
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2525
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2526
+ Processing by FavoritesController#destroy as JS
2527
+ Parameters: {"model_id"=>"3", "id"=>"1"}
2528
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "3"]]
2529
+ Favorite Load (0.2ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
2530
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2531
+ Completed 404 Not Found in 9ms
2532
+  (0.6ms) rollback transaction
2533
+  (0.0ms) begin transaction
2534
+  (0.0ms) SAVEPOINT active_record_1
2535
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2536
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2537
+  (0.0ms) SAVEPOINT active_record_1
2538
+ SQL (0.0ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2539
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2540
+  (0.0ms) SAVEPOINT active_record_1
2541
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 3 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2542
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["user_id", 3]]
2543
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2544
+ Processing by FavoritesController#destroy as JS
2545
+ Parameters: {"model_id"=>"2", "id"=>"1"}
2546
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2547
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
2548
+ Completed 404 Not Found in 1ms
2549
+  (0.5ms) rollback transaction
2550
+  (0.0ms) begin transaction
2551
+  (0.1ms) SAVEPOINT active_record_1
2552
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2553
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2554
+  (0.0ms) SAVEPOINT active_record_1
2555
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2556
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["user_id", 1]]
2557
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2558
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
2559
+ Processing by FavoritesController#destroy as JS
2560
+ Parameters: {"model_id"=>"2", "id"=>"1"}
2561
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2562
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
2563
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2564
+  (0.0ms) SAVEPOINT active_record_1
2565
+ SQL (0.3ms) DELETE FROM "favorites" WHERE "favorites"."id" = ? [["id", 1]]
2566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2567
+ Completed 500 Internal Server Error in 5ms
2568
+  (0.6ms) rollback transaction
2569
+  (0.1ms) begin transaction
2570
+  (0.0ms) SAVEPOINT active_record_1
2571
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2573
+  (0.0ms) SAVEPOINT active_record_1
2574
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2575
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["user_id", 1]]
2576
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2577
+ Processing by FavoritesController#destroy as JS
2578
+ Parameters: {"model_id"=>"2", "id"=>"1"}
2579
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2580
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
2581
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2582
+  (0.0ms) SAVEPOINT active_record_1
2583
+ SQL (0.3ms) DELETE FROM "favorites" WHERE "favorites"."id" = ? [["id", 1]]
2584
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2585
+ Completed 500 Internal Server Error in 3ms
2586
+  (1.0ms) rollback transaction
2587
+  (0.1ms) begin transaction
2588
+  (0.1ms) SAVEPOINT active_record_1
2589
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2590
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2591
+  (0.1ms) SAVEPOINT active_record_1
2592
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2593
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:28 UTC +00:00], ["user_id", 1]]
2594
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2595
+ Processing by FavoritesController#destroy as JS
2596
+ Parameters: {"model_id"=>"2", "id"=>"1"}
2597
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2598
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
2599
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2600
+  (0.0ms) SAVEPOINT active_record_1
2601
+ SQL (0.2ms) DELETE FROM "favorites" WHERE "favorites"."id" = ? [["id", 1]]
2602
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2603
+ Completed 500 Internal Server Error in 2ms
2604
+  (0.5ms) rollback transaction
2605
+  (0.0ms) begin transaction
2606
+  (0.0ms) rollback transaction
2607
+  (0.0ms) begin transaction
2608
+  (0.0ms) rollback transaction
2609
+  (0.0ms) begin transaction
2610
+  (0.0ms) rollback transaction
2611
+  (0.0ms) begin transaction
2612
+  (0.0ms) rollback transaction
2613
+  (0.0ms) begin transaction
2614
+  (0.0ms) rollback transaction
2615
+  (0.1ms) begin transaction
2616
+  (0.0ms) rollback transaction
2617
+  (0.0ms) begin transaction
2618
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
2619
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
2620
+  (0.0ms) rollback transaction
2621
+  (0.1ms) begin transaction
2622
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
2623
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
2624
+  (0.0ms) rollback transaction
2625
+ Connecting to database specified by database.yml
2626
+  (0.8ms) select sqlite_version(*)
2627
+  (0.5ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
2628
+  (0.0ms) begin transaction
2629
+ SQL (2.9ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2630
+  (0.1ms) commit transaction
2631
+  (0.1ms) begin transaction
2632
+  (0.1ms) rollback transaction
2633
+  (0.1ms) begin transaction
2634
+  (0.0ms) rollback transaction
2635
+  (0.0ms) begin transaction
2636
+  (0.0ms) rollback transaction
2637
+  (0.0ms) begin transaction
2638
+  (0.0ms) rollback transaction
2639
+  (0.0ms) begin transaction
2640
+  (0.0ms) rollback transaction
2641
+  (0.0ms) begin transaction
2642
+  (0.0ms) rollback transaction
2643
+  (0.0ms) begin transaction
2644
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
2645
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
2646
+  (0.0ms) rollback transaction
2647
+  (0.0ms) begin transaction
2648
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
2649
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
2650
+  (0.0ms) rollback transaction
2651
+  (0.0ms) begin transaction
2652
+  (0.1ms) SAVEPOINT active_record_1
2653
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2654
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2655
+  (0.0ms) SAVEPOINT active_record_1
2656
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2657
+ SQL (1.6ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:43 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:43 UTC +00:00], ["user_id", 1]]
2658
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2659
+ Processing by FavoritesController#destroy as JS
2660
+ Parameters: {"model_id"=>"2", "id"=>"1"}
2661
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2662
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
2663
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2664
+  (0.0ms) SAVEPOINT active_record_1
2665
+ SQL (0.3ms) DELETE FROM "favorites" WHERE "favorites"."id" = ? [["id", 1]]
2666
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2667
+ Rendered text template (0.0ms)
2668
+ Completed 200 OK in 37ms (Views: 25.4ms | ActiveRecord: 0.7ms)
2669
+  (0.5ms) rollback transaction
2670
+  (0.1ms) begin transaction
2671
+  (0.0ms) SAVEPOINT active_record_1
2672
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2673
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2674
+  (0.0ms) SAVEPOINT active_record_1
2675
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2676
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:44 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:44 UTC +00:00], ["user_id", 1]]
2677
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2678
+ Processing by FavoritesController#destroy as JS
2679
+ Parameters: {"model_id"=>"2", "id"=>"1"}
2680
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2681
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
2682
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2683
+  (0.0ms) SAVEPOINT active_record_1
2684
+ SQL (0.2ms) DELETE FROM "favorites" WHERE "favorites"."id" = ? [["id", 1]]
2685
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2686
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)
2687
+  (0.4ms) rollback transaction
2688
+  (0.0ms) begin transaction
2689
+  (0.1ms) SAVEPOINT active_record_1
2690
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2691
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2692
+  (0.0ms) SAVEPOINT active_record_1
2693
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2694
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:44 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:44 UTC +00:00], ["user_id", 1]]
2695
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2696
+  (0.0ms) SAVEPOINT active_record_1
2697
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2698
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2699
+ Processing by FavoritesController#destroy as JS
2700
+ Parameters: {"model_id"=>"3", "id"=>"1"}
2701
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "3"]]
2702
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
2703
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2704
+ Completed 404 Not Found in 2ms
2705
+  (0.5ms) rollback transaction
2706
+  (0.0ms) begin transaction
2707
+  (0.0ms) SAVEPOINT active_record_1
2708
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2709
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2710
+  (0.0ms) SAVEPOINT active_record_1
2711
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2712
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:44 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:44 UTC +00:00], ["user_id", 1]]
2713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2714
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
2715
+ Processing by FavoritesController#destroy as JS
2716
+ Parameters: {"model_id"=>"2", "id"=>"1"}
2717
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2718
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
2719
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2720
+  (0.0ms) SAVEPOINT active_record_1
2721
+ SQL (0.3ms) DELETE FROM "favorites" WHERE "favorites"."id" = ? [["id", 1]]
2722
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2723
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
2724
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
2725
+  (0.5ms) rollback transaction
2726
+  (0.0ms) begin transaction
2727
+  (0.0ms) SAVEPOINT active_record_1
2728
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2729
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2730
+  (0.0ms) SAVEPOINT active_record_1
2731
+ SQL (0.0ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2732
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2733
+  (0.0ms) SAVEPOINT active_record_1
2734
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 3 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2735
+ SQL (0.6ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:44 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:44 UTC +00:00], ["user_id", 3]]
2736
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2737
+ Processing by FavoritesController#destroy as JS
2738
+ Parameters: {"model_id"=>"2", "id"=>"1"}
2739
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2740
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
2741
+ Completed 404 Not Found in 1ms
2742
+  (0.5ms) rollback transaction
2743
+  (0.0ms) begin transaction
2744
+  (0.0ms) SAVEPOINT active_record_1
2745
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2746
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2747
+ Processing by FavoritesController#create as JS
2748
+ Parameters: {"model_id"=>"2"}
2749
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2750
+  (0.1ms) SAVEPOINT active_record_1
2751
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2752
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:44 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:44 UTC +00:00], ["user_id", 1]]
2753
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2754
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
2755
+  (0.5ms) rollback transaction
2756
+  (0.0ms) begin transaction
2757
+  (0.1ms) SAVEPOINT active_record_1
2758
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2759
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2760
+ Processing by FavoritesController#create as JS
2761
+ Parameters: {"model_id"=>"2"}
2762
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2763
+  (0.0ms) SAVEPOINT active_record_1
2764
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2765
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:44 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:44 UTC +00:00], ["user_id", 1]]
2766
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2767
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
2768
+  (0.5ms) rollback transaction
2769
+  (0.0ms) begin transaction
2770
+  (0.1ms) SAVEPOINT active_record_1
2771
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2773
+  (0.0ms) SAVEPOINT active_record_1
2774
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2775
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:44 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:44 UTC +00:00], ["user_id", 1]]
2776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2777
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
2778
+ Processing by FavoritesController#create as JS
2779
+ Parameters: {"model_id"=>"2"}
2780
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2781
+  (0.0ms) SAVEPOINT active_record_1
2782
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2783
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2784
+ Completed 422 Unprocessable Entity in 3ms
2785
+  (0.6ms) rollback transaction
2786
+  (0.1ms) begin transaction
2787
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
2788
+  (0.0ms) SAVEPOINT active_record_1
2789
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2790
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2791
+ Processing by FavoritesController#create as JS
2792
+ Parameters: {"model_id"=>"2"}
2793
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2794
+  (0.0ms) SAVEPOINT active_record_1
2795
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2796
+ SQL (0.5ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:44 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:44 UTC +00:00], ["user_id", 1]]
2797
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2798
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.7ms)
2799
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
2800
+  (0.6ms) rollback transaction
2801
+  (0.0ms) begin transaction
2802
+  (0.0ms) SAVEPOINT active_record_1
2803
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2804
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2805
+ Processing by FavoritesController#create as JS
2806
+ Parameters: {"model_id"=>"2"}
2807
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2808
+  (0.0ms) SAVEPOINT active_record_1
2809
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2810
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:44 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:44 UTC +00:00], ["user_id", 1]]
2811
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2812
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
2813
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" ORDER BY "favorites"."id" DESC LIMIT 1
2814
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2815
+  (0.5ms) rollback transaction
2816
+  (0.1ms) begin transaction
2817
+  (0.0ms) SAVEPOINT active_record_1
2818
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2819
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2820
+ Processing by FavoritesController#create as JS
2821
+ Parameters: {"model_id"=>"2"}
2822
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2823
+  (0.0ms) SAVEPOINT active_record_1
2824
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2825
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:51:44 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:51:44 UTC +00:00], ["user_id", 1]]
2826
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2827
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
2828
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" ORDER BY "favorites"."id" DESC LIMIT 1
2829
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2830
+  (0.5ms) rollback transaction
2831
+ Connecting to database specified by database.yml
2832
+  (1.1ms) select sqlite_version(*)
2833
+  (0.5ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
2834
+  (0.0ms) begin transaction
2835
+ SQL (3.0ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2836
+  (0.1ms) commit transaction
2837
+  (0.1ms) begin transaction
2838
+  (0.0ms) SAVEPOINT active_record_1
2839
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2840
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2841
+ Processing by FavoritesController#create as JS
2842
+ Parameters: {"model_id"=>"2"}
2843
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2844
+  (0.1ms) SAVEPOINT active_record_1
2845
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2846
+ SQL (1.0ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:54:32 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:54:32 UTC +00:00], ["user_id", 1]]
2847
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2848
+ Rendered text template (0.0ms)
2849
+ Completed 200 OK in 47ms (Views: 4.1ms | ActiveRecord: 1.6ms)
2850
+  (2.6ms) rollback transaction
2851
+  (0.1ms) begin transaction
2852
+  (0.0ms) SAVEPOINT active_record_1
2853
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2855
+ Processing by FavoritesController#create as JS
2856
+ Parameters: {"model_id"=>"2"}
2857
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2858
+  (0.0ms) SAVEPOINT active_record_1
2859
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2860
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:54:33 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:54:33 UTC +00:00], ["user_id", 1]]
2861
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2862
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
2863
+  (0.4ms) rollback transaction
2864
+  (0.0ms) begin transaction
2865
+  (0.0ms) SAVEPOINT active_record_1
2866
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2867
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2868
+  (0.0ms) SAVEPOINT active_record_1
2869
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2870
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:54:33 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:54:33 UTC +00:00], ["user_id", 1]]
2871
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2872
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
2873
+ Processing by FavoritesController#create as JS
2874
+ Parameters: {"model_id"=>"2"}
2875
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2876
+  (0.0ms) SAVEPOINT active_record_1
2877
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2878
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2879
+ Completed 422 Unprocessable Entity in 7ms
2880
+  (0.6ms) rollback transaction
2881
+  (0.0ms) begin transaction
2882
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
2883
+  (0.0ms) SAVEPOINT active_record_1
2884
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2885
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2886
+ Processing by FavoritesController#create as JS
2887
+ Parameters: {"model_id"=>"2"}
2888
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2889
+  (0.0ms) SAVEPOINT active_record_1
2890
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2891
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:54:33 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:54:33 UTC +00:00], ["user_id", 1]]
2892
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2893
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
2894
+  (0.0ms) SELECT COUNT(*) FROM "favorites"
2895
+  (0.6ms) rollback transaction
2896
+  (0.0ms) begin transaction
2897
+  (0.0ms) SAVEPOINT active_record_1
2898
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2899
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2900
+ Processing by FavoritesController#create as JS
2901
+ Parameters: {"model_id"=>"2"}
2902
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2903
+  (0.0ms) SAVEPOINT active_record_1
2904
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2905
+ SQL (0.5ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:54:33 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:54:33 UTC +00:00], ["user_id", 1]]
2906
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2907
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.9ms)
2908
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" ORDER BY "favorites"."id" DESC LIMIT 1
2909
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2910
+  (0.4ms) rollback transaction
2911
+  (0.1ms) begin transaction
2912
+  (0.0ms) SAVEPOINT active_record_1
2913
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2914
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2915
+ Processing by FavoritesController#create as JS
2916
+ Parameters: {"model_id"=>"2"}
2917
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2918
+  (0.0ms) SAVEPOINT active_record_1
2919
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2920
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:54:33 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:54:33 UTC +00:00], ["user_id", 1]]
2921
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2922
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms)
2923
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" ORDER BY "favorites"."id" DESC LIMIT 1
2924
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2925
+  (0.5ms) rollback transaction
2926
+  (0.1ms) begin transaction
2927
+  (0.0ms) SAVEPOINT active_record_1
2928
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2929
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2930
+  (0.0ms) SAVEPOINT active_record_1
2931
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2932
+ SQL (0.5ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:54:33 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:54:33 UTC +00:00], ["user_id", 1]]
2933
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2934
+ Processing by FavoritesController#destroy as JS
2935
+ Parameters: {"model_id"=>"2", "id"=>"1"}
2936
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2937
+ Favorite Load (0.2ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1
2938
+ Favorite Load (0.2ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", 2]]
2939
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
2940
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2941
+  (0.0ms) SAVEPOINT active_record_1
2942
+ SQL (0.3ms) DELETE FROM "favorites" WHERE "favorites"."id" = ? [["id", 1]]
2943
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2944
+ Completed 200 OK in 26703ms (Views: 0.3ms | ActiveRecord: 1.1ms)
2945
+  (0.2ms) rollback transaction
2946
+  (0.0ms) begin transaction
2947
+  (0.0ms) SAVEPOINT active_record_1
2948
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2949
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2950
+  (0.0ms) SAVEPOINT active_record_1
2951
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2952
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:54:59 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:54:59 UTC +00:00], ["user_id", 1]]
2953
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2954
+ Processing by FavoritesController#destroy as JS
2955
+ Parameters: {"model_id"=>"2", "id"=>"1"}
2956
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2957
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
2958
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2959
+  (0.0ms) SAVEPOINT active_record_1
2960
+ SQL (0.3ms) DELETE FROM "favorites" WHERE "favorites"."id" = ? [["id", 1]]
2961
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2962
+ Completed 200 OK in 1352ms (Views: 0.3ms | ActiveRecord: 0.7ms)
2963
+  (0.6ms) rollback transaction
2964
+  (0.0ms) begin transaction
2965
+  (0.0ms) SAVEPOINT active_record_1
2966
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2967
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2968
+  (0.0ms) SAVEPOINT active_record_1
2969
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2970
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:55:01 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:55:01 UTC +00:00], ["user_id", 1]]
2971
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2972
+  (0.0ms) SAVEPOINT active_record_1
2973
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2974
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2975
+ Processing by FavoritesController#destroy as JS
2976
+ Parameters: {"model_id"=>"3", "id"=>"1"}
2977
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "3"]]
2978
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
2979
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2980
+ Completed 404 Not Found in 2834ms
2981
+  (0.4ms) rollback transaction
2982
+  (0.0ms) begin transaction
2983
+  (0.0ms) SAVEPOINT active_record_1
2984
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
2985
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2986
+  (0.0ms) SAVEPOINT active_record_1
2987
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
2988
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:55:03 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:55:03 UTC +00:00], ["user_id", 1]]
2989
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2990
+  (0.0ms) SELECT COUNT(*) FROM "favorites" 
2991
+ Processing by FavoritesController#destroy as JS
2992
+ Parameters: {"model_id"=>"2", "id"=>"1"}
2993
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2994
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
2995
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2996
+  (0.0ms) SAVEPOINT active_record_1
2997
+ SQL (0.3ms) DELETE FROM "favorites" WHERE "favorites"."id" = ? [["id", 1]]
2998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2999
+ Completed 200 OK in 1452ms (Views: 0.3ms | ActiveRecord: 0.6ms)
3000
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
3001
+  (0.2ms) rollback transaction
3002
+  (0.0ms) begin transaction
3003
+  (0.0ms) SAVEPOINT active_record_1
3004
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3005
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3006
+  (0.0ms) SAVEPOINT active_record_1
3007
+ SQL (0.0ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3008
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3009
+  (0.0ms) SAVEPOINT active_record_1
3010
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 3 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3011
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:55:05 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:55:05 UTC +00:00], ["user_id", 3]]
3012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3013
+ Processing by FavoritesController#destroy as JS
3014
+ Parameters: {"model_id"=>"2", "id"=>"1"}
3015
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3016
+ Connecting to database specified by database.yml
3017
+  (0.9ms) select sqlite_version(*)
3018
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
3019
+  (0.0ms) begin transaction
3020
+ SQL (2.9ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3021
+  (0.1ms) commit transaction
3022
+  (0.1ms) begin transaction
3023
+  (0.0ms) SAVEPOINT active_record_1
3024
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3025
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3026
+ Processing by FavoritesController#create as JS
3027
+ Parameters: {"model_id"=>"2"}
3028
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3029
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", 2]]
3030
+ Completed 404 Not Found in 30ms
3031
+  (0.1ms) rollback transaction
3032
+  (0.0ms) begin transaction
3033
+  (0.0ms) SAVEPOINT active_record_1
3034
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3035
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3036
+ Processing by FavoritesController#create as JS
3037
+ Parameters: {"model_id"=>"2"}
3038
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3039
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", 2]]
3040
+ Completed 404 Not Found in 1ms
3041
+  (0.1ms) rollback transaction
3042
+  (0.0ms) begin transaction
3043
+  (0.0ms) SAVEPOINT active_record_1
3044
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3045
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3046
+  (0.1ms) SAVEPOINT active_record_1
3047
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3048
+ SQL (0.8ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:56:51 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:56:51 UTC +00:00], ["user_id", 1]]
3049
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3050
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
3051
+ Processing by FavoritesController#create as JS
3052
+ Parameters: {"model_id"=>"2"}
3053
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3054
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", 2]]
3055
+ Completed 404 Not Found in 1ms
3056
+  (2.9ms) rollback transaction
3057
+  (0.1ms) begin transaction
3058
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
3059
+  (0.1ms) SAVEPOINT active_record_1
3060
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3061
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3062
+ Processing by FavoritesController#create as JS
3063
+ Parameters: {"model_id"=>"2"}
3064
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3065
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", 2]]
3066
+ Completed 404 Not Found in 1ms
3067
+  (0.1ms) rollback transaction
3068
+  (0.0ms) begin transaction
3069
+  (0.0ms) SAVEPOINT active_record_1
3070
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3071
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3072
+ Processing by FavoritesController#create as JS
3073
+ Parameters: {"model_id"=>"2"}
3074
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3075
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", 2]]
3076
+ Completed 404 Not Found in 1ms
3077
+  (0.1ms) rollback transaction
3078
+  (0.1ms) begin transaction
3079
+  (0.0ms) SAVEPOINT active_record_1
3080
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3081
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3082
+ Processing by FavoritesController#create as JS
3083
+ Parameters: {"model_id"=>"2"}
3084
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3085
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", 2]]
3086
+ Completed 404 Not Found in 1ms
3087
+  (0.1ms) rollback transaction
3088
+  (0.0ms) begin transaction
3089
+  (0.0ms) SAVEPOINT active_record_1
3090
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3091
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3092
+  (0.0ms) SAVEPOINT active_record_1
3093
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3094
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:56:51 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:56:51 UTC +00:00], ["user_id", 1]]
3095
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3096
+ Processing by FavoritesController#destroy as JS
3097
+ Parameters: {"model_id"=>"2", "id"=>"1"}
3098
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3099
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
3100
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3101
+  (0.0ms) SAVEPOINT active_record_1
3102
+ SQL (0.4ms) DELETE FROM "favorites" WHERE "favorites"."id" = ? [["id", 1]]
3103
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3104
+ Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 0.6ms)
3105
+  (0.5ms) rollback transaction
3106
+  (0.1ms) begin transaction
3107
+  (0.1ms) SAVEPOINT active_record_1
3108
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3110
+  (0.0ms) SAVEPOINT active_record_1
3111
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3112
+ SQL (0.6ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:56:51 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:56:51 UTC +00:00], ["user_id", 1]]
3113
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3114
+ Processing by FavoritesController#destroy as JS
3115
+ Parameters: {"model_id"=>"2", "id"=>"1"}
3116
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3117
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
3118
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3119
+  (0.0ms) SAVEPOINT active_record_1
3120
+ SQL (0.2ms) DELETE FROM "favorites" WHERE "favorites"."id" = ? [["id", 1]]
3121
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3122
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.5ms)
3123
+  (0.4ms) rollback transaction
3124
+  (0.1ms) begin transaction
3125
+  (0.0ms) SAVEPOINT active_record_1
3126
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3127
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3128
+  (0.0ms) SAVEPOINT active_record_1
3129
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3130
+ SQL (0.5ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:56:51 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:56:51 UTC +00:00], ["user_id", 1]]
3131
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3132
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
3133
+ Processing by FavoritesController#destroy as JS
3134
+ Parameters: {"model_id"=>"2", "id"=>"1"}
3135
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3136
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
3137
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3138
+  (0.0ms) SAVEPOINT active_record_1
3139
+ SQL (0.2ms) DELETE FROM "favorites" WHERE "favorites"."id" = ? [["id", 1]]
3140
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3141
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.5ms)
3142
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
3143
+  (0.5ms) rollback transaction
3144
+  (0.1ms) begin transaction
3145
+  (0.0ms) SAVEPOINT active_record_1
3146
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3147
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3148
+  (0.1ms) SAVEPOINT active_record_1
3149
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3151
+  (0.0ms) SAVEPOINT active_record_1
3152
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 3 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3153
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:56:51 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:56:51 UTC +00:00], ["user_id", 3]]
3154
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3155
+ Processing by FavoritesController#destroy as JS
3156
+ Parameters: {"model_id"=>"2", "id"=>"1"}
3157
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3158
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
3159
+ Completed 404 Not Found in 1ms
3160
+  (0.6ms) rollback transaction
3161
+  (0.1ms) begin transaction
3162
+  (0.0ms) SAVEPOINT active_record_1
3163
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3164
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3165
+  (0.0ms) SAVEPOINT active_record_1
3166
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3167
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 18:56:51 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 18:56:51 UTC +00:00], ["user_id", 1]]
3168
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3169
+  (0.0ms) SAVEPOINT active_record_1
3170
+ SQL (0.0ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3172
+ Processing by FavoritesController#destroy as JS
3173
+ Parameters: {"model_id"=>"3", "id"=>"1"}
3174
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "3"]]
3175
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
3176
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3177
+ Completed 404 Not Found in 1ms
3178
+  (0.4ms) rollback transaction
3179
+  (0.1ms) begin transaction
3180
+  (0.0ms) rollback transaction
3181
+  (0.0ms) begin transaction
3182
+  (0.0ms) rollback transaction
3183
+  (0.0ms) begin transaction
3184
+  (0.0ms) rollback transaction
3185
+  (0.0ms) begin transaction
3186
+  (0.0ms) rollback transaction
3187
+  (0.0ms) begin transaction
3188
+  (0.0ms) rollback transaction
3189
+  (0.0ms) begin transaction
3190
+  (0.0ms) rollback transaction
3191
+  (0.0ms) begin transaction
3192
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
3193
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
3194
+  (0.1ms) rollback transaction
3195
+  (0.0ms) begin transaction
3196
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
3197
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
3198
+  (0.0ms) rollback transaction
3199
+ Connecting to database specified by database.yml
3200
+  (0.9ms) select sqlite_version(*)
3201
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
3202
+  (0.0ms) begin transaction
3203
+ SQL (3.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3204
+  (0.1ms) commit transaction
3205
+  (0.1ms) begin transaction
3206
+  (0.0ms) SAVEPOINT active_record_1
3207
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3208
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3209
+ Processing by FavoritesController#create as JS
3210
+ Parameters: {"model_id"=>"2"}
3211
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3212
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", 2]]
3213
+ Favorite Load (0.8ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable" = 2
3214
+ SQLite3::SQLException: no such column: favorites.favoriteable: SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable" = 2
3215
+ Favorite Load (0.3ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable" = 2 LIMIT 1
3216
+ SQLite3::SQLException: no such column: favorites.favoriteable: SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable" = 2 LIMIT 1
3217
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", 2]]
3218
+ Completed 404 Not Found in 78012ms
3219
+  (0.1ms) rollback transaction
3220
+ Connecting to database specified by database.yml
3221
+  (0.9ms) select sqlite_version(*)
3222
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
3223
+  (0.0ms) begin transaction
3224
+ SQL (2.9ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3225
+  (0.1ms) commit transaction
3226
+  (0.1ms) begin transaction
3227
+  (0.0ms) SAVEPOINT active_record_1
3228
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3229
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3230
+ Processing by FavoritesController#create as JS
3231
+ Parameters: {"model_id"=>"2"}
3232
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3233
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1
3234
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3235
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3236
+ Favorite Load (0.2ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3237
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 1
3238
+ Favorite Load (0.2ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3239
+ Favorite Load (0.2ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1
3240
+ Completed 500 Internal Server Error in 43507ms
3241
+  (0.1ms) rollback transaction
3242
+ Connecting to database specified by database.yml
3243
+  (1.5ms) select sqlite_version(*)
3244
+  (0.9ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
3245
+  (0.1ms) begin transaction
3246
+ SQL (30.0ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3247
+  (0.1ms) commit transaction
3248
+  (0.1ms) begin transaction
3249
+  (0.0ms) SAVEPOINT active_record_1
3250
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3251
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3252
+ Processing by FavoritesController#create as JS
3253
+ Parameters: {"model_id"=>"2"}
3254
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3255
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1
3256
+ Completed 500 Internal Server Error in 44ms
3257
+  (0.1ms) rollback transaction
3258
+ Connecting to database specified by database.yml
3259
+  (1.1ms) select sqlite_version(*)
3260
+  (0.8ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
3261
+  (0.1ms) begin transaction
3262
+ SQL (3.0ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3263
+  (0.1ms) commit transaction
3264
+  (0.1ms) begin transaction
3265
+  (0.1ms) SAVEPOINT active_record_1
3266
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3267
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3268
+ Processing by FavoritesController#create as JS
3269
+ Parameters: {"model_id"=>"2"}
3270
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3271
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3272
+  (0.1ms) SAVEPOINT active_record_1
3273
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3274
+ SQL (1.1ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Dec 2012 19:00:55 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Fri, 07 Dec 2012 19:00:55 UTC +00:00], ["user_id", 1]]
3275
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3276
+ Rendered text template (0.0ms)
3277
+ Completed 200 OK in 60ms (Views: 7.0ms | ActiveRecord: 2.0ms)
3278
+  (0.5ms) rollback transaction
3279
+ Connecting to database specified by database.yml
3280
+  (1.3ms) select sqlite_version(*)
3281
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
3282
+  (0.0ms) begin transaction
3283
+ SQL (5.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3284
+  (0.1ms) commit transaction
3285
+  (0.1ms) begin transaction
3286
+  (0.0ms) SAVEPOINT active_record_1
3287
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3288
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3289
+ Processing by FavoritesController#create as JS
3290
+ Parameters: {"model_id"=>"2"}
3291
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3292
+ Favorite Load (0.5ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3293
+  (0.1ms) SAVEPOINT active_record_1
3294
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3295
+ SQL (3.1ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 18:57:18 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 18:57:18 UTC +00:00], ["user_id", 1]]
3296
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3297
+ Rendered text template (0.0ms)
3298
+ Completed 200 OK in 61ms (Views: 6.1ms | ActiveRecord: 4.2ms)
3299
+  (0.5ms) rollback transaction
3300
+  (0.1ms) begin transaction
3301
+  (0.0ms) SAVEPOINT active_record_1
3302
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3303
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3304
+ Processing by FavoritesController#create as JS
3305
+ Parameters: {"model_id"=>"2"}
3306
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3307
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3308
+  (0.0ms) SAVEPOINT active_record_1
3309
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3310
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 18:57:18 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 18:57:18 UTC +00:00], ["user_id", 1]]
3311
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3312
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)
3313
+  (0.3ms) rollback transaction
3314
+  (0.0ms) begin transaction
3315
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
3316
+  (0.0ms) SAVEPOINT active_record_1
3317
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3319
+ Processing by FavoritesController#create as JS
3320
+ Parameters: {"model_id"=>"2"}
3321
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3322
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3323
+  (0.0ms) SAVEPOINT active_record_1
3324
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3325
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 18:57:18 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 18:57:18 UTC +00:00], ["user_id", 1]]
3326
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3327
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
3328
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
3329
+  (0.6ms) rollback transaction
3330
+  (0.0ms) begin transaction
3331
+  (0.1ms) SAVEPOINT active_record_1
3332
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3333
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3334
+ Processing by FavoritesController#create as JS
3335
+ Parameters: {"model_id"=>"2"}
3336
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3337
+ Favorite Load (0.2ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3338
+  (0.0ms) SAVEPOINT active_record_1
3339
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3340
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 18:57:18 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 18:57:18 UTC +00:00], ["user_id", 1]]
3341
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3342
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
3343
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" ORDER BY "favorites"."id" DESC LIMIT 1
3344
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
3345
+  (0.5ms) rollback transaction
3346
+  (0.0ms) begin transaction
3347
+  (0.0ms) SAVEPOINT active_record_1
3348
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3349
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3350
+ Processing by FavoritesController#create as JS
3351
+ Parameters: {"model_id"=>"2"}
3352
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3353
+ Favorite Load (0.2ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3354
+  (0.0ms) SAVEPOINT active_record_1
3355
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3356
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 18:57:18 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 18:57:18 UTC +00:00], ["user_id", 1]]
3357
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3358
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms)
3359
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" ORDER BY "favorites"."id" DESC LIMIT 1
3360
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3361
+  (0.5ms) rollback transaction
3362
+  (0.1ms) begin transaction
3363
+  (0.0ms) SAVEPOINT active_record_1
3364
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3365
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3366
+  (0.1ms) SAVEPOINT active_record_1
3367
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3368
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 18:57:19 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 18:57:19 UTC +00:00], ["user_id", 1]]
3369
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3370
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
3371
+ Processing by FavoritesController#create as JS
3372
+ Parameters: {"model_id"=>"2"}
3373
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3374
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3375
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3376
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
3377
+  (0.5ms) rollback transaction
3378
+  (0.1ms) begin transaction
3379
+  (0.0ms) SAVEPOINT active_record_1
3380
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3381
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3382
+  (0.0ms) SAVEPOINT active_record_1
3383
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3384
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 18:57:19 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 18:57:19 UTC +00:00], ["user_id", 1]]
3385
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3386
+ Processing by FavoritesController#destroy as JS
3387
+ Parameters: {"model_id"=>"2", "id"=>"1"}
3388
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3389
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
3390
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3391
+  (0.0ms) SAVEPOINT active_record_1
3392
+ SQL (0.3ms) DELETE FROM "favorites" WHERE "favorites"."id" = ? [["id", 1]]
3393
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3394
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.6ms)
3395
+  (0.4ms) rollback transaction
3396
+  (0.1ms) begin transaction
3397
+  (0.0ms) SAVEPOINT active_record_1
3398
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3399
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3400
+  (0.0ms) SAVEPOINT active_record_1
3401
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3402
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 18:57:19 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 18:57:19 UTC +00:00], ["user_id", 1]]
3403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3404
+ Processing by FavoritesController#destroy as JS
3405
+ Parameters: {"model_id"=>"2", "id"=>"1"}
3406
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3407
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
3408
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3409
+  (0.0ms) SAVEPOINT active_record_1
3410
+ SQL (0.2ms) DELETE FROM "favorites" WHERE "favorites"."id" = ? [["id", 1]]
3411
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3412
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)
3413
+  (0.5ms) rollback transaction
3414
+  (0.1ms) begin transaction
3415
+  (0.0ms) SAVEPOINT active_record_1
3416
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3417
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3418
+  (0.0ms) SAVEPOINT active_record_1
3419
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3420
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 18:57:19 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 18:57:19 UTC +00:00], ["user_id", 1]]
3421
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3422
+  (0.0ms) SAVEPOINT active_record_1
3423
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3424
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3425
+ Processing by FavoritesController#destroy as JS
3426
+ Parameters: {"model_id"=>"3", "id"=>"1"}
3427
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "3"]]
3428
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
3429
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3430
+ Completed 404 Not Found in 2ms
3431
+  (0.5ms) rollback transaction
3432
+  (0.0ms) begin transaction
3433
+  (0.0ms) SAVEPOINT active_record_1
3434
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3435
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3436
+  (0.0ms) SAVEPOINT active_record_1
3437
+ SQL (0.0ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3438
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3439
+  (0.0ms) SAVEPOINT active_record_1
3440
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 3 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3441
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 18:57:19 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 18:57:19 UTC +00:00], ["user_id", 3]]
3442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3443
+ Processing by FavoritesController#destroy as JS
3444
+ Parameters: {"model_id"=>"2", "id"=>"1"}
3445
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3446
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
3447
+ Completed 404 Not Found in 1ms
3448
+  (0.6ms) rollback transaction
3449
+  (0.0ms) begin transaction
3450
+  (0.0ms) SAVEPOINT active_record_1
3451
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3452
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3453
+  (0.0ms) SAVEPOINT active_record_1
3454
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3455
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 18:57:19 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 18:57:19 UTC +00:00], ["user_id", 1]]
3456
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3457
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
3458
+ Processing by FavoritesController#destroy as JS
3459
+ Parameters: {"model_id"=>"2", "id"=>"1"}
3460
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3461
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
3462
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3463
+  (0.0ms) SAVEPOINT active_record_1
3464
+ SQL (0.2ms) DELETE FROM "favorites" WHERE "favorites"."id" = ? [["id", 1]]
3465
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3466
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
3467
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
3468
+  (0.4ms) rollback transaction
3469
+ Connecting to database specified by database.yml
3470
+  (0.9ms) select sqlite_version(*)
3471
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
3472
+ Connecting to database specified by database.yml
3473
+  (0.8ms) select sqlite_version(*)
3474
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
3475
+ Connecting to database specified by database.yml
3476
+  (0.9ms) select sqlite_version(*)
3477
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
3478
+ Connecting to database specified by database.yml
3479
+  (0.8ms) select sqlite_version(*)
3480
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
3481
+  (0.1ms) begin transaction
3482
+  (0.0ms) rollback transaction
3483
+ Connecting to database specified by database.yml
3484
+  (0.8ms) select sqlite_version(*)
3485
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
3486
+  (0.1ms) begin transaction
3487
+  (0.0ms) rollback transaction
3488
+ Connecting to database specified by database.yml
3489
+  (0.9ms) select sqlite_version(*)
3490
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
3491
+  (0.0ms) begin transaction
3492
+ SQL (4.5ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3493
+  (0.1ms) commit transaction
3494
+  (0.1ms) begin transaction
3495
+  (0.1ms) rollback transaction
3496
+  (0.0ms) begin transaction
3497
+  (0.0ms) rollback transaction
3498
+  (0.1ms) begin transaction
3499
+  (0.0ms) rollback transaction
3500
+  (0.1ms) begin transaction
3501
+  (0.0ms) rollback transaction
3502
+  (0.0ms) begin transaction
3503
+  (0.0ms) rollback transaction
3504
+  (0.0ms) begin transaction
3505
+  (0.0ms) rollback transaction
3506
+  (0.0ms) begin transaction
3507
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
3508
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
3509
+  (0.1ms) rollback transaction
3510
+  (0.1ms) begin transaction
3511
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
3512
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
3513
+  (0.0ms) rollback transaction
3514
+  (0.1ms) begin transaction
3515
+  (0.1ms) SAVEPOINT active_record_1
3516
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3517
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3518
+  (0.0ms) SAVEPOINT active_record_1
3519
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3520
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3521
+  (0.0ms) SAVEPOINT active_record_1
3522
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 3 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3523
+ SQL (1.6ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["user_id", 3]]
3524
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3525
+ Processing by FavoritesController#destroy as JS
3526
+ Parameters: {"model_id"=>"2", "id"=>"1"}
3527
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3528
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
3529
+ Completed 404 Not Found in 9ms
3530
+  (0.4ms) rollback transaction
3531
+  (0.0ms) begin transaction
3532
+  (0.1ms) SAVEPOINT active_record_1
3533
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3534
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3535
+  (0.0ms) SAVEPOINT active_record_1
3536
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3537
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["user_id", 1]]
3538
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3539
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
3540
+ Processing by FavoritesController#destroy as JS
3541
+ Parameters: {"model_id"=>"2", "id"=>"1"}
3542
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3543
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
3544
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3545
+  (0.0ms) SAVEPOINT active_record_1
3546
+ SQL (0.3ms) DELETE FROM "favorites" WHERE "favorites"."id" = ? [["id", 1]]
3547
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3548
+ Completed 200 OK in 8ms (Views: 4.4ms | ActiveRecord: 0.6ms)
3549
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
3550
+  (0.5ms) rollback transaction
3551
+  (0.1ms) begin transaction
3552
+  (0.0ms) SAVEPOINT active_record_1
3553
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3554
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3555
+  (0.0ms) SAVEPOINT active_record_1
3556
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3557
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["user_id", 1]]
3558
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3559
+  (0.0ms) SAVEPOINT active_record_1
3560
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3561
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3562
+ Processing by FavoritesController#destroy as JS
3563
+ Parameters: {"model_id"=>"3", "id"=>"1"}
3564
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "3"]]
3565
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
3566
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3567
+ Completed 404 Not Found in 2ms
3568
+  (0.6ms) rollback transaction
3569
+  (0.1ms) begin transaction
3570
+  (0.0ms) SAVEPOINT active_record_1
3571
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3573
+  (0.1ms) SAVEPOINT active_record_1
3574
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3575
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["user_id", 1]]
3576
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3577
+ Processing by FavoritesController#destroy as JS
3578
+ Parameters: {"model_id"=>"2", "id"=>"1"}
3579
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3580
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
3581
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3582
+  (0.0ms) SAVEPOINT active_record_1
3583
+ SQL (0.4ms) DELETE FROM "favorites" WHERE "favorites"."id" = ? [["id", 1]]
3584
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3585
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.6ms)
3586
+  (0.5ms) rollback transaction
3587
+  (0.0ms) begin transaction
3588
+  (0.0ms) SAVEPOINT active_record_1
3589
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3590
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3591
+  (0.0ms) SAVEPOINT active_record_1
3592
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3593
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["user_id", 1]]
3594
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3595
+ Processing by FavoritesController#destroy as JS
3596
+ Parameters: {"model_id"=>"2", "id"=>"1"}
3597
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3598
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
3599
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3600
+  (0.0ms) SAVEPOINT active_record_1
3601
+ SQL (0.3ms) DELETE FROM "favorites" WHERE "favorites"."id" = ? [["id", 1]]
3602
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3603
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.5ms)
3604
+  (0.6ms) rollback transaction
3605
+  (0.1ms) begin transaction
3606
+  (0.0ms) SAVEPOINT active_record_1
3607
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3608
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3609
+  (0.0ms) SAVEPOINT active_record_1
3610
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3611
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["user_id", 1]]
3612
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3613
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
3614
+ Processing by FavoritesController#create as JS
3615
+ Parameters: {"model_id"=>"2"}
3616
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3617
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3618
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3619
+  (0.0ms) SELECT COUNT(*) FROM "favorites" 
3620
+  (0.5ms) rollback transaction
3621
+  (0.0ms) begin transaction
3622
+  (0.0ms) SAVEPOINT active_record_1
3623
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3624
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3625
+ Processing by FavoritesController#create as JS
3626
+ Parameters: {"model_id"=>"2"}
3627
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3628
+ Favorite Load (0.2ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3629
+  (0.0ms) SAVEPOINT active_record_1
3630
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3631
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["user_id", 1]]
3632
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3633
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
3634
+  (0.5ms) rollback transaction
3635
+  (0.1ms) begin transaction
3636
+  (0.0ms) SAVEPOINT active_record_1
3637
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3638
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3639
+ Processing by FavoritesController#create as JS
3640
+ Parameters: {"model_id"=>"2"}
3641
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3642
+ Favorite Load (0.2ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3643
+  (0.0ms) SAVEPOINT active_record_1
3644
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3645
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["user_id", 1]]
3646
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3647
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms)
3648
+  (0.4ms) rollback transaction
3649
+  (0.0ms) begin transaction
3650
+  (0.2ms) SELECT COUNT(*) FROM "favorites"
3651
+  (0.0ms) SAVEPOINT active_record_1
3652
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3654
+ Processing by FavoritesController#create as JS
3655
+ Parameters: {"model_id"=>"2"}
3656
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3657
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3658
+  (0.0ms) SAVEPOINT active_record_1
3659
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3660
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["user_id", 1]]
3661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3662
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
3663
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
3664
+  (0.4ms) rollback transaction
3665
+  (0.1ms) begin transaction
3666
+  (0.1ms) SAVEPOINT active_record_1
3667
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3668
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3669
+ Processing by FavoritesController#create as JS
3670
+ Parameters: {"model_id"=>"2"}
3671
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3672
+ Favorite Load (0.2ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3673
+  (0.0ms) SAVEPOINT active_record_1
3674
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3675
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["user_id", 1]]
3676
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3677
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms)
3678
+ Favorite Load (0.2ms) SELECT "favorites".* FROM "favorites" ORDER BY "favorites"."id" DESC LIMIT 1
3679
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3680
+  (0.4ms) rollback transaction
3681
+  (0.0ms) begin transaction
3682
+  (0.0ms) SAVEPOINT active_record_1
3683
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3684
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3685
+ Processing by FavoritesController#create as JS
3686
+ Parameters: {"model_id"=>"2"}
3687
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3688
+ Favorite Load (0.2ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3689
+  (0.0ms) SAVEPOINT active_record_1
3690
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3691
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:47:25 UTC +00:00], ["user_id", 1]]
3692
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3693
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms)
3694
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" ORDER BY "favorites"."id" DESC LIMIT 1
3695
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
3696
+  (0.5ms) rollback transaction
3697
+ Connecting to database specified by database.yml
3698
+  (0.9ms) select sqlite_version(*)
3699
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
3700
+  (0.1ms) begin transaction
3701
+  (0.1ms) rollback transaction
3702
+  (0.1ms) begin transaction
3703
+  (0.1ms) rollback transaction
3704
+ Connecting to database specified by database.yml
3705
+  (0.8ms) select sqlite_version(*)
3706
+  (0.5ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
3707
+  (0.0ms) begin transaction
3708
+ SQL (3.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3709
+  (0.1ms) commit transaction
3710
+  (0.1ms) begin transaction
3711
+  (0.1ms) rollback transaction
3712
+  (0.0ms) begin transaction
3713
+  (0.0ms) rollback transaction
3714
+  (0.0ms) begin transaction
3715
+  (0.0ms) rollback transaction
3716
+  (0.0ms) begin transaction
3717
+  (0.0ms) rollback transaction
3718
+  (0.0ms) begin transaction
3719
+  (0.0ms) rollback transaction
3720
+  (0.0ms) begin transaction
3721
+  (0.0ms) rollback transaction
3722
+  (0.0ms) begin transaction
3723
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
3724
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
3725
+  (0.0ms) rollback transaction
3726
+  (0.1ms) begin transaction
3727
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
3728
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" IS NULL AND "favorites"."user_id" IS NULL AND "favorites"."favoriteable_type" IS NULL) LIMIT 1
3729
+  (0.0ms) rollback transaction
3730
+  (0.1ms) begin transaction
3731
+  (0.1ms) rollback transaction
3732
+  (0.1ms) begin transaction
3733
+  (0.1ms) rollback transaction
3734
+  (0.1ms) begin transaction
3735
+  (0.0ms) SAVEPOINT active_record_1
3736
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3737
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3738
+  (0.1ms) SAVEPOINT active_record_1
3739
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3740
+ SQL (1.0ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["user_id", 1]]
3741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3742
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
3743
+ Processing by FavoritesController#create as JS
3744
+ Parameters: {"model_id"=>"2"}
3745
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3746
+ Favorite Load (0.2ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3747
+ Rendered text template (0.0ms)
3748
+ Completed 200 OK in 18ms (Views: 4.5ms | ActiveRecord: 0.3ms)
3749
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
3750
+  (2.6ms) rollback transaction
3751
+  (0.1ms) begin transaction
3752
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
3753
+  (0.0ms) SAVEPOINT active_record_1
3754
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3755
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3756
+ Processing by FavoritesController#create as JS
3757
+ Parameters: {"model_id"=>"2"}
3758
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3759
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3760
+  (0.0ms) SAVEPOINT active_record_1
3761
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3762
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["user_id", 1]]
3763
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3764
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)
3765
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
3766
+  (0.4ms) rollback transaction
3767
+  (0.0ms) begin transaction
3768
+  (0.1ms) SAVEPOINT active_record_1
3769
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3770
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3771
+ Processing by FavoritesController#create as JS
3772
+ Parameters: {"model_id"=>"2"}
3773
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3774
+ Favorite Load (0.2ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3775
+  (0.1ms) SAVEPOINT active_record_1
3776
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3777
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["user_id", 1]]
3778
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3779
+ Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms)
3780
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" ORDER BY "favorites"."id" DESC LIMIT 1
3781
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
3782
+  (0.4ms) rollback transaction
3783
+  (0.1ms) begin transaction
3784
+  (0.0ms) SAVEPOINT active_record_1
3785
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3786
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3787
+ Processing by FavoritesController#create as JS
3788
+ Parameters: {"model_id"=>"2"}
3789
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3790
+ Favorite Load (0.2ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3791
+  (0.0ms) SAVEPOINT active_record_1
3792
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3793
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["user_id", 1]]
3794
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3795
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
3796
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" ORDER BY "favorites"."id" DESC LIMIT 1
3797
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3798
+  (0.5ms) rollback transaction
3799
+  (0.0ms) begin transaction
3800
+  (0.0ms) SAVEPOINT active_record_1
3801
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3802
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3803
+ Processing by FavoritesController#create as JS
3804
+ Parameters: {"model_id"=>"2"}
3805
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3806
+ Favorite Load (0.2ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3807
+  (0.0ms) SAVEPOINT active_record_1
3808
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3809
+ SQL (0.5ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["user_id", 1]]
3810
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3811
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.9ms)
3812
+  (0.5ms) rollback transaction
3813
+  (0.0ms) begin transaction
3814
+  (0.0ms) SAVEPOINT active_record_1
3815
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3816
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3817
+ Processing by FavoritesController#create as JS
3818
+ Parameters: {"model_id"=>"2"}
3819
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3820
+ Favorite Load (0.2ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."favoriteable_id" = 2 AND "favorites"."favoriteable_type" = 'User' LIMIT 1
3821
+  (0.0ms) SAVEPOINT active_record_1
3822
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3823
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["user_id", 1]]
3824
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3825
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms)
3826
+  (0.6ms) rollback transaction
3827
+  (0.1ms) begin transaction
3828
+  (0.1ms) SAVEPOINT active_record_1
3829
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3830
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3831
+  (0.0ms) SAVEPOINT active_record_1
3832
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3833
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3834
+  (0.0ms) SAVEPOINT active_record_1
3835
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 3 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3836
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["user_id", 3]]
3837
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3838
+ Processing by FavoritesController#destroy as JS
3839
+ Parameters: {"model_id"=>"2", "id"=>"1"}
3840
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3841
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
3842
+ Completed 404 Not Found in 1ms
3843
+  (0.5ms) rollback transaction
3844
+  (0.0ms) begin transaction
3845
+  (0.0ms) SAVEPOINT active_record_1
3846
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3847
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3848
+  (0.0ms) SAVEPOINT active_record_1
3849
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3850
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["user_id", 1]]
3851
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3852
+  (0.1ms) SAVEPOINT active_record_1
3853
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3855
+ Processing by FavoritesController#destroy as JS
3856
+ Parameters: {"model_id"=>"3", "id"=>"1"}
3857
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "3"]]
3858
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
3859
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3860
+ Completed 404 Not Found in 2ms
3861
+  (0.5ms) rollback transaction
3862
+  (0.1ms) begin transaction
3863
+  (0.0ms) SAVEPOINT active_record_1
3864
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3865
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3866
+  (0.0ms) SAVEPOINT active_record_1
3867
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3868
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["user_id", 1]]
3869
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3870
+ Processing by FavoritesController#destroy as JS
3871
+ Parameters: {"model_id"=>"2", "id"=>"1"}
3872
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3873
+ Favorite Load (0.1ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
3874
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3875
+  (0.0ms) SAVEPOINT active_record_1
3876
+ SQL (0.4ms) DELETE FROM "favorites" WHERE "favorites"."id" = ? [["id", 1]]
3877
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3878
+ Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.8ms)
3879
+  (0.5ms) rollback transaction
3880
+  (0.1ms) begin transaction
3881
+  (0.0ms) SAVEPOINT active_record_1
3882
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3883
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3884
+  (0.0ms) SAVEPOINT active_record_1
3885
+ Favorite Exists (0.1ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3886
+ SQL (0.3ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["user_id", 1]]
3887
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3888
+ Processing by FavoritesController#destroy as JS
3889
+ Parameters: {"model_id"=>"2", "id"=>"1"}
3890
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3891
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
3892
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3893
+  (0.0ms) SAVEPOINT active_record_1
3894
+ SQL (0.2ms) DELETE FROM "favorites" WHERE "favorites"."id" = ? [["id", 1]]
3895
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3896
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)
3897
+  (0.6ms) rollback transaction
3898
+  (0.1ms) begin transaction
3899
+  (0.0ms) SAVEPOINT active_record_1
3900
+ SQL (0.1ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
3901
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3902
+  (0.0ms) SAVEPOINT active_record_1
3903
+ Favorite Exists (0.2ms) SELECT 1 AS one FROM "favorites" WHERE ("favorites"."favoriteable_id" = 2 AND "favorites"."user_id" = 1 AND "favorites"."favoriteable_type" = 'User') LIMIT 1
3904
+ SQL (0.4ms) INSERT INTO "favorites" ("created_at", "favoriteable_id", "favoriteable_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["favoriteable_id", 2], ["favoriteable_type", "User"], ["updated_at", Sun, 09 Dec 2012 19:51:32 UTC +00:00], ["user_id", 1]]
3905
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3906
+  (0.1ms) SELECT COUNT(*) FROM "favorites" 
3907
+ Processing by FavoritesController#destroy as JS
3908
+ Parameters: {"model_id"=>"2", "id"=>"1"}
3909
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3910
+ Favorite Load (0.0ms) SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = 1 AND "favorites"."id" = ? LIMIT 1 [["id", "1"]]
3911
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3912
+  (0.1ms) SAVEPOINT active_record_1
3913
+ SQL (0.3ms) DELETE FROM "favorites" WHERE "favorites"."id" = ? [["id", 1]]
3914
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3915
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
3916
+  (0.1ms) SELECT COUNT(*) FROM "favorites"
3917
+  (0.4ms) rollback transaction
3918
+ Connecting to database specified by database.yml
3919
+  (0.8ms) select sqlite_version(*)
3920
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
3921
+  (0.1ms) begin transaction
3922
+  (0.1ms) rollback transaction
3923
+  (0.0ms) begin transaction
3924
+  (0.1ms) rollback transaction
3925
+ Connecting to database specified by database.yml
3926
+  (0.9ms) select sqlite_version(*)
3927
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
3928
+  (0.1ms) begin transaction
3929
+  (0.0ms) rollback transaction
3930
+  (0.0ms) begin transaction
3931
+  (0.0ms) rollback transaction
3932
+ Connecting to database specified by database.yml
3933
+  (0.8ms) select sqlite_version(*)
3934
+  (0.6ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
3935
+  (0.1ms) begin transaction
3936
+  (0.1ms) rollback transaction
3937
+  (0.1ms) begin transaction
3938
+  (0.0ms) rollback transaction
3939
+ Connecting to database specified by database.yml
3940
+  (0.9ms) select sqlite_version(*)
3941
+  (0.5ms) CREATE TEMPORARY TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
3942
+  (0.1ms) begin transaction
3943
+  (0.1ms) rollback transaction
3944
+  (0.1ms) begin transaction
3945
+  (0.1ms) rollback transaction