spec/dummy/log/test.log in token_field-0.0.2 vs spec/dummy/log/test.log in token_field-0.0.3

- old
+ new

@@ -7447,5 +7447,695 @@  (0.4ms) DELETE FROM sqlite_sequence where name = 'products';  (0.8ms) DELETE FROM "product_has_categories";  (0.5ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';  (1.3ms) DELETE FROM "items";  (1.6ms) DELETE FROM sqlite_sequence where name = 'items'; +Connecting to database specified by database.yml +  (0.1ms) begin transaction + SQL (5.2ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:16 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:16 UTC +00:00]] +  (2.3ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:16 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:16 UTC +00:00]] +  (1.3ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:16 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:16 UTC +00:00]] +  (1.3ms) commit transaction + + +Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:52:17 +0200 +Processing by ItemsController#new as HTML + Rendered items/_form.html.erb (85.2ms) + Rendered items/new.html.erb within layouts/application (89.7ms) +Completed 200 OK in 153ms (Views: 146.8ms | ActiveRecord: 0.2ms) + + +Started POST "/items" for 127.0.0.1 at 2012-10-14 00:52:17 +0200 +Processing by ItemsController#create as HTML + Parameters: {"utf8"=>"✓", "item"=>{"name"=>"hello", "category_id"=>"1"}, "commit"=>"Create Item"} +  (0.1ms) begin transaction + SQL (0.5ms) INSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:52:17 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:52:17 UTC +00:00]] +  (152.4ms) commit transaction +Redirected to http://www.example.com/items +Completed 302 Found in 156ms (ActiveRecord: 152.9ms) + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:52:17 +0200 +Processing by ItemsController#index as HTML + Item Load (0.1ms) SELECT "items".* FROM "items"  + Rendered items/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms) + Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1 +  (165.0ms) DELETE FROM "categories"; +  (105.9ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (0.9ms) DELETE FROM "products"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'products'; +  (0.9ms) DELETE FROM "product_has_categories"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (0.9ms) DELETE FROM "items"; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'items'; +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:17 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:17 UTC +00:00]] +  (1.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:17 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:17 UTC +00:00]] +  (0.9ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:17 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:17 UTC +00:00]] +  (0.9ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:52:17 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 22:52:17 UTC +00:00]] +  (1.1ms) commit transaction + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1 + + +Started GET "/items/1/edit" for 127.0.0.1 at 2012-10-14 00:52:21 +0200 +Processing by ItemsController#edit as HTML + Parameters: {"id"=>"1"} + Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1 + Rendered items/_form.html.erb (9.6ms) +Completed 200 OK in 18ms (Views: 13.3ms | ActiveRecord: 1.7ms) + + +Started GET "/assets/application.css" for 127.0.0.1 at 2012-10-14 00:52:21 +0200 +Served asset /application.css - 200 OK (41ms) + + +Started GET "/assets/application.js" for 127.0.0.1 at 2012-10-14 00:52:21 +0200 +Served asset /application.js - 200 OK (29ms) + + +Started GET "/categories/token?q=skirt" for 127.0.0.1 at 2012-10-14 00:52:22 +0200 +Processing by CategoriesController#token as JSON + Parameters: {"q"=>"skirt"} + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%skirt%') +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started PUT "/items/1" for 127.0.0.1 at 2012-10-14 00:52:23 +0200 +Processing by ItemsController#update as HTML + Parameters: {"utf8"=>"✓", "item"=>{"name"=>"item", "category_id"=>"2"}, "commit"=>"Update Item", "id"=>"1"} + Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) begin transaction +  (0.3ms) UPDATE "items" SET "category_id" = 2, "updated_at" = '2012-10-13 22:52:23.072513' WHERE "items"."id" = 1 +  (1.0ms) commit transaction +Redirected to http://127.0.0.1:54365/items +Completed 302 Found in 7ms (ActiveRecord: 1.5ms) + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:52:23 +0200 +Processing by ItemsController#index as HTML + Item Load (0.1ms) SELECT "items".* FROM "items" +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms) + Item Load (0.3ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1 +  (105.0ms) DELETE FROM "categories"; +  (115.9ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.1ms) DELETE FROM "products"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'products'; +  (28.8ms) DELETE FROM "product_has_categories"; +  (0.5ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (1.0ms) DELETE FROM "items"; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'items'; +  (0.1ms) begin transaction + SQL (0.6ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]] +  (1.7ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]] +  (1.4ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]] +  (1.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.4ms) INSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00], ["name", "new one"], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]] +  (1.1ms) commit transaction + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:52:23 +0200 +Processing by ItemsController#index as HTML + Item Load (0.2ms) SELECT "items".* FROM "items"  +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms) +  (1.0ms) DELETE FROM "categories"; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.6ms) DELETE FROM "products"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'products'; +  (1.0ms) DELETE FROM "product_has_categories"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (0.9ms) DELETE FROM "items"; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'items'; +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]] +  (1.7ms) commit transaction +  (0.1ms) begin transaction + SQL (0.5ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]] +  (1.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.5ms) INSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]] +  (1.0ms) commit transaction + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1 + + +Started GET "/items/1/edit" for 127.0.0.1 at 2012-10-14 00:52:23 +0200 +Processing by ItemsController#edit as HTML + Parameters: {"id"=>"1"} + Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1 + Rendered items/_form.html.erb (5.4ms) +Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.3ms) + + +Started PUT "/items/1" for 127.0.0.1 at 2012-10-14 00:52:23 +0200 +Processing by ItemsController#update as HTML + Parameters: {"utf8"=>"✓", "item"=>{"name"=>"item", "category_id"=>"2"}, "commit"=>"Update Item", "id"=>"1"} + Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]] +  (0.0ms) begin transaction +  (0.2ms) UPDATE "items" SET "category_id" = 2, "updated_at" = '2012-10-13 22:52:23.603118' WHERE "items"."id" = 1 +  (0.9ms) commit transaction +Redirected to http://www.example.com/items +Completed 302 Found in 4ms (ActiveRecord: 1.3ms) + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:52:23 +0200 +Processing by ItemsController#index as HTML + Item Load (0.1ms) SELECT "items".* FROM "items"  +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms) + Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1 +  (0.9ms) DELETE FROM "categories"; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.0ms) DELETE FROM "products"; +  (0.5ms) DELETE FROM sqlite_sequence where name = 'products'; +  (0.9ms) DELETE FROM "product_has_categories"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (1.1ms) DELETE FROM "items"; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'items'; +  (0.1ms) begin transaction + SQL (0.5ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]] +  (1.7ms) commit transaction +  (0.1ms) begin transaction + SQL (0.5ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]] +  (1.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]] +  (0.9ms) commit transaction + + +Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:52:23 +0200 +Processing by ItemsController#new as HTML + Rendered items/_form.html.erb (5.5ms) +Completed 200 OK in 7ms (Views: 7.1ms | ActiveRecord: 0.0ms) + + +Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 00:52:24 +0200 +Processing by CategoriesController#token as JSON + Parameters: {"q"=>"shoes"} + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%') +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started POST "/items" for 127.0.0.1 at 2012-10-14 00:52:25 +0200 +Processing by ItemsController#create as HTML + Parameters: {"utf8"=>"✓", "item"=>{"name"=>"hello", "category_id"=>"1"}, "commit"=>"Create Item"} +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00]] +  (0.9ms) commit transaction +Redirected to http://127.0.0.1:54365/items +Completed 302 Found in 3ms (ActiveRecord: 1.4ms) + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:52:25 +0200 +Processing by ItemsController#index as HTML + Item Load (0.2ms) SELECT "items".* FROM "items"  +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms) + Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1 +  (1.2ms) DELETE FROM "categories"; +  (4.3ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (34.6ms) DELETE FROM "products"; +  (0.5ms) DELETE FROM sqlite_sequence where name = 'products'; +  (0.9ms) DELETE FROM "product_has_categories"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (50.0ms) DELETE FROM "items"; +  (1.2ms) DELETE FROM sqlite_sequence where name = 'items'; +  (0.1ms) begin transaction + SQL (0.5ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00]] +  (1.7ms) commit transaction + + +Started GET "/categories/new" for 127.0.0.1 at 2012-10-14 00:52:25 +0200 +Processing by CategoriesController#new as HTML + Rendered categories/_form.html.erb (4.8ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) + + +Started POST "/categories" for 127.0.0.1 at 2012-10-14 00:52:25 +0200 +Processing by CategoriesController#create as HTML + Parameters: {"utf8"=>"✓", "category"=>{"name"=>"hello", "parent_id"=>"1"}, "commit"=>"Create Category"} +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00], ["name", "hello"], ["parent_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00]] +  (0.8ms) commit transaction +Redirected to http://www.example.com/categories +Completed 302 Found in 3ms (ActiveRecord: 1.3ms) + + +Started GET "/categories" for 127.0.0.1 at 2012-10-14 00:52:25 +0200 +Processing by CategoriesController#index as HTML + Category Load (0.2ms) SELECT "categories".* FROM "categories" +Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms) + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1 +  (1.1ms) DELETE FROM "categories"; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (0.8ms) DELETE FROM "products"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'products'; +  (0.9ms) DELETE FROM "product_has_categories"; +  (0.3ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (0.9ms) DELETE FROM "items"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'items'; +  (0.1ms) begin transaction + SQL (0.6ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00]] +  (1.6ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00], ["name", "new parent"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00]] +  (1.1ms) commit transaction +  (0.1ms) begin transaction + SQL (30.8ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00], ["name", "category_1"], ["parent_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00]] +  (1.0ms) commit transaction + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1 + + +Started GET "/categories/3/edit" for 127.0.0.1 at 2012-10-14 00:52:25 +0200 +Processing by CategoriesController#edit as HTML + Parameters: {"id"=>"3"} + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "3"]] + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1 + Rendered categories/_form.html.erb (4.6ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.4ms) + + +Started GET "/categories/token?q=new+parent" for 127.0.0.1 at 2012-10-14 00:52:26 +0200 +Processing by CategoriesController#token as JSON + Parameters: {"q"=>"new parent"} + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%new parent%') +Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms) + + +Started PUT "/categories/3" for 127.0.0.1 at 2012-10-14 00:52:26 +0200 +Processing by CategoriesController#update as HTML + Parameters: {"utf8"=>"✓", "category"=>{"name"=>"category_1", "parent_id"=>"2"}, "commit"=>"Update Category", "id"=>"3"} + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "3"]] +  (0.1ms) begin transaction +  (0.4ms) UPDATE "categories" SET "parent_id" = 2, "updated_at" = '2012-10-13 22:52:26.844819' WHERE "categories"."id" = 3 +  (0.8ms) commit transaction +Redirected to http://127.0.0.1:54365/categories +Completed 302 Found in 6ms (ActiveRecord: 1.4ms) + + +Started GET "/categories" for 127.0.0.1 at 2012-10-14 00:52:26 +0200 +Processing by CategoriesController#index as HTML + Category Load (0.1ms) SELECT "categories".* FROM "categories" +Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms) + Category Load (0.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1 +  (1.1ms) DELETE FROM "categories"; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (0.9ms) DELETE FROM "products"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'products'; +  (1.0ms) DELETE FROM "product_has_categories"; +  (0.5ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (1.0ms) DELETE FROM "items"; +  (0.7ms) DELETE FROM sqlite_sequence where name = 'items'; +  (0.1ms) begin transaction + SQL (0.6ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:26 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:26 UTC +00:00]] +  (1.0ms) commit transaction + + +Started GET "/categories" for 127.0.0.1 at 2012-10-14 00:52:26 +0200 +Processing by CategoriesController#index as HTML + Category Load (0.2ms) SELECT "categories".* FROM "categories" +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms) +  (1.1ms) DELETE FROM "categories"; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (0.9ms) DELETE FROM "products"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'products'; +  (1.0ms) DELETE FROM "product_has_categories"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (0.8ms) DELETE FROM "items"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'items'; +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:27 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:27 UTC +00:00]] +  (1.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:27 UTC +00:00], ["name", "category_2"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:27 UTC +00:00]] +  (0.9ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:27 UTC +00:00], ["name", "category_3"], ["parent_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:27 UTC +00:00]] +  (0.9ms) commit transaction + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1 + + +Started GET "/categories/3/edit" for 127.0.0.1 at 2012-10-14 00:52:27 +0200 +Processing by CategoriesController#edit as HTML + Parameters: {"id"=>"3"} + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "3"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1 + Rendered categories/_form.html.erb (3.7ms) +Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.3ms) + + +Started PUT "/categories/3" for 127.0.0.1 at 2012-10-14 00:52:27 +0200 +Processing by CategoriesController#update as HTML + Parameters: {"utf8"=>"✓", "category"=>{"name"=>"category_3", "parent_id"=>"2"}, "commit"=>"Update Category", "id"=>"3"} + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "3"]] +  (0.0ms) begin transaction +  (0.2ms) UPDATE "categories" SET "parent_id" = 2, "updated_at" = '2012-10-13 22:52:27.067993' WHERE "categories"."id" = 3 +  (0.9ms) commit transaction +Redirected to http://www.example.com/categories +Completed 302 Found in 3ms (ActiveRecord: 1.3ms) + + +Started GET "/categories" for 127.0.0.1 at 2012-10-14 00:52:27 +0200 +Processing by CategoriesController#index as HTML + Category Load (0.1ms) SELECT "categories".* FROM "categories"  +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1 +  (1.1ms) DELETE FROM "categories"; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (0.9ms) DELETE FROM "products"; +  (0.5ms) DELETE FROM sqlite_sequence where name = 'products'; +  (0.9ms) DELETE FROM "product_has_categories"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (0.9ms) DELETE FROM "items"; +  (0.5ms) DELETE FROM sqlite_sequence where name = 'items'; +  (0.1ms) begin transaction + SQL (0.5ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:27 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:27 UTC +00:00]] +  (1.7ms) commit transaction + + +Started GET "/categories/new" for 127.0.0.1 at 2012-10-14 00:52:27 +0200 +Processing by CategoriesController#new as HTML + Rendered categories/_form.html.erb (2.7ms) +Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) + + +Started GET "/categories/token?q=wood" for 127.0.0.1 at 2012-10-14 00:52:27 +0200 +Processing by CategoriesController#token as JSON + Parameters: {"q"=>"wood"} + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%wood%') +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started POST "/categories" for 127.0.0.1 at 2012-10-14 00:52:28 +0200 +Processing by CategoriesController#create as HTML + Parameters: {"utf8"=>"✓", "category"=>{"name"=>"hello", "parent_id"=>"1"}, "commit"=>"Create Category"} +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["name", "hello"], ["parent_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]] +  (0.7ms) commit transaction +Redirected to http://127.0.0.1:54365/categories +Completed 302 Found in 3ms (ActiveRecord: 1.2ms) + + +Started GET "/categories" for 127.0.0.1 at 2012-10-14 00:52:28 +0200 +Processing by CategoriesController#index as HTML + Category Load (0.2ms) SELECT "categories".* FROM "categories"  +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms) + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1 +  (1.0ms) DELETE FROM "categories"; +  (0.8ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (0.9ms) DELETE FROM "products"; +  (0.3ms) DELETE FROM sqlite_sequence where name = 'products'; +  (1.0ms) DELETE FROM "product_has_categories"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (0.9ms) DELETE FROM "items"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'items'; +  (0.1ms) begin transaction + SQL (0.5ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + SQL (0.5ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]] +  (1.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]] +  (0.9ms) commit transaction + + +Started GET "/products/new" for 127.0.0.1 at 2012-10-14 00:52:28 +0200 +Processing by ProductsController#new as HTML +  (0.1ms) 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 +  (0.1ms) 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 + Rendered products/_form.html.erb (99.3ms) +Completed 200 OK in 108ms (Views: 102.1ms | ActiveRecord: 0.6ms) + + +Started POST "/products" for 127.0.0.1 at 2012-10-14 00:52:28 +0200 +Processing by ProductsController#create as HTML + Parameters: {"utf8"=>"✓", "product"=>{"name"=>"hello", "category_ids"=>"3, 1"}, "commit"=>"Create Product"} + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (3, 1) +  (0.0ms) begin transaction + SQL (0.4ms) INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]] + SQL (0.3ms) INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 3], ["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]] + SQL (0.1ms) INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]] +  (1.8ms) commit transaction +Redirected to http://www.example.com/products +Completed 302 Found in 19ms (ActiveRecord: 2.9ms) + + +Started GET "/products" for 127.0.0.1 at 2012-10-14 00:52:28 +0200 +Processing by ProductsController#index as HTML + Product Load (0.2ms) SELECT "products".* FROM "products"  +  (0.1ms) 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 +Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms) + Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1 +  (0.9ms) DELETE FROM "categories"; +  (1.7ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.0ms) DELETE FROM "products"; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'products'; +  (1.0ms) DELETE FROM "product_has_categories"; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (0.9ms) DELETE FROM "items"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'items'; +  (0.1ms) begin transaction + SQL (0.6ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]] +  (1.0ms) commit transaction +  (0.1ms) begin transaction + SQL (0.6ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]] +  (1.2ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]] +  (1.0ms) commit transaction + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 3) +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["name", "product"], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]] + SQL (0.1ms) INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]] + SQL (0.1ms) INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 3], ["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]] +  (1.4ms) commit transaction + + +Started GET "/products/1/edit" for 127.0.0.1 at 2012-10-14 00:52:28 +0200 +Processing by ProductsController#edit as HTML + Parameters: {"id"=>"1"} + Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) 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 +  (0.1ms) SELECT COUNT(*) FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1 + Rendered products/_form.html.erb (6.7ms) +Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.8ms) + + +Started GET "/categories/token?q=skirt" for 127.0.0.1 at 2012-10-14 00:52:29 +0200 +Processing by CategoriesController#token as JSON + Parameters: {"q"=>"skirt"} + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%skirt%') +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 00:52:30 +0200 +Processing by CategoriesController#token as JSON + Parameters: {"q"=>"shoes"} + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%') +Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started PUT "/products/1" for 127.0.0.1 at 2012-10-14 00:52:31 +0200 +Processing by ProductsController#update as HTML + Parameters: {"utf8"=>"✓", "product"=>{"name"=>"product", "category_ids"=>"2,1"}, "commit"=>"Update Product", "id"=>"1"} + Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) begin transaction + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (2, 1) + Category Load (0.1ms) SELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1 + SQL (0.3ms) DELETE FROM "product_has_categories" WHERE "product_has_categories"."product_id" = 1 AND "product_has_categories"."category_id" = 3 + SQL (0.5ms) INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 2], ["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]] +  (1.3ms) commit transaction +Redirected to http://127.0.0.1:54365/products +Completed 302 Found in 15ms (ActiveRecord: 2.6ms) + + +Started GET "/products" for 127.0.0.1 at 2012-10-14 00:52:31 +0200 +Processing by ProductsController#index as HTML + Product Load (0.1ms) SELECT "products".* FROM "products"  +  (0.1ms) 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 +Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms) + Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.2ms) SELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1 +  (0.9ms) DELETE FROM "categories"; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (0.9ms) DELETE FROM "products"; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'products'; +  (0.9ms) DELETE FROM "product_has_categories"; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (1.1ms) DELETE FROM "items"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'items'; +  (0.1ms) begin transaction + SQL (0.6ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + SQL (0.5ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]] +  (1.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]] +  (1.0ms) commit transaction + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 2) +  (0.0ms) begin transaction + SQL (0.4ms) INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "new one"], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]] + SQL (0.1ms) INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]] + SQL (0.1ms) INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 2], ["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]] +  (1.2ms) commit transaction + + +Started GET "/products" for 127.0.0.1 at 2012-10-14 00:52:31 +0200 +Processing by ProductsController#index as HTML + Product Load (0.2ms) SELECT "products".* FROM "products" +  (0.1ms) 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 +Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.3ms) +  (1.1ms) DELETE FROM "categories"; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.0ms) DELETE FROM "products"; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'products'; +  (1.0ms) DELETE FROM "product_has_categories"; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (1.0ms) DELETE FROM "items"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'items'; +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]] +  (1.5ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]] +  (1.7ms) commit transaction + Category Load (0.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 3) +  (0.0ms) begin transaction + SQL (0.4ms) INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "product"], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]] + SQL (0.2ms) INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]] + SQL (0.1ms) INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 3], ["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]] +  (1.2ms) commit transaction + + +Started GET "/products/1/edit" for 127.0.0.1 at 2012-10-14 00:52:31 +0200 +Processing by ProductsController#edit as HTML + Parameters: {"id"=>"1"} + Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) 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 +  (0.2ms) SELECT COUNT(*) FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1 + Rendered products/_form.html.erb (6.0ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.6ms) + + +Started PUT "/products/1" for 127.0.0.1 at 2012-10-14 00:52:31 +0200 +Processing by ProductsController#update as HTML + Parameters: {"utf8"=>"✓", "product"=>{"name"=>"product", "category_ids"=>"2, 1"}, "commit"=>"Update Product", "id"=>"1"} + Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) begin transaction + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (2, 1) + Category Load (0.1ms) SELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1 + SQL (0.2ms) DELETE FROM "product_has_categories" WHERE "product_has_categories"."product_id" = 1 AND "product_has_categories"."category_id" = 3 + SQL (0.3ms) INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 2], ["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]] +  (1.2ms) commit transaction +Redirected to http://www.example.com/products +Completed 302 Found in 8ms (ActiveRecord: 2.1ms) + + +Started GET "/products" for 127.0.0.1 at 2012-10-14 00:52:31 +0200 +Processing by ProductsController#index as HTML + Product Load (0.1ms) SELECT "products".* FROM "products" +  (0.1ms) 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 +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms) + Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1 +  (1.0ms) DELETE FROM "categories"; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (0.9ms) DELETE FROM "products"; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'products'; +  (0.9ms) DELETE FROM "product_has_categories"; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (0.9ms) DELETE FROM "items"; +  (0.5ms) DELETE FROM sqlite_sequence where name = 'items'; +  (0.1ms) begin transaction + SQL (0.6ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]] +  (1.6ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]] +  (1.0ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]] +  (1.0ms) commit transaction + + +Started GET "/products/new" for 127.0.0.1 at 2012-10-14 00:52:31 +0200 +Processing by ProductsController#new as HTML +  (0.3ms) 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 +  (0.1ms) 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 + Rendered products/_form.html.erb (7.1ms) +Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.4ms) + + +Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 00:52:32 +0200 +Processing by CategoriesController#token as JSON + Parameters: {"q"=>"shoes"} + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%') +Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/categories/token?q=pents" for 127.0.0.1 at 2012-10-14 00:52:34 +0200 +Processing by CategoriesController#token as JSON + Parameters: {"q"=>"pents"} + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%pents%') +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started POST "/products" for 127.0.0.1 at 2012-10-14 00:52:34 +0200 +Processing by ProductsController#create as HTML + Parameters: {"utf8"=>"✓", "product"=>{"name"=>"hello", "category_ids"=>"1,3"}, "commit"=>"Create Product"} + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 3) +  (0.1ms) begin transaction + SQL (0.6ms) INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:34 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:52:34 UTC +00:00]] + SQL (0.3ms) INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:52:34 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:34 UTC +00:00]] + SQL (0.2ms) INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 3], ["created_at", Sat, 13 Oct 2012 22:52:34 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:34 UTC +00:00]] +  (3.0ms) commit transaction +Redirected to http://127.0.0.1:54365/products +Completed 302 Found in 11ms (ActiveRecord: 4.4ms) + + +Started GET "/products" for 127.0.0.1 at 2012-10-14 00:52:34 +0200 +Processing by ProductsController#index as HTML + Product Load (0.1ms) SELECT "products".* FROM "products"  +  (0.1ms) 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 +Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.2ms) + Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1 +  (1.2ms) DELETE FROM "categories"; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.1ms) DELETE FROM "products"; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'products'; +  (1.1ms) DELETE FROM "product_has_categories"; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (0.9ms) DELETE FROM "items"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'items';