token_field 0.0.3 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +6 -0
- data/lib/token_field/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +1380 -0
- metadata +27 -59
data/README.md
CHANGED
@@ -81,6 +81,12 @@ then in view we call token_field with param :model => :category
|
|
81
81
|
<%= f.token_field :parent_id, :model => :category, :token_url => token_categories_path %>
|
82
82
|
<% end %>
|
83
83
|
|
84
|
+
in case model is in namespace for example MyApp you should use :model like this
|
85
|
+
|
86
|
+
<%= form_for @category do |f| %>
|
87
|
+
<%= f.token_field :parent_id, :model => "MyApp::Category", :token_url => token_categories_path %>
|
88
|
+
<% end %>
|
89
|
+
|
84
90
|
if there would be model Parent, we can omit :model parameter.
|
85
91
|
for example in Product model like this
|
86
92
|
|
data/lib/token_field/version.rb
CHANGED
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/spec/dummy/log/test.log
CHANGED
@@ -8139,3 +8139,1383 @@ Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.2ms)
|
|
8139
8139
|
[1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
8140
8140
|
[1m[36m (0.9ms)[0m [1mDELETE FROM "items";[0m
|
8141
8141
|
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
8142
|
+
Connecting to database specified by database.yml
|
8143
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8144
|
+
[1m[35mSQL (4.9ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:29 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:29 UTC +00:00]]
|
8145
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
8146
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8147
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:39:29 UTC +00:00], ["name", "category_1"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:29 UTC +00:00]]
|
8148
|
+
[1m[35m (1.0ms)[0m commit transaction
|
8149
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8150
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:29 UTC +00:00], ["name", "category_2"], ["parent_id", 1], ["updated_at", Sat, 13 Oct 2012 23:39:29 UTC +00:00]]
|
8151
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
8152
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
8153
|
+
|
8154
|
+
|
8155
|
+
Started GET "/categories/3/edit" for 127.0.0.1 at 2012-10-14 01:39:29 +0200
|
8156
|
+
Processing by CategoriesController#edit as HTML
|
8157
|
+
Parameters: {"id"=>"3"}
|
8158
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1[0m [["id", "3"]]
|
8159
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
8160
|
+
Rendered categories/_form.html.erb (9.0ms)
|
8161
|
+
Rendered categories/edit.html.erb within layouts/application (13.6ms)
|
8162
|
+
Completed 200 OK in 24ms (Views: 22.8ms | ActiveRecord: 0.4ms)
|
8163
|
+
|
8164
|
+
|
8165
|
+
Started PUT "/categories/3" for 127.0.0.1 at 2012-10-14 01:39:30 +0200
|
8166
|
+
Processing by CategoriesController#update as HTML
|
8167
|
+
Parameters: {"utf8"=>"✓", "category"=>{"name"=>"category_2", "parent_id"=>"2"}, "commit"=>"Update Category", "id"=>"3"}
|
8168
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1[0m [["id", "3"]]
|
8169
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8170
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "categories" SET "parent_id" = 2, "updated_at" = '2012-10-13 23:39:30.085163' WHERE "categories"."id" = 3[0m
|
8171
|
+
[1m[35m (1.0ms)[0m commit transaction
|
8172
|
+
Redirected to http://www.example.com/categories
|
8173
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
|
8174
|
+
|
8175
|
+
|
8176
|
+
Started GET "/categories" for 127.0.0.1 at 2012-10-14 01:39:30 +0200
|
8177
|
+
Processing by CategoriesController#index as HTML
|
8178
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" [0m
|
8179
|
+
Rendered categories/index.html.erb within layouts/application (1.9ms)
|
8180
|
+
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.2ms)
|
8181
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]]
|
8182
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1[0m
|
8183
|
+
[1m[35m (1.0ms)[0m DELETE FROM "categories";
|
8184
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
8185
|
+
[1m[35m (1.0ms)[0m DELETE FROM "products";
|
8186
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
8187
|
+
[1m[35m (1.0ms)[0m DELETE FROM "product_has_categories";
|
8188
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
8189
|
+
[1m[35m (0.9ms)[0m DELETE FROM "items";
|
8190
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
8191
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8192
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:39:30 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:30 UTC +00:00]]
|
8193
|
+
[1m[35m (1.0ms)[0m commit transaction
|
8194
|
+
|
8195
|
+
|
8196
|
+
Started GET "/categories/new" for 127.0.0.1 at 2012-10-14 01:39:30 +0200
|
8197
|
+
Processing by CategoriesController#new as HTML
|
8198
|
+
Rendered categories/_form.html.erb (2.5ms)
|
8199
|
+
Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)
|
8200
|
+
|
8201
|
+
|
8202
|
+
Started POST "/categories" for 127.0.0.1 at 2012-10-14 01:39:30 +0200
|
8203
|
+
Processing by CategoriesController#create as HTML
|
8204
|
+
Parameters: {"utf8"=>"✓", "category"=>{"name"=>"hello", "parent_id"=>"1"}, "commit"=>"Create Category"}
|
8205
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8206
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:30 UTC +00:00], ["name", "hello"], ["parent_id", 1], ["updated_at", Sat, 13 Oct 2012 23:39:30 UTC +00:00]]
|
8207
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
8208
|
+
Redirected to http://www.example.com/categories
|
8209
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.6ms)
|
8210
|
+
|
8211
|
+
|
8212
|
+
Started GET "/categories" for 127.0.0.1 at 2012-10-14 01:39:30 +0200
|
8213
|
+
Processing by CategoriesController#index as HTML
|
8214
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories"
|
8215
|
+
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)
|
8216
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1[0m
|
8217
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
8218
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "categories";[0m
|
8219
|
+
[1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
8220
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "products";[0m
|
8221
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
8222
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
8223
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
8224
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "items";[0m
|
8225
|
+
[1m[35m (1.7ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
8226
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8227
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:30 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:30 UTC +00:00]]
|
8228
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
8229
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8230
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:39:30 UTC +00:00], ["name", "new parent"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:30 UTC +00:00]]
|
8231
|
+
[1m[35m (1.0ms)[0m commit transaction
|
8232
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8233
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:30 UTC +00:00], ["name", "category_3"], ["parent_id", 1], ["updated_at", Sat, 13 Oct 2012 23:39:30 UTC +00:00]]
|
8234
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
8235
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
8236
|
+
|
8237
|
+
|
8238
|
+
Started GET "/categories/3/edit" for 127.0.0.1 at 2012-10-14 01:39:32 +0200
|
8239
|
+
Processing by CategoriesController#edit as HTML
|
8240
|
+
Parameters: {"id"=>"3"}
|
8241
|
+
[1m[36mCategory Load (0.3ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1[0m [["id", "3"]]
|
8242
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
8243
|
+
Rendered categories/_form.html.erb (7.2ms)
|
8244
|
+
Completed 200 OK in 13ms (Views: 9.8ms | ActiveRecord: 1.1ms)
|
8245
|
+
|
8246
|
+
|
8247
|
+
Started GET "/assets/application.css" for 127.0.0.1 at 2012-10-14 01:39:32 +0200
|
8248
|
+
Served asset /application.css - 200 OK (5ms)
|
8249
|
+
|
8250
|
+
|
8251
|
+
Started GET "/assets/application.js" for 127.0.0.1 at 2012-10-14 01:39:32 +0200
|
8252
|
+
Served asset /application.js - 200 OK (6ms)
|
8253
|
+
|
8254
|
+
|
8255
|
+
Started GET "/categories/token?q=new+parent" for 127.0.0.1 at 2012-10-14 01:39:33 +0200
|
8256
|
+
Processing by CategoriesController#token as JSON
|
8257
|
+
Parameters: {"q"=>"new parent"}
|
8258
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE (categories.name like '%new parent%')[0m
|
8259
|
+
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
8260
|
+
|
8261
|
+
|
8262
|
+
Started PUT "/categories/3" for 127.0.0.1 at 2012-10-14 01:39:34 +0200
|
8263
|
+
Processing by CategoriesController#update as HTML
|
8264
|
+
Parameters: {"utf8"=>"✓", "category"=>{"name"=>"category_3", "parent_id"=>"2"}, "commit"=>"Update Category", "id"=>"3"}
|
8265
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "3"]]
|
8266
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8267
|
+
[1m[35m (0.3ms)[0m UPDATE "categories" SET "parent_id" = 2, "updated_at" = '2012-10-13 23:39:34.424859' WHERE "categories"."id" = 3
|
8268
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
8269
|
+
Redirected to http://127.0.0.1:56775/categories
|
8270
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
|
8271
|
+
|
8272
|
+
|
8273
|
+
Started GET "/categories" for 127.0.0.1 at 2012-10-14 01:39:34 +0200
|
8274
|
+
Processing by CategoriesController#index as HTML
|
8275
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories"
|
8276
|
+
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)
|
8277
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1[0m [["id", 3]]
|
8278
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1
|
8279
|
+
[1m[36m (1.3ms)[0m [1mDELETE FROM "categories";[0m
|
8280
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
8281
|
+
[1m[36m (2.6ms)[0m [1mDELETE FROM "products";[0m
|
8282
|
+
[1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
8283
|
+
[1m[36m (1.5ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
8284
|
+
[1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
8285
|
+
[1m[36m (1.5ms)[0m [1mDELETE FROM "items";[0m
|
8286
|
+
[1m[35m (1.5ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
8287
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8288
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:34 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:34 UTC +00:00]]
|
8289
|
+
[1m[36m (65.0ms)[0m [1mcommit transaction[0m
|
8290
|
+
|
8291
|
+
|
8292
|
+
Started GET "/categories/new" for 127.0.0.1 at 2012-10-14 01:39:34 +0200
|
8293
|
+
Processing by CategoriesController#new as HTML
|
8294
|
+
Rendered categories/_form.html.erb (2.6ms)
|
8295
|
+
Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
|
8296
|
+
|
8297
|
+
|
8298
|
+
Started GET "/categories/token?q=wood" for 127.0.0.1 at 2012-10-14 01:39:35 +0200
|
8299
|
+
Processing by CategoriesController#token as JSON
|
8300
|
+
Parameters: {"q"=>"wood"}
|
8301
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE (categories.name like '%wood%')
|
8302
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
8303
|
+
|
8304
|
+
|
8305
|
+
Started POST "/categories" for 127.0.0.1 at 2012-10-14 01:39:36 +0200
|
8306
|
+
Processing by CategoriesController#create as HTML
|
8307
|
+
Parameters: {"utf8"=>"✓", "category"=>{"name"=>"hello", "parent_id"=>"1"}, "commit"=>"Create Category"}
|
8308
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8309
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00], ["name", "hello"], ["parent_id", 1], ["updated_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00]]
|
8310
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
8311
|
+
Redirected to http://127.0.0.1:56775/categories
|
8312
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.5ms)
|
8313
|
+
|
8314
|
+
|
8315
|
+
Started GET "/categories" for 127.0.0.1 at 2012-10-14 01:39:36 +0200
|
8316
|
+
Processing by CategoriesController#index as HTML
|
8317
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories"
|
8318
|
+
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
8319
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1[0m
|
8320
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
8321
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "categories";[0m
|
8322
|
+
[1m[35m (1.5ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
8323
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM "products";[0m
|
8324
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
8325
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
8326
|
+
[1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
8327
|
+
[1m[36m (0.8ms)[0m [1mDELETE FROM "items";[0m
|
8328
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
8329
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8330
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00]]
|
8331
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
8332
|
+
|
8333
|
+
|
8334
|
+
Started GET "/categories" for 127.0.0.1 at 2012-10-14 01:39:36 +0200
|
8335
|
+
Processing by CategoriesController#index as HTML
|
8336
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories"
|
8337
|
+
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)
|
8338
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "categories";[0m
|
8339
|
+
[1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
8340
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "products";[0m
|
8341
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
8342
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
8343
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
8344
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "items";[0m
|
8345
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
8346
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8347
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00]]
|
8348
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
8349
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8350
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00]]
|
8351
|
+
[1m[35m (0.8ms)[0m commit transaction
|
8352
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8353
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00]]
|
8354
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
8355
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8356
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00]]
|
8357
|
+
[1m[35m (0.9ms)[0m commit transaction
|
8358
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
8359
|
+
|
8360
|
+
|
8361
|
+
Started GET "/items/1/edit" for 127.0.0.1 at 2012-10-14 01:39:36 +0200
|
8362
|
+
Processing by ItemsController#edit as HTML
|
8363
|
+
Parameters: {"id"=>"1"}
|
8364
|
+
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
|
8365
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
8366
|
+
Rendered items/_form.html.erb (65.6ms)
|
8367
|
+
Completed 200 OK in 72ms (Views: 70.1ms | ActiveRecord: 0.4ms)
|
8368
|
+
|
8369
|
+
|
8370
|
+
Started PUT "/items/1" for 127.0.0.1 at 2012-10-14 01:39:36 +0200
|
8371
|
+
Processing by ItemsController#update as HTML
|
8372
|
+
Parameters: {"utf8"=>"✓", "item"=>{"name"=>"item", "category_id"=>"2"}, "commit"=>"Update Item", "id"=>"1"}
|
8373
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
|
8374
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8375
|
+
[1m[35m (0.2ms)[0m UPDATE "items" SET "category_id" = 2, "updated_at" = '2012-10-13 23:39:36.338070' WHERE "items"."id" = 1
|
8376
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
8377
|
+
Redirected to http://www.example.com/items
|
8378
|
+
Completed 302 Found in 5ms (ActiveRecord: 2.2ms)
|
8379
|
+
|
8380
|
+
|
8381
|
+
Started GET "/items" for 127.0.0.1 at 2012-10-14 01:39:36 +0200
|
8382
|
+
Processing by ItemsController#index as HTML
|
8383
|
+
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
|
8384
|
+
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
|
8385
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
|
8386
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1
|
8387
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "categories";[0m
|
8388
|
+
[1m[35m (1.4ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
8389
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "products";[0m
|
8390
|
+
[1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
8391
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
8392
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
8393
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "items";[0m
|
8394
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
8395
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8396
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00]]
|
8397
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
8398
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8399
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00]]
|
8400
|
+
[1m[35m (1.0ms)[0m commit transaction
|
8401
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8402
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00]]
|
8403
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
8404
|
+
|
8405
|
+
|
8406
|
+
Started GET "/items/new" for 127.0.0.1 at 2012-10-14 01:39:36 +0200
|
8407
|
+
Processing by ItemsController#new as HTML
|
8408
|
+
Rendered items/_form.html.erb (3.7ms)
|
8409
|
+
Completed 200 OK in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms)
|
8410
|
+
|
8411
|
+
|
8412
|
+
Started POST "/items" for 127.0.0.1 at 2012-10-14 01:39:36 +0200
|
8413
|
+
Processing by ItemsController#create as HTML
|
8414
|
+
Parameters: {"utf8"=>"✓", "item"=>{"name"=>"hello", "category_id"=>"1"}, "commit"=>"Create Item"}
|
8415
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8416
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00]]
|
8417
|
+
[1m[35m (1.8ms)[0m commit transaction
|
8418
|
+
Redirected to http://www.example.com/items
|
8419
|
+
Completed 302 Found in 5ms (ActiveRecord: 2.5ms)
|
8420
|
+
|
8421
|
+
|
8422
|
+
Started GET "/items" for 127.0.0.1 at 2012-10-14 01:39:36 +0200
|
8423
|
+
Processing by ItemsController#index as HTML
|
8424
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" [0m
|
8425
|
+
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
8426
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1
|
8427
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
8428
|
+
[1m[35m (1.0ms)[0m DELETE FROM "categories";
|
8429
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
8430
|
+
[1m[35m (1.1ms)[0m DELETE FROM "products";
|
8431
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
8432
|
+
[1m[35m (1.0ms)[0m DELETE FROM "product_has_categories";
|
8433
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
8434
|
+
[1m[35m (0.9ms)[0m DELETE FROM "items";
|
8435
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
8436
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8437
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00]]
|
8438
|
+
[1m[35m (1.8ms)[0m commit transaction
|
8439
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8440
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00]]
|
8441
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
8442
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8443
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00]]
|
8444
|
+
[1m[35m (0.8ms)[0m commit transaction
|
8445
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8446
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 23:39:36 UTC +00:00]]
|
8447
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
8448
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
8449
|
+
|
8450
|
+
|
8451
|
+
Started GET "/items/1/edit" for 127.0.0.1 at 2012-10-14 01:39:36 +0200
|
8452
|
+
Processing by ItemsController#edit as HTML
|
8453
|
+
Parameters: {"id"=>"1"}
|
8454
|
+
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
|
8455
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
8456
|
+
Rendered items/_form.html.erb (4.9ms)
|
8457
|
+
Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.5ms)
|
8458
|
+
|
8459
|
+
|
8460
|
+
Started GET "/categories/token?q=skirt" for 127.0.0.1 at 2012-10-14 01:39:37 +0200
|
8461
|
+
Processing by CategoriesController#token as JSON
|
8462
|
+
Parameters: {"q"=>"skirt"}
|
8463
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE (categories.name like '%skirt%')[0m
|
8464
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
|
8465
|
+
|
8466
|
+
|
8467
|
+
Started PUT "/items/1" for 127.0.0.1 at 2012-10-14 01:39:37 +0200
|
8468
|
+
Processing by ItemsController#update as HTML
|
8469
|
+
Parameters: {"utf8"=>"✓", "item"=>{"name"=>"item", "category_id"=>"2"}, "commit"=>"Update Item", "id"=>"1"}
|
8470
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
|
8471
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8472
|
+
[1m[35m (0.3ms)[0m UPDATE "items" SET "category_id" = 2, "updated_at" = '2012-10-13 23:39:37.953972' WHERE "items"."id" = 1
|
8473
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
8474
|
+
Redirected to http://127.0.0.1:56775/items
|
8475
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.4ms)
|
8476
|
+
|
8477
|
+
|
8478
|
+
Started GET "/items" for 127.0.0.1 at 2012-10-14 01:39:37 +0200
|
8479
|
+
Processing by ItemsController#index as HTML
|
8480
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items"
|
8481
|
+
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
|
8482
|
+
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
|
8483
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1
|
8484
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "categories";[0m
|
8485
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
8486
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "products";[0m
|
8487
|
+
[1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
8488
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
8489
|
+
[1m[35m (0.6ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
8490
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "items";[0m
|
8491
|
+
[1m[35m (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
8492
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8493
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:38 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:38 UTC +00:00]]
|
8494
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
8495
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8496
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:39:38 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:38 UTC +00:00]]
|
8497
|
+
[1m[35m (0.9ms)[0m commit transaction
|
8498
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8499
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:38 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:38 UTC +00:00]]
|
8500
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
8501
|
+
|
8502
|
+
|
8503
|
+
Started GET "/items/new" for 127.0.0.1 at 2012-10-14 01:39:38 +0200
|
8504
|
+
Processing by ItemsController#new as HTML
|
8505
|
+
Rendered items/_form.html.erb (5.9ms)
|
8506
|
+
Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms)
|
8507
|
+
|
8508
|
+
|
8509
|
+
Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 01:39:38 +0200
|
8510
|
+
Processing by CategoriesController#token as JSON
|
8511
|
+
Parameters: {"q"=>"shoes"}
|
8512
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%')
|
8513
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
8514
|
+
|
8515
|
+
|
8516
|
+
Started POST "/items" for 127.0.0.1 at 2012-10-14 01:39:39 +0200
|
8517
|
+
Processing by ItemsController#create as HTML
|
8518
|
+
Parameters: {"utf8"=>"✓", "item"=>{"name"=>"hello", "category_id"=>"1"}, "commit"=>"Create Item"}
|
8519
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8520
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00]]
|
8521
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
8522
|
+
Redirected to http://127.0.0.1:56775/items
|
8523
|
+
Completed 302 Found in 3ms (ActiveRecord: 1.5ms)
|
8524
|
+
|
8525
|
+
|
8526
|
+
Started GET "/items" for 127.0.0.1 at 2012-10-14 01:39:39 +0200
|
8527
|
+
Processing by ItemsController#index as HTML
|
8528
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items"
|
8529
|
+
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
8530
|
+
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1[0m
|
8531
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
8532
|
+
[1m[36m (1.4ms)[0m [1mDELETE FROM "categories";[0m
|
8533
|
+
[1m[35m (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
8534
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "products";[0m
|
8535
|
+
[1m[35m (0.7ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
8536
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
8537
|
+
[1m[35m (0.7ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
8538
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "items";[0m
|
8539
|
+
[1m[35m (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
8540
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8541
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00]]
|
8542
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
8543
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8544
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00]]
|
8545
|
+
[1m[35m (1.1ms)[0m commit transaction
|
8546
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8547
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00]]
|
8548
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
8549
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8550
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00], ["name", "new one"], ["updated_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00]]
|
8551
|
+
[1m[35m (0.9ms)[0m commit transaction
|
8552
|
+
|
8553
|
+
|
8554
|
+
Started GET "/items" for 127.0.0.1 at 2012-10-14 01:39:39 +0200
|
8555
|
+
Processing by ItemsController#index as HTML
|
8556
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" [0m
|
8557
|
+
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
|
8558
|
+
[1m[35m (1.0ms)[0m DELETE FROM "categories";
|
8559
|
+
[1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
8560
|
+
[1m[35m (1.0ms)[0m DELETE FROM "products";
|
8561
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
8562
|
+
[1m[35m (1.1ms)[0m DELETE FROM "product_has_categories";
|
8563
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
8564
|
+
[1m[35m (0.9ms)[0m DELETE FROM "items";
|
8565
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
8566
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8567
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00]]
|
8568
|
+
[1m[35m (1.8ms)[0m commit transaction
|
8569
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8570
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00]]
|
8571
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
8572
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8573
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00]]
|
8574
|
+
[1m[35m (1.0ms)[0m commit transaction
|
8575
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 3)[0m
|
8576
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8577
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00], ["name", "product"], ["updated_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00]]
|
8578
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00]]
|
8579
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 3], ["created_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00]]
|
8580
|
+
[1m[35m (1.6ms)[0m commit transaction
|
8581
|
+
|
8582
|
+
|
8583
|
+
Started GET "/products/1/edit" for 127.0.0.1 at 2012-10-14 01:39:39 +0200
|
8584
|
+
Processing by ProductsController#edit as HTML
|
8585
|
+
Parameters: {"id"=>"1"}
|
8586
|
+
[1m[36mProduct Load (0.2ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1[0m [["id", "1"]]
|
8587
|
+
[1m[35m (0.2ms)[0m SELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
8588
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
8589
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
8590
|
+
Rendered products/_form.html.erb (15.8ms)
|
8591
|
+
Completed 200 OK in 20ms (Views: 18.4ms | ActiveRecord: 0.5ms)
|
8592
|
+
|
8593
|
+
|
8594
|
+
Started PUT "/products/1" for 127.0.0.1 at 2012-10-14 01:39:39 +0200
|
8595
|
+
Processing by ProductsController#update as HTML
|
8596
|
+
Parameters: {"utf8"=>"✓", "product"=>{"name"=>"product", "category_ids"=>"2, 1"}, "commit"=>"Update Product", "id"=>"1"}
|
8597
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1[0m [["id", "1"]]
|
8598
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8599
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" IN (2, 1)[0m
|
8600
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
8601
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "product_has_categories" WHERE "product_has_categories"."product_id" = 1 AND "product_has_categories"."category_id" = 3[0m
|
8602
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 2], ["created_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00]]
|
8603
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
8604
|
+
Redirected to http://www.example.com/products
|
8605
|
+
Completed 302 Found in 11ms (ActiveRecord: 2.5ms)
|
8606
|
+
|
8607
|
+
|
8608
|
+
Started GET "/products" for 127.0.0.1 at 2012-10-14 01:39:39 +0200
|
8609
|
+
Processing by ProductsController#index as HTML
|
8610
|
+
[1m[35mProduct Load (0.2ms)[0m SELECT "products".* FROM "products"
|
8611
|
+
[1m[36m (0.2ms)[0m [1mSELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
8612
|
+
Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.3ms)
|
8613
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 1]]
|
8614
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
8615
|
+
[1m[35m (1.3ms)[0m DELETE FROM "categories";
|
8616
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
8617
|
+
[1m[35m (1.2ms)[0m DELETE FROM "products";
|
8618
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
8619
|
+
[1m[35m (1.1ms)[0m DELETE FROM "product_has_categories";
|
8620
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
8621
|
+
[1m[35m (0.9ms)[0m DELETE FROM "items";
|
8622
|
+
[1m[36m (0.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
8623
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8624
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00]]
|
8625
|
+
[1m[35m (0.9ms)[0m commit transaction
|
8626
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8627
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00]]
|
8628
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
8629
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8630
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00]]
|
8631
|
+
[1m[35m (1.1ms)[0m commit transaction
|
8632
|
+
|
8633
|
+
|
8634
|
+
Started GET "/products/new" for 127.0.0.1 at 2012-10-14 01:39:39 +0200
|
8635
|
+
Processing by ProductsController#new as HTML
|
8636
|
+
[1m[36m (0.2ms)[0m [1mSELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" IS NULL[0m
|
8637
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" IS NULL
|
8638
|
+
Rendered products/_form.html.erb (4.3ms)
|
8639
|
+
Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.2ms)
|
8640
|
+
|
8641
|
+
|
8642
|
+
Started POST "/products" for 127.0.0.1 at 2012-10-14 01:39:39 +0200
|
8643
|
+
Processing by ProductsController#create as HTML
|
8644
|
+
Parameters: {"utf8"=>"✓", "product"=>{"name"=>"hello", "category_ids"=>"3, 1"}, "commit"=>"Create Product"}
|
8645
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" IN (3, 1)[0m
|
8646
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8647
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00]]
|
8648
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 3], ["created_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00]]
|
8649
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:39:39 UTC +00:00]]
|
8650
|
+
[1m[35m (1.2ms)[0m commit transaction
|
8651
|
+
Redirected to http://www.example.com/products
|
8652
|
+
Completed 302 Found in 7ms (ActiveRecord: 2.1ms)
|
8653
|
+
|
8654
|
+
|
8655
|
+
Started GET "/products" for 127.0.0.1 at 2012-10-14 01:39:39 +0200
|
8656
|
+
Processing by ProductsController#index as HTML
|
8657
|
+
[1m[36mProduct Load (0.2ms)[0m [1mSELECT "products".* FROM "products" [0m
|
8658
|
+
[1m[35m (0.1ms)[0m SELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
8659
|
+
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.3ms)
|
8660
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1[0m
|
8661
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
8662
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "categories";[0m
|
8663
|
+
[1m[35m (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
8664
|
+
[1m[36m (0.8ms)[0m [1mDELETE FROM "products";[0m
|
8665
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
8666
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
8667
|
+
[1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
8668
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "items";[0m
|
8669
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
8670
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8671
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:40 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:40 UTC +00:00]]
|
8672
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
8673
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8674
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:39:40 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:40 UTC +00:00]]
|
8675
|
+
[1m[35m (1.1ms)[0m commit transaction
|
8676
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8677
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:40 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:40 UTC +00:00]]
|
8678
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
8679
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 3)
|
8680
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8681
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:40 UTC +00:00], ["name", "product"], ["updated_at", Sat, 13 Oct 2012 23:39:40 UTC +00:00]]
|
8682
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 23:39:40 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:39:40 UTC +00:00]]
|
8683
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 3], ["created_at", Sat, 13 Oct 2012 23:39:40 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:39:40 UTC +00:00]]
|
8684
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
8685
|
+
|
8686
|
+
|
8687
|
+
Started GET "/products/1/edit" for 127.0.0.1 at 2012-10-14 01:39:40 +0200
|
8688
|
+
Processing by ProductsController#edit as HTML
|
8689
|
+
Parameters: {"id"=>"1"}
|
8690
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", "1"]]
|
8691
|
+
[1m[36m (0.1ms)[0m [1mSELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
8692
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
8693
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
8694
|
+
Rendered products/_form.html.erb (6.0ms)
|
8695
|
+
Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.8ms)
|
8696
|
+
|
8697
|
+
|
8698
|
+
Started GET "/categories/token?q=skirt" for 127.0.0.1 at 2012-10-14 01:39:40 +0200
|
8699
|
+
Processing by CategoriesController#token as JSON
|
8700
|
+
Parameters: {"q"=>"skirt"}
|
8701
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE (categories.name like '%skirt%')
|
8702
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
8703
|
+
|
8704
|
+
|
8705
|
+
Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 01:39:41 +0200
|
8706
|
+
Processing by CategoriesController#token as JSON
|
8707
|
+
Parameters: {"q"=>"shoes"}
|
8708
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%')[0m
|
8709
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
8710
|
+
|
8711
|
+
|
8712
|
+
Started PUT "/products/1" for 127.0.0.1 at 2012-10-14 01:39:42 +0200
|
8713
|
+
Processing by ProductsController#update as HTML
|
8714
|
+
Parameters: {"utf8"=>"✓", "product"=>{"name"=>"product", "category_ids"=>"2,1"}, "commit"=>"Update Product", "id"=>"1"}
|
8715
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", "1"]]
|
8716
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8717
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (2, 1)
|
8718
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
8719
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "product_has_categories" WHERE "product_has_categories"."product_id" = 1 AND "product_has_categories"."category_id" = 3
|
8720
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 2], ["created_at", Sat, 13 Oct 2012 23:39:42 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:39:42 UTC +00:00]]
|
8721
|
+
[1m[35m (1.1ms)[0m commit transaction
|
8722
|
+
Redirected to http://127.0.0.1:56775/products
|
8723
|
+
Completed 302 Found in 9ms (ActiveRecord: 2.4ms)
|
8724
|
+
|
8725
|
+
|
8726
|
+
Started GET "/products" for 127.0.0.1 at 2012-10-14 01:39:42 +0200
|
8727
|
+
Processing by ProductsController#index as HTML
|
8728
|
+
[1m[36mProduct Load (0.2ms)[0m [1mSELECT "products".* FROM "products" [0m
|
8729
|
+
[1m[35m (0.2ms)[0m SELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
8730
|
+
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.4ms)
|
8731
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1[0m [["id", 1]]
|
8732
|
+
[1m[35mCategory Load (0.3ms)[0m SELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
8733
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "categories";[0m
|
8734
|
+
[1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
8735
|
+
[1m[36m (1.5ms)[0m [1mDELETE FROM "products";[0m
|
8736
|
+
[1m[35m (1.3ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
8737
|
+
[1m[36m (1.4ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
8738
|
+
[1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
8739
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "items";[0m
|
8740
|
+
[1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
8741
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8742
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:42 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:42 UTC +00:00]]
|
8743
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
8744
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8745
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:39:42 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:42 UTC +00:00]]
|
8746
|
+
[1m[35m (0.9ms)[0m commit transaction
|
8747
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8748
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:42 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:42 UTC +00:00]]
|
8749
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
8750
|
+
|
8751
|
+
|
8752
|
+
Started GET "/products/new" for 127.0.0.1 at 2012-10-14 01:39:42 +0200
|
8753
|
+
Processing by ProductsController#new as HTML
|
8754
|
+
[1m[35m (0.2ms)[0m SELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" IS NULL
|
8755
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" IS NULL[0m
|
8756
|
+
Rendered products/_form.html.erb (4.5ms)
|
8757
|
+
Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.3ms)
|
8758
|
+
|
8759
|
+
|
8760
|
+
Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 01:39:43 +0200
|
8761
|
+
Processing by CategoriesController#token as JSON
|
8762
|
+
Parameters: {"q"=>"shoes"}
|
8763
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%')
|
8764
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
|
8765
|
+
|
8766
|
+
|
8767
|
+
Started GET "/categories/token?q=pents" for 127.0.0.1 at 2012-10-14 01:39:44 +0200
|
8768
|
+
Processing by CategoriesController#token as JSON
|
8769
|
+
Parameters: {"q"=>"pents"}
|
8770
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE (categories.name like '%pents%')[0m
|
8771
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
8772
|
+
|
8773
|
+
|
8774
|
+
Started POST "/products" for 127.0.0.1 at 2012-10-14 01:39:45 +0200
|
8775
|
+
Processing by ProductsController#create as HTML
|
8776
|
+
Parameters: {"utf8"=>"✓", "product"=>{"name"=>"hello", "category_ids"=>"1,3"}, "commit"=>"Create Product"}
|
8777
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 3)
|
8778
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8779
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:45 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 23:39:45 UTC +00:00]]
|
8780
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 23:39:45 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:39:45 UTC +00:00]]
|
8781
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 3], ["created_at", Sat, 13 Oct 2012 23:39:45 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:39:45 UTC +00:00]]
|
8782
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
8783
|
+
Redirected to http://127.0.0.1:56775/products
|
8784
|
+
Completed 302 Found in 10ms (ActiveRecord: 2.7ms)
|
8785
|
+
|
8786
|
+
|
8787
|
+
Started GET "/products" for 127.0.0.1 at 2012-10-14 01:39:45 +0200
|
8788
|
+
Processing by ProductsController#index as HTML
|
8789
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products"
|
8790
|
+
[1m[36m (0.1ms)[0m [1mSELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
8791
|
+
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)
|
8792
|
+
[1m[35mProduct Load (0.2ms)[0m SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1
|
8793
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
8794
|
+
[1m[35m (1.0ms)[0m DELETE FROM "categories";
|
8795
|
+
[1m[36m (1.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
8796
|
+
[1m[35m (1.0ms)[0m DELETE FROM "products";
|
8797
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
8798
|
+
[1m[35m (1.0ms)[0m DELETE FROM "product_has_categories";
|
8799
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
8800
|
+
[1m[35m (0.9ms)[0m DELETE FROM "items";
|
8801
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
8802
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8803
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:39:45 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:45 UTC +00:00]]
|
8804
|
+
[1m[35m (0.9ms)[0m commit transaction
|
8805
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8806
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:39:45 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:45 UTC +00:00]]
|
8807
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
8808
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8809
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:39:45 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:39:45 UTC +00:00]]
|
8810
|
+
[1m[35m (1.1ms)[0m commit transaction
|
8811
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 2)[0m
|
8812
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8813
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:39:45 UTC +00:00], ["name", "new one"], ["updated_at", Sat, 13 Oct 2012 23:39:45 UTC +00:00]]
|
8814
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 23:39:45 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:39:45 UTC +00:00]]
|
8815
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 2], ["created_at", Sat, 13 Oct 2012 23:39:45 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:39:45 UTC +00:00]]
|
8816
|
+
[1m[35m (1.8ms)[0m commit transaction
|
8817
|
+
|
8818
|
+
|
8819
|
+
Started GET "/products" for 127.0.0.1 at 2012-10-14 01:39:45 +0200
|
8820
|
+
Processing by ProductsController#index as HTML
|
8821
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" [0m
|
8822
|
+
[1m[35m (0.1ms)[0m SELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
8823
|
+
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.3ms)
|
8824
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "categories";[0m
|
8825
|
+
[1m[35m (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
8826
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "products";[0m
|
8827
|
+
[1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
8828
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
8829
|
+
[1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
8830
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "items";[0m
|
8831
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
8832
|
+
Connecting to database specified by database.yml
|
8833
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8834
|
+
[1m[35mSQL (4.6ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:47:06 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:06 UTC +00:00]]
|
8835
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
8836
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8837
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:06 UTC +00:00], ["name", "new parent"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:06 UTC +00:00]]
|
8838
|
+
[1m[35m (1.1ms)[0m commit transaction
|
8839
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8840
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:47:06 UTC +00:00], ["name", "category_1"], ["parent_id", 1], ["updated_at", Sat, 13 Oct 2012 23:47:06 UTC +00:00]]
|
8841
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
8842
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
8843
|
+
|
8844
|
+
|
8845
|
+
Started GET "/categories/3/edit" for 127.0.0.1 at 2012-10-14 01:47:09 +0200
|
8846
|
+
Processing by CategoriesController#edit as HTML
|
8847
|
+
Parameters: {"id"=>"3"}
|
8848
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1[0m [["id", "3"]]
|
8849
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
8850
|
+
Rendered categories/_form.html.erb (10.6ms)
|
8851
|
+
Rendered categories/edit.html.erb within layouts/application (46.6ms)
|
8852
|
+
Completed 200 OK in 62ms (Views: 59.2ms | ActiveRecord: 0.9ms)
|
8853
|
+
|
8854
|
+
|
8855
|
+
Started GET "/assets/application.css" for 127.0.0.1 at 2012-10-14 01:47:10 +0200
|
8856
|
+
Served asset /application.css - 200 OK (6ms)
|
8857
|
+
|
8858
|
+
|
8859
|
+
Started GET "/assets/application.js" for 127.0.0.1 at 2012-10-14 01:47:10 +0200
|
8860
|
+
Served asset /application.js - 200 OK (6ms)
|
8861
|
+
|
8862
|
+
|
8863
|
+
Started GET "/categories/token?q=new+parent" for 127.0.0.1 at 2012-10-14 01:47:10 +0200
|
8864
|
+
Processing by CategoriesController#token as JSON
|
8865
|
+
Parameters: {"q"=>"new parent"}
|
8866
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE (categories.name like '%new parent%')[0m
|
8867
|
+
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
8868
|
+
|
8869
|
+
|
8870
|
+
Started PUT "/categories/3" for 127.0.0.1 at 2012-10-14 01:47:11 +0200
|
8871
|
+
Processing by CategoriesController#update as HTML
|
8872
|
+
Parameters: {"utf8"=>"✓", "category"=>{"name"=>"category_1", "parent_id"=>"2"}, "commit"=>"Update Category", "id"=>"3"}
|
8873
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "3"]]
|
8874
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8875
|
+
[1m[35m (0.3ms)[0m UPDATE "categories" SET "parent_id" = 2, "updated_at" = '2012-10-13 23:47:11.535973' WHERE "categories"."id" = 3
|
8876
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
8877
|
+
Redirected to http://127.0.0.1:57074/categories
|
8878
|
+
Completed 302 Found in 7ms (ActiveRecord: 1.1ms)
|
8879
|
+
|
8880
|
+
|
8881
|
+
Started GET "/categories" for 127.0.0.1 at 2012-10-14 01:47:11 +0200
|
8882
|
+
Processing by CategoriesController#index as HTML
|
8883
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories"
|
8884
|
+
Rendered categories/index.html.erb within layouts/application (2.3ms)
|
8885
|
+
Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.2ms)
|
8886
|
+
[1m[36mCategory Load (0.4ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1[0m [["id", 3]]
|
8887
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1
|
8888
|
+
[1m[36m (55.5ms)[0m [1mDELETE FROM "categories";[0m
|
8889
|
+
[1m[35m (2.3ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
8890
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "products";[0m
|
8891
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
8892
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
8893
|
+
[1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
8894
|
+
[1m[36m (1.8ms)[0m [1mDELETE FROM "items";[0m
|
8895
|
+
[1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
8896
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8897
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:47:11 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:11 UTC +00:00]]
|
8898
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
8899
|
+
|
8900
|
+
|
8901
|
+
Started GET "/categories" for 127.0.0.1 at 2012-10-14 01:47:11 +0200
|
8902
|
+
Processing by CategoriesController#index as HTML
|
8903
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories"
|
8904
|
+
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)
|
8905
|
+
[1m[36m (1.3ms)[0m [1mDELETE FROM "categories";[0m
|
8906
|
+
[1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
8907
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "products";[0m
|
8908
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
8909
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
8910
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
8911
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "items";[0m
|
8912
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
8913
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8914
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:47:11 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:11 UTC +00:00]]
|
8915
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
8916
|
+
|
8917
|
+
|
8918
|
+
Started GET "/categories/new" for 127.0.0.1 at 2012-10-14 01:47:11 +0200
|
8919
|
+
Processing by CategoriesController#new as HTML
|
8920
|
+
Rendered categories/_form.html.erb (2.5ms)
|
8921
|
+
Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms)
|
8922
|
+
|
8923
|
+
|
8924
|
+
Started POST "/categories" for 127.0.0.1 at 2012-10-14 01:47:11 +0200
|
8925
|
+
Processing by CategoriesController#create as HTML
|
8926
|
+
Parameters: {"utf8"=>"✓", "category"=>{"name"=>"hello", "parent_id"=>"1"}, "commit"=>"Create Category"}
|
8927
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8928
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:11 UTC +00:00], ["name", "hello"], ["parent_id", 1], ["updated_at", Sat, 13 Oct 2012 23:47:11 UTC +00:00]]
|
8929
|
+
[1m[35m (1.4ms)[0m commit transaction
|
8930
|
+
Redirected to http://www.example.com/categories
|
8931
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.9ms)
|
8932
|
+
|
8933
|
+
|
8934
|
+
Started GET "/categories" for 127.0.0.1 at 2012-10-14 01:47:11 +0200
|
8935
|
+
Processing by CategoriesController#index as HTML
|
8936
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" [0m
|
8937
|
+
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)
|
8938
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1
|
8939
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
8940
|
+
[1m[35m (0.9ms)[0m DELETE FROM "categories";
|
8941
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
8942
|
+
[1m[35m (0.9ms)[0m DELETE FROM "products";
|
8943
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
8944
|
+
[1m[35m (1.0ms)[0m DELETE FROM "product_has_categories";
|
8945
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
8946
|
+
[1m[35m (1.3ms)[0m DELETE FROM "items";
|
8947
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
8948
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8949
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:12 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:12 UTC +00:00]]
|
8950
|
+
[1m[35m (1.8ms)[0m commit transaction
|
8951
|
+
|
8952
|
+
|
8953
|
+
Started GET "/categories/new" for 127.0.0.1 at 2012-10-14 01:47:12 +0200
|
8954
|
+
Processing by CategoriesController#new as HTML
|
8955
|
+
Rendered categories/_form.html.erb (4.0ms)
|
8956
|
+
Completed 200 OK in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms)
|
8957
|
+
|
8958
|
+
|
8959
|
+
Started GET "/categories/token?q=wood" for 127.0.0.1 at 2012-10-14 01:47:12 +0200
|
8960
|
+
Processing by CategoriesController#token as JSON
|
8961
|
+
Parameters: {"q"=>"wood"}
|
8962
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE (categories.name like '%wood%')[0m
|
8963
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
8964
|
+
|
8965
|
+
|
8966
|
+
Started POST "/categories" for 127.0.0.1 at 2012-10-14 01:47:13 +0200
|
8967
|
+
Processing by CategoriesController#create as HTML
|
8968
|
+
Parameters: {"utf8"=>"✓", "category"=>{"name"=>"hello", "parent_id"=>"1"}, "commit"=>"Create Category"}
|
8969
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8970
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:13 UTC +00:00], ["name", "hello"], ["parent_id", 1], ["updated_at", Sat, 13 Oct 2012 23:47:13 UTC +00:00]]
|
8971
|
+
[1m[35m (1.0ms)[0m commit transaction
|
8972
|
+
Redirected to http://127.0.0.1:57074/categories
|
8973
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.5ms)
|
8974
|
+
|
8975
|
+
|
8976
|
+
Started GET "/categories" for 127.0.0.1 at 2012-10-14 01:47:13 +0200
|
8977
|
+
Processing by CategoriesController#index as HTML
|
8978
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" [0m
|
8979
|
+
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)
|
8980
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1
|
8981
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
8982
|
+
[1m[35m (1.0ms)[0m DELETE FROM "categories";
|
8983
|
+
[1m[36m (1.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
8984
|
+
[1m[35m (1.0ms)[0m DELETE FROM "products";
|
8985
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
8986
|
+
[1m[35m (0.9ms)[0m DELETE FROM "product_has_categories";
|
8987
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
8988
|
+
[1m[35m (0.8ms)[0m DELETE FROM "items";
|
8989
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
8990
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8991
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:13 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:13 UTC +00:00]]
|
8992
|
+
[1m[35m (0.9ms)[0m commit transaction
|
8993
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8994
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:47:13 UTC +00:00], ["name", "category_2"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:13 UTC +00:00]]
|
8995
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
8996
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8997
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:13 UTC +00:00], ["name", "category_3"], ["parent_id", 1], ["updated_at", Sat, 13 Oct 2012 23:47:13 UTC +00:00]]
|
8998
|
+
[1m[35m (0.9ms)[0m commit transaction
|
8999
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
9000
|
+
|
9001
|
+
|
9002
|
+
Started GET "/categories/3/edit" for 127.0.0.1 at 2012-10-14 01:47:13 +0200
|
9003
|
+
Processing by CategoriesController#edit as HTML
|
9004
|
+
Parameters: {"id"=>"3"}
|
9005
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "3"]]
|
9006
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
9007
|
+
Rendered categories/_form.html.erb (4.1ms)
|
9008
|
+
Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.3ms)
|
9009
|
+
|
9010
|
+
|
9011
|
+
Started PUT "/categories/3" for 127.0.0.1 at 2012-10-14 01:47:13 +0200
|
9012
|
+
Processing by CategoriesController#update as HTML
|
9013
|
+
Parameters: {"utf8"=>"✓", "category"=>{"name"=>"category_3", "parent_id"=>"2"}, "commit"=>"Update Category", "id"=>"3"}
|
9014
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "3"]]
|
9015
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9016
|
+
[1m[35m (0.2ms)[0m UPDATE "categories" SET "parent_id" = 2, "updated_at" = '2012-10-13 23:47:13.590811' WHERE "categories"."id" = 3
|
9017
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
9018
|
+
Redirected to http://www.example.com/categories
|
9019
|
+
Completed 302 Found in 3ms (ActiveRecord: 1.4ms)
|
9020
|
+
|
9021
|
+
|
9022
|
+
Started GET "/categories" for 127.0.0.1 at 2012-10-14 01:47:13 +0200
|
9023
|
+
Processing by CategoriesController#index as HTML
|
9024
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories"
|
9025
|
+
Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
|
9026
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1[0m [["id", 3]]
|
9027
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1
|
9028
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "categories";[0m
|
9029
|
+
[1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
9030
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "products";[0m
|
9031
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
9032
|
+
[1m[36m (0.8ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
9033
|
+
[1m[35m (0.6ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
9034
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "items";[0m
|
9035
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
9036
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9037
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:47:13 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:13 UTC +00:00]]
|
9038
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
9039
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9040
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:13 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:13 UTC +00:00]]
|
9041
|
+
[1m[35m (1.3ms)[0m commit transaction
|
9042
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9043
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:47:13 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:13 UTC +00:00]]
|
9044
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
9045
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9046
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 23:47:13 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 23:47:13 UTC +00:00]]
|
9047
|
+
[1m[35m (1.0ms)[0m commit transaction
|
9048
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
9049
|
+
|
9050
|
+
|
9051
|
+
Started GET "/items/1/edit" for 127.0.0.1 at 2012-10-14 01:47:13 +0200
|
9052
|
+
Processing by ItemsController#edit as HTML
|
9053
|
+
Parameters: {"id"=>"1"}
|
9054
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
|
9055
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
9056
|
+
Rendered items/_form.html.erb (63.4ms)
|
9057
|
+
Completed 200 OK in 68ms (Views: 66.1ms | ActiveRecord: 0.5ms)
|
9058
|
+
|
9059
|
+
|
9060
|
+
Started GET "/categories/token?q=skirt" for 127.0.0.1 at 2012-10-14 01:47:14 +0200
|
9061
|
+
Processing by CategoriesController#token as JSON
|
9062
|
+
Parameters: {"q"=>"skirt"}
|
9063
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE (categories.name like '%skirt%')
|
9064
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
9065
|
+
|
9066
|
+
|
9067
|
+
Started PUT "/items/1" for 127.0.0.1 at 2012-10-14 01:47:15 +0200
|
9068
|
+
Processing by ItemsController#update as HTML
|
9069
|
+
Parameters: {"utf8"=>"✓", "item"=>{"name"=>"item", "category_id"=>"2"}, "commit"=>"Update Item", "id"=>"1"}
|
9070
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
|
9071
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9072
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "items" SET "category_id" = 2, "updated_at" = '2012-10-13 23:47:15.138499' WHERE "items"."id" = 1[0m
|
9073
|
+
[1m[35m (0.9ms)[0m commit transaction
|
9074
|
+
Redirected to http://127.0.0.1:57074/items
|
9075
|
+
Completed 302 Found in 6ms (ActiveRecord: 1.5ms)
|
9076
|
+
|
9077
|
+
|
9078
|
+
Started GET "/items" for 127.0.0.1 at 2012-10-14 01:47:15 +0200
|
9079
|
+
Processing by ItemsController#index as HTML
|
9080
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" [0m
|
9081
|
+
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)
|
9082
|
+
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
|
9083
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1[0m
|
9084
|
+
[1m[35m (1.2ms)[0m DELETE FROM "categories";
|
9085
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
9086
|
+
[1m[35m (1.2ms)[0m DELETE FROM "products";
|
9087
|
+
[1m[36m (0.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
9088
|
+
[1m[35m (1.0ms)[0m DELETE FROM "product_has_categories";
|
9089
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
9090
|
+
[1m[35m (1.1ms)[0m DELETE FROM "items";
|
9091
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
9092
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9093
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00]]
|
9094
|
+
[1m[35m (1.8ms)[0m commit transaction
|
9095
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9096
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00]]
|
9097
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
9098
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9099
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00]]
|
9100
|
+
[1m[35m (0.9ms)[0m commit transaction
|
9101
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9102
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00], ["name", "new one"], ["updated_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00]]
|
9103
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
9104
|
+
|
9105
|
+
|
9106
|
+
Started GET "/items" for 127.0.0.1 at 2012-10-14 01:47:15 +0200
|
9107
|
+
Processing by ItemsController#index as HTML
|
9108
|
+
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
|
9109
|
+
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)
|
9110
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM "categories";[0m
|
9111
|
+
[1m[35m (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
9112
|
+
[1m[36m (1.9ms)[0m [1mDELETE FROM "products";[0m
|
9113
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
9114
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
9115
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
9116
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "items";[0m
|
9117
|
+
[1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
9118
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9119
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00]]
|
9120
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
9121
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9122
|
+
[1m[36mSQL (31.2ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00]]
|
9123
|
+
[1m[35m (1.0ms)[0m commit transaction
|
9124
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9125
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00]]
|
9126
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
9127
|
+
|
9128
|
+
|
9129
|
+
Started GET "/items/new" for 127.0.0.1 at 2012-10-14 01:47:15 +0200
|
9130
|
+
Processing by ItemsController#new as HTML
|
9131
|
+
Rendered items/_form.html.erb (4.3ms)
|
9132
|
+
Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms)
|
9133
|
+
|
9134
|
+
|
9135
|
+
Started POST "/items" for 127.0.0.1 at 2012-10-14 01:47:15 +0200
|
9136
|
+
Processing by ItemsController#create as HTML
|
9137
|
+
Parameters: {"utf8"=>"✓", "item"=>{"name"=>"hello", "category_id"=>"1"}, "commit"=>"Create Item"}
|
9138
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9139
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00]]
|
9140
|
+
[1m[35m (1.5ms)[0m commit transaction
|
9141
|
+
Redirected to http://www.example.com/items
|
9142
|
+
Completed 302 Found in 4ms (ActiveRecord: 2.0ms)
|
9143
|
+
|
9144
|
+
|
9145
|
+
Started GET "/items" for 127.0.0.1 at 2012-10-14 01:47:15 +0200
|
9146
|
+
Processing by ItemsController#index as HTML
|
9147
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" [0m
|
9148
|
+
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
|
9149
|
+
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1
|
9150
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
9151
|
+
[1m[35m (0.9ms)[0m DELETE FROM "categories";
|
9152
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
9153
|
+
[1m[35m (0.9ms)[0m DELETE FROM "products";
|
9154
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
9155
|
+
[1m[35m (1.0ms)[0m DELETE FROM "product_has_categories";
|
9156
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
9157
|
+
[1m[35m (0.8ms)[0m DELETE FROM "items";
|
9158
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
9159
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9160
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00]]
|
9161
|
+
[1m[35m (1.7ms)[0m commit transaction
|
9162
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9163
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00]]
|
9164
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
9165
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9166
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:15 UTC +00:00]]
|
9167
|
+
[1m[35m (0.8ms)[0m commit transaction
|
9168
|
+
|
9169
|
+
|
9170
|
+
Started GET "/items/new" for 127.0.0.1 at 2012-10-14 01:47:15 +0200
|
9171
|
+
Processing by ItemsController#new as HTML
|
9172
|
+
Rendered items/_form.html.erb (3.6ms)
|
9173
|
+
Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
|
9174
|
+
|
9175
|
+
|
9176
|
+
Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 01:47:16 +0200
|
9177
|
+
Processing by CategoriesController#token as JSON
|
9178
|
+
Parameters: {"q"=>"shoes"}
|
9179
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%')[0m
|
9180
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
9181
|
+
|
9182
|
+
|
9183
|
+
Started POST "/items" for 127.0.0.1 at 2012-10-14 01:47:16 +0200
|
9184
|
+
Processing by ItemsController#create as HTML
|
9185
|
+
Parameters: {"utf8"=>"✓", "item"=>{"name"=>"hello", "category_id"=>"1"}, "commit"=>"Create Item"}
|
9186
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9187
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 23:47:16 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 23:47:16 UTC +00:00]]
|
9188
|
+
[1m[35m (1.0ms)[0m commit transaction
|
9189
|
+
Redirected to http://127.0.0.1:57074/items
|
9190
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.5ms)
|
9191
|
+
|
9192
|
+
|
9193
|
+
Started GET "/items" for 127.0.0.1 at 2012-10-14 01:47:16 +0200
|
9194
|
+
Processing by ItemsController#index as HTML
|
9195
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" [0m
|
9196
|
+
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)
|
9197
|
+
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1
|
9198
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
9199
|
+
[1m[35m (0.9ms)[0m DELETE FROM "categories";
|
9200
|
+
[1m[36m (1.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
9201
|
+
[1m[35m (1.0ms)[0m DELETE FROM "products";
|
9202
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
9203
|
+
[1m[35m (1.1ms)[0m DELETE FROM "product_has_categories";
|
9204
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
9205
|
+
[1m[35m (0.9ms)[0m DELETE FROM "items";
|
9206
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
9207
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9208
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:16 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:16 UTC +00:00]]
|
9209
|
+
[1m[35m (1.4ms)[0m commit transaction
|
9210
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9211
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:47:16 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:16 UTC +00:00]]
|
9212
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
9213
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9214
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:16 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:16 UTC +00:00]]
|
9215
|
+
[1m[35m (1.0ms)[0m commit transaction
|
9216
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9217
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 23:47:16 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 23:47:16 UTC +00:00]]
|
9218
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
9219
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
9220
|
+
|
9221
|
+
|
9222
|
+
Started GET "/items/1/edit" for 127.0.0.1 at 2012-10-14 01:47:16 +0200
|
9223
|
+
Processing by ItemsController#edit as HTML
|
9224
|
+
Parameters: {"id"=>"1"}
|
9225
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
|
9226
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
9227
|
+
Rendered items/_form.html.erb (4.8ms)
|
9228
|
+
Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.2ms)
|
9229
|
+
|
9230
|
+
|
9231
|
+
Started PUT "/items/1" for 127.0.0.1 at 2012-10-14 01:47:17 +0200
|
9232
|
+
Processing by ItemsController#update as HTML
|
9233
|
+
Parameters: {"utf8"=>"✓", "item"=>{"name"=>"item", "category_id"=>"2"}, "commit"=>"Update Item", "id"=>"1"}
|
9234
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
|
9235
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9236
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "items" SET "category_id" = 2, "updated_at" = '2012-10-13 23:47:17.010915' WHERE "items"."id" = 1[0m
|
9237
|
+
[1m[35m (1.1ms)[0m commit transaction
|
9238
|
+
Redirected to http://www.example.com/items
|
9239
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.5ms)
|
9240
|
+
|
9241
|
+
|
9242
|
+
Started GET "/items" for 127.0.0.1 at 2012-10-14 01:47:17 +0200
|
9243
|
+
Processing by ItemsController#index as HTML
|
9244
|
+
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" [0m
|
9245
|
+
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)
|
9246
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
|
9247
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1[0m
|
9248
|
+
[1m[35m (1.2ms)[0m DELETE FROM "categories";
|
9249
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
9250
|
+
[1m[35m (1.0ms)[0m DELETE FROM "products";
|
9251
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
9252
|
+
[1m[35m (1.0ms)[0m DELETE FROM "product_has_categories";
|
9253
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
9254
|
+
[1m[35m (1.1ms)[0m DELETE FROM "items";
|
9255
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
9256
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9257
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:17 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:17 UTC +00:00]]
|
9258
|
+
[1m[35m (1.7ms)[0m commit transaction
|
9259
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9260
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:47:17 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:17 UTC +00:00]]
|
9261
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
9262
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9263
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:17 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:17 UTC +00:00]]
|
9264
|
+
[1m[35m (0.9ms)[0m commit transaction
|
9265
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 3)[0m
|
9266
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9267
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:17 UTC +00:00], ["name", "product"], ["updated_at", Sat, 13 Oct 2012 23:47:17 UTC +00:00]]
|
9268
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 23:47:17 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:47:17 UTC +00:00]]
|
9269
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 3], ["created_at", Sat, 13 Oct 2012 23:47:17 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:47:17 UTC +00:00]]
|
9270
|
+
[1m[35m (1.6ms)[0m commit transaction
|
9271
|
+
|
9272
|
+
|
9273
|
+
Started GET "/products/1/edit" for 127.0.0.1 at 2012-10-14 01:47:17 +0200
|
9274
|
+
Processing by ProductsController#edit as HTML
|
9275
|
+
Parameters: {"id"=>"1"}
|
9276
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1[0m [["id", "1"]]
|
9277
|
+
[1m[35m (0.1ms)[0m SELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
9278
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
9279
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
9280
|
+
Rendered products/_form.html.erb (18.4ms)
|
9281
|
+
Completed 200 OK in 23ms (Views: 20.8ms | ActiveRecord: 1.0ms)
|
9282
|
+
|
9283
|
+
|
9284
|
+
Started GET "/categories/token?q=skirt" for 127.0.0.1 at 2012-10-14 01:47:17 +0200
|
9285
|
+
Processing by CategoriesController#token as JSON
|
9286
|
+
Parameters: {"q"=>"skirt"}
|
9287
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE (categories.name like '%skirt%')[0m
|
9288
|
+
Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
9289
|
+
|
9290
|
+
|
9291
|
+
Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 01:47:19 +0200
|
9292
|
+
Processing by CategoriesController#token as JSON
|
9293
|
+
Parameters: {"q"=>"shoes"}
|
9294
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%')
|
9295
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
9296
|
+
|
9297
|
+
|
9298
|
+
Started PUT "/products/1" for 127.0.0.1 at 2012-10-14 01:47:19 +0200
|
9299
|
+
Processing by ProductsController#update as HTML
|
9300
|
+
Parameters: {"utf8"=>"✓", "product"=>{"name"=>"product", "category_ids"=>"2,1"}, "commit"=>"Update Product", "id"=>"1"}
|
9301
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1[0m [["id", "1"]]
|
9302
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9303
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" IN (2, 1)[0m
|
9304
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
9305
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "product_has_categories" WHERE "product_has_categories"."product_id" = 1 AND "product_has_categories"."category_id" = 3[0m
|
9306
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 2], ["created_at", Sat, 13 Oct 2012 23:47:19 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:47:19 UTC +00:00]]
|
9307
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
9308
|
+
Redirected to http://127.0.0.1:57074/products
|
9309
|
+
Completed 302 Found in 14ms (ActiveRecord: 2.4ms)
|
9310
|
+
|
9311
|
+
|
9312
|
+
Started GET "/products" for 127.0.0.1 at 2012-10-14 01:47:19 +0200
|
9313
|
+
Processing by ProductsController#index as HTML
|
9314
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products"
|
9315
|
+
[1m[36m (0.2ms)[0m [1mSELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
9316
|
+
Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms)
|
9317
|
+
[1m[35mProduct Load (0.3ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 1]]
|
9318
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
9319
|
+
[1m[35m (0.9ms)[0m DELETE FROM "categories";
|
9320
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
9321
|
+
[1m[35m (0.8ms)[0m DELETE FROM "products";
|
9322
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
9323
|
+
[1m[35m (0.9ms)[0m DELETE FROM "product_has_categories";
|
9324
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
9325
|
+
[1m[35m (1.1ms)[0m DELETE FROM "items";
|
9326
|
+
[1m[36m (0.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
9327
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9328
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00]]
|
9329
|
+
[1m[35m (1.8ms)[0m commit transaction
|
9330
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9331
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00]]
|
9332
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
9333
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9334
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00]]
|
9335
|
+
[1m[35m (0.9ms)[0m commit transaction
|
9336
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 2)[0m
|
9337
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9338
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00], ["name", "new one"], ["updated_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00]]
|
9339
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00]]
|
9340
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 2], ["created_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00]]
|
9341
|
+
[1m[35m (1.2ms)[0m commit transaction
|
9342
|
+
|
9343
|
+
|
9344
|
+
Started GET "/products" for 127.0.0.1 at 2012-10-14 01:47:20 +0200
|
9345
|
+
Processing by ProductsController#index as HTML
|
9346
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" [0m
|
9347
|
+
[1m[35m (0.1ms)[0m SELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
9348
|
+
Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.3ms)
|
9349
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "categories";[0m
|
9350
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
9351
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "products";[0m
|
9352
|
+
[1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
9353
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
9354
|
+
[1m[35m (1.4ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
9355
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "items";[0m
|
9356
|
+
[1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
9357
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9358
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00]]
|
9359
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
9360
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9361
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00]]
|
9362
|
+
[1m[35m (0.9ms)[0m commit transaction
|
9363
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9364
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00]]
|
9365
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
9366
|
+
|
9367
|
+
|
9368
|
+
Started GET "/products/new" for 127.0.0.1 at 2012-10-14 01:47:20 +0200
|
9369
|
+
Processing by ProductsController#new as HTML
|
9370
|
+
[1m[35m (0.1ms)[0m SELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" IS NULL
|
9371
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" IS NULL[0m
|
9372
|
+
Rendered products/_form.html.erb (4.6ms)
|
9373
|
+
Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.2ms)
|
9374
|
+
|
9375
|
+
|
9376
|
+
Started POST "/products" for 127.0.0.1 at 2012-10-14 01:47:20 +0200
|
9377
|
+
Processing by ProductsController#create as HTML
|
9378
|
+
Parameters: {"utf8"=>"✓", "product"=>{"name"=>"hello", "category_ids"=>"3, 1"}, "commit"=>"Create Product"}
|
9379
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (3, 1)
|
9380
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9381
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00]]
|
9382
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 3], ["created_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00]]
|
9383
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00]]
|
9384
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
9385
|
+
Redirected to http://www.example.com/products
|
9386
|
+
Completed 302 Found in 7ms (ActiveRecord: 1.9ms)
|
9387
|
+
|
9388
|
+
|
9389
|
+
Started GET "/products" for 127.0.0.1 at 2012-10-14 01:47:20 +0200
|
9390
|
+
Processing by ProductsController#index as HTML
|
9391
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products"
|
9392
|
+
[1m[36m (0.1ms)[0m [1mSELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
9393
|
+
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.3ms)
|
9394
|
+
[1m[35mProduct Load (0.2ms)[0m SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1
|
9395
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
9396
|
+
[1m[35m (1.9ms)[0m DELETE FROM "categories";
|
9397
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
9398
|
+
[1m[35m (1.0ms)[0m DELETE FROM "products";
|
9399
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
9400
|
+
[1m[35m (0.9ms)[0m DELETE FROM "product_has_categories";
|
9401
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
9402
|
+
[1m[35m (0.8ms)[0m DELETE FROM "items";
|
9403
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
9404
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9405
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00]]
|
9406
|
+
[1m[35m (1.8ms)[0m commit transaction
|
9407
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9408
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00]]
|
9409
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
9410
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9411
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:20 UTC +00:00]]
|
9412
|
+
[1m[35m (1.6ms)[0m commit transaction
|
9413
|
+
|
9414
|
+
|
9415
|
+
Started GET "/products/new" for 127.0.0.1 at 2012-10-14 01:47:20 +0200
|
9416
|
+
Processing by ProductsController#new as HTML
|
9417
|
+
[1m[36m (0.2ms)[0m [1mSELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" IS NULL[0m
|
9418
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" IS NULL
|
9419
|
+
Rendered products/_form.html.erb (6.0ms)
|
9420
|
+
Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.3ms)
|
9421
|
+
|
9422
|
+
|
9423
|
+
Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 01:47:20 +0200
|
9424
|
+
Processing by CategoriesController#token as JSON
|
9425
|
+
Parameters: {"q"=>"shoes"}
|
9426
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%')[0m
|
9427
|
+
Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
9428
|
+
|
9429
|
+
|
9430
|
+
Started GET "/categories/token?q=pents" for 127.0.0.1 at 2012-10-14 01:47:22 +0200
|
9431
|
+
Processing by CategoriesController#token as JSON
|
9432
|
+
Parameters: {"q"=>"pents"}
|
9433
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE (categories.name like '%pents%')
|
9434
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
9435
|
+
|
9436
|
+
|
9437
|
+
Started POST "/products" for 127.0.0.1 at 2012-10-14 01:47:23 +0200
|
9438
|
+
Processing by ProductsController#create as HTML
|
9439
|
+
Parameters: {"utf8"=>"✓", "product"=>{"name"=>"hello", "category_ids"=>"1,3"}, "commit"=>"Create Product"}
|
9440
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 3)[0m
|
9441
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9442
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:23 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 23:47:23 UTC +00:00]]
|
9443
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 23:47:23 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:47:23 UTC +00:00]]
|
9444
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 3], ["created_at", Sat, 13 Oct 2012 23:47:23 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:47:23 UTC +00:00]]
|
9445
|
+
[1m[35m (2.5ms)[0m commit transaction
|
9446
|
+
Redirected to http://127.0.0.1:57074/products
|
9447
|
+
Completed 302 Found in 11ms (ActiveRecord: 4.0ms)
|
9448
|
+
|
9449
|
+
|
9450
|
+
Started GET "/products" for 127.0.0.1 at 2012-10-14 01:47:23 +0200
|
9451
|
+
Processing by ProductsController#index as HTML
|
9452
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" [0m
|
9453
|
+
[1m[35m (0.1ms)[0m SELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
9454
|
+
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)
|
9455
|
+
[1m[36mProduct Load (0.2ms)[0m [1mSELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1[0m
|
9456
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
9457
|
+
[1m[36m (1.5ms)[0m [1mDELETE FROM "categories";[0m
|
9458
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
9459
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "products";[0m
|
9460
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
9461
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
9462
|
+
[1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
9463
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "items";[0m
|
9464
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
9465
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9466
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:47:23 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:23 UTC +00:00]]
|
9467
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
9468
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9469
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 23:47:23 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:23 UTC +00:00]]
|
9470
|
+
[1m[35m (1.1ms)[0m commit transaction
|
9471
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9472
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:47:23 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 23:47:23 UTC +00:00]]
|
9473
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
9474
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 3)
|
9475
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9476
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 13 Oct 2012 23:47:23 UTC +00:00], ["name", "product"], ["updated_at", Sat, 13 Oct 2012 23:47:23 UTC +00:00]]
|
9477
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 23:47:23 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:47:23 UTC +00:00]]
|
9478
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 3], ["created_at", Sat, 13 Oct 2012 23:47:23 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:47:23 UTC +00:00]]
|
9479
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
9480
|
+
|
9481
|
+
|
9482
|
+
Started GET "/products/1/edit" for 127.0.0.1 at 2012-10-14 01:47:23 +0200
|
9483
|
+
Processing by ProductsController#edit as HTML
|
9484
|
+
Parameters: {"id"=>"1"}
|
9485
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", "1"]]
|
9486
|
+
[1m[36m (0.1ms)[0m [1mSELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
9487
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
9488
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
9489
|
+
Rendered products/_form.html.erb (6.4ms)
|
9490
|
+
Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.5ms)
|
9491
|
+
|
9492
|
+
|
9493
|
+
Started PUT "/products/1" for 127.0.0.1 at 2012-10-14 01:47:23 +0200
|
9494
|
+
Processing by ProductsController#update as HTML
|
9495
|
+
Parameters: {"utf8"=>"✓", "product"=>{"name"=>"product", "category_ids"=>"2, 1"}, "commit"=>"Update Product", "id"=>"1"}
|
9496
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", "1"]]
|
9497
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9498
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (2, 1)
|
9499
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
9500
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "product_has_categories" WHERE "product_has_categories"."product_id" = 1 AND "product_has_categories"."category_id" = 3
|
9501
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 2], ["created_at", Sat, 13 Oct 2012 23:47:23 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 23:47:23 UTC +00:00]]
|
9502
|
+
[1m[35m (1.6ms)[0m commit transaction
|
9503
|
+
Redirected to http://www.example.com/products
|
9504
|
+
Completed 302 Found in 7ms (ActiveRecord: 2.4ms)
|
9505
|
+
|
9506
|
+
|
9507
|
+
Started GET "/products" for 127.0.0.1 at 2012-10-14 01:47:23 +0200
|
9508
|
+
Processing by ProductsController#index as HTML
|
9509
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" [0m
|
9510
|
+
[1m[35m (0.1ms)[0m SELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
9511
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)
|
9512
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1[0m [["id", 1]]
|
9513
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
9514
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "categories";[0m
|
9515
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
9516
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "products";[0m
|
9517
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
9518
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
9519
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
9520
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "items";[0m
|
9521
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|