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

- old
+ new

@@ -5934,5 +5934,1518 @@  (1.3ms) DELETE FROM sqlite_sequence where name = 'categories';  (1.0ms) DELETE FROM "products";  (0.5ms) DELETE FROM sqlite_sequence where name = 'products';  (22.4ms) DELETE FROM "product_has_categories";  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +Connecting to database specified by database.yml +  (0.1ms) begin transaction + SQL (7.6ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:12:52 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:12:52 UTC +00:00]] +  (1.3ms) commit transaction +  (0.1ms) begin transaction + SQL (0.8ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:12:52 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:12:52 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:12:52 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:12:52 UTC +00:00]] +  (1.0ms) commit transaction +  (0.8ms) DELETE FROM "categories"; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (22.9ms) DELETE FROM "products"; +  (0.5ms) DELETE FROM sqlite_sequence where name = 'products'; +  (0.9ms) DELETE FROM "product_has_categories"; +  (11.9ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (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:12:53 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:12:53 UTC +00:00]] +  (3.2ms) commit transaction +  (0.1ms) begin transaction + SQL (1.2ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:12:53 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:12:53 UTC +00:00]] +  (2.1ms) 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:12:53 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:12:53 UTC +00:00]] +  (0.8ms) commit transaction + + +Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:12:53 +0200 +Processing by ItemsController#new as HTML +Completed 500 Internal Server Error in 2ms +  (1.2ms) DELETE FROM "categories"; +  (1.1ms) 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"; +  (3.6ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (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:12:53 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:12:53 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:12:53 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:12:53 UTC +00:00]] +  (0.8ms) 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:12:53 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:12:53 UTC +00:00]] +  (1.1ms) commit transaction +  (2.5ms) DELETE FROM "categories"; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.0ms) DELETE FROM "products"; +  (0.5ms) DELETE FROM sqlite_sequence where name = 'products'; +  (1.3ms) DELETE FROM "product_has_categories"; +  (1.8ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (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:12:53 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:12:53 UTC +00:00]] +  (7.6ms) 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:12:53 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:12:53 UTC +00:00]] +  (3.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:12:53 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:12:53 UTC +00:00]] +  (1.0ms) commit transaction + + +Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:13:02 +0200 +Processing by ItemsController#new as HTML +Completed 500 Internal Server Error in 1ms +  (2.2ms) DELETE FROM "categories"; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (0.9ms) DELETE FROM "products"; +  (1.1ms) 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'; +  (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:13:04 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:13:04 UTC +00:00]] +  (1.4ms) 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:13:04 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:13:04 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:13:04 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:13:04 UTC +00:00]] +  (1.0ms) commit transaction +  (1.0ms) DELETE FROM "categories"; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.0ms) DELETE FROM "products"; +  (0.3ms) DELETE FROM sqlite_sequence where name = 'products'; +  (1.1ms) DELETE FROM "product_has_categories"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +Connecting to database specified by database.yml +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +Migrating to CreateCategories (20121012100526) +Migrating to CreateProducts (20121012235444) +Migrating to CreateProductHasCategories (20121012235509) +Migrating to CreateItems (20121013214019) +  (0.0ms) select sqlite_version(*) +  (0.0ms) begin transaction +  (0.4ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "category_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121013214019') +  (2.3ms) commit transaction +  (0.3ms) select sqlite_version(*) +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +  (0.0ms) PRAGMA index_list("categories") +  (0.0ms) PRAGMA index_list("items") +  (0.0ms) PRAGMA index_list("product_has_categories") +  (0.0ms) PRAGMA index_list("products") +Connecting to database specified by database.yml +  (0.1ms) begin transaction + SQL (4.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:13:21 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:13:21 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:13:21 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:13:21 UTC +00:00]] +  (1.0ms) 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:13:21 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:13:21 UTC +00:00]] +  (1.0ms) commit transaction + + +Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:13:23 +0200 +Processing by ItemsController#new as HTML + Rendered items/_form.html.erb (67.4ms) + Rendered items/new.html.erb within layouts/application (72.5ms) +Completed 200 OK in 121ms (Views: 113.9ms | ActiveRecord: 0.5ms) + + +Started GET "/assets/application.css" for 127.0.0.1 at 2012-10-14 00:13:24 +0200 +Compiled token-input-facebook.css (0ms) (pid 17853) +Compiled application.css (7ms) (pid 17853) +Served asset /application.css - 200 OK (15ms) + + +Started GET "/assets/application.js" for 127.0.0.1 at 2012-10-14 00:13:24 +0200 +Compiled jquery.js (4ms) (pid 17853) +Compiled jquery_ujs.js (0ms) (pid 17853) +Compiled jquery.tokeninput.js (26ms) (pid 17853) +Compiled application.js (44ms) (pid 17853) +Served asset /application.js - 200 OK (53ms) + + +Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 00:13:24 +0200 +Processing by CategoriesController#token as JSON + Parameters: {"q"=>"shoes"} + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%') +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started POST "/items" for 127.0.0.1 at 2012-10-14 00:13: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.9ms) INSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:13:25 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:13:25 UTC +00:00]] +  (1.2ms) commit transaction +Redirected to http://127.0.0.1:52870/items +Completed 302 Found in 8ms (ActiveRecord: 2.2ms) + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:13:25 +0200 +Processing by ItemsController#index as HTML + Item Load (0.1ms) SELECT "items".* FROM "items" + Rendered items/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.1ms) + Item Load (0.1ms) 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 +  (1.0ms) DELETE FROM "categories"; +  (1.2ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (0.8ms) DELETE FROM "products"; +  (0.3ms) 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"; +  (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:13:25 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:13:25 UTC +00:00]] +  (1.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:13:25 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:13:25 UTC +00:00]] +  (0.8ms) 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:13:25 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:13:25 UTC +00:00]] +  (0.9ms) commit transaction + + +Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:13:25 +0200 +Processing by ItemsController#new as HTML + Rendered items/_form.html.erb (3.7ms) +Completed 200 OK in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms) + + +Started POST "/items" for 127.0.0.1 at 2012-10-14 00:13: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:13:25 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:13:25 UTC +00:00]] +  (1.3ms) commit transaction +Redirected to http://www.example.com/items +Completed 302 Found in 4ms (ActiveRecord: 1.8ms) + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:13:25 +0200 +Processing by ItemsController#index as HTML + Item Load (0.1ms) SELECT "items".* FROM "items"  +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms) + Item Load (0.1ms) 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.0ms) DELETE FROM "categories"; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.0ms) DELETE FROM "products"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'products'; +  (1.1ms) DELETE FROM "product_has_categories"; +  (0.3ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (1.1ms) DELETE FROM "items"; +  (1.0ms) 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:13:26 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:13:26 UTC +00:00]] +  (1.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:13:26 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:13:26 UTC +00:00]] +  (15.7ms) 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:13:26 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:13:26 UTC +00:00]] +  (1.2ms) commit transaction +  (1.0ms) DELETE FROM "categories"; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.1ms) DELETE FROM "products"; +  (0.3ms) 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"; +  (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:13:26 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:13:26 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:13:26 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:13:26 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:13:26 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:13:26 UTC +00:00]] +  (1.0ms) commit transaction +  (0.9ms) DELETE FROM "categories"; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (0.9ms) DELETE FROM "products"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'products'; +  (0.8ms) 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.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:13:26 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:13:26 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:13:26 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:13:26 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:13:26 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:13:26 UTC +00:00]] +  (1.0ms) commit transaction +  (1.0ms) DELETE FROM "categories"; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.0ms) 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'; +  (1.3ms) DELETE FROM "items"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'items'; +Connecting to database specified by database.yml +  (0.1ms) begin transaction + SQL (5.6ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:13:59 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:13:59 UTC +00:00]] +  (2.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:13:59 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:13:59 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:13:59 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:13:59 UTC +00:00]] +  (1.0ms) commit transaction +  (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:13:59 UTC +00:00], ["name", "new one"], ["updated_at", Sat, 13 Oct 2012 22:13:59 UTC +00:00]] +  (1.3ms) commit transaction + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:13:59 +0200 +Processing by ItemsController#index as HTML + Item Load (0.2ms) SELECT "items".* FROM "items"  + Rendered items/index.html.erb within layouts/application (28.6ms) +Completed 200 OK in 39ms (Views: 37.7ms | ActiveRecord: 0.2ms) +  (1.8ms) DELETE FROM "categories"; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.0ms) DELETE FROM "products"; +  (0.7ms) DELETE FROM sqlite_sequence where name = 'products'; +  (1.1ms) DELETE FROM "product_has_categories"; +  (0.3ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (0.9ms) DELETE FROM "items"; +  (1.2ms) 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:14:00 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:00 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:14:00 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:00 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:14:00 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:00 UTC +00:00]] +  (1.4ms) commit transaction + + +Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:14:03 +0200 +Processing by ItemsController#new as HTML + Rendered items/_form.html.erb (85.7ms) +Completed 200 OK in 95ms (Views: 94.4ms | ActiveRecord: 0.0ms) + + +Started GET "/assets/application.css" for 127.0.0.1 at 2012-10-14 00:14:03 +0200 +Served asset /application.css - 200 OK (5ms) + + +Started GET "/assets/application.js" for 127.0.0.1 at 2012-10-14 00:14:03 +0200 +Served asset /application.js - 200 OK (7ms) + + +Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 00:14:03 +0200 +Processing by CategoriesController#token as JSON + Parameters: {"q"=>"shoes"} + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%') +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms) + + +Started POST "/items" for 127.0.0.1 at 2012-10-14 00:14:04 +0200 +Processing by ItemsController#create as HTML + Parameters: {"utf8"=>"✓", "item"=>{"name"=>"hello", "category_id"=>"1"}, "commit"=>"Create Item"} +  (0.1ms) begin transaction + SQL (0.7ms) INSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:14:04 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:14:04 UTC +00:00]] +  (1.4ms) commit transaction +Redirected to http://127.0.0.1:52937/items +Completed 302 Found in 5ms (ActiveRecord: 2.1ms) + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:14:04 +0200 +Processing by ItemsController#index as HTML + Item Load (0.1ms) SELECT "items".* FROM "items"  +Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms) + 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 +  (1.3ms) DELETE FROM "categories"; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.1ms) 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"; +  (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:14:04 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:04 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:14:04 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:04 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:14:04 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:04 UTC +00:00]] +  (1.0ms) commit transaction + + +Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:14:04 +0200 +Processing by ItemsController#new as HTML + Rendered items/_form.html.erb (3.9ms) +Completed 200 OK in 5ms (Views: 5.2ms | ActiveRecord: 0.0ms) + + +Started POST "/items" for 127.0.0.1 at 2012-10-14 00:14:04 +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:14:04 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:14:04 UTC +00:00]] +  (1.6ms) commit transaction +Redirected to http://www.example.com/items +Completed 302 Found in 4ms (ActiveRecord: 2.1ms) + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:14:04 +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" ORDER BY "items"."id" DESC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1 +  (1.1ms) DELETE FROM "categories"; +  (0.8ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.0ms) DELETE FROM "products"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'products'; +  (0.8ms) DELETE FROM "product_has_categories"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (1.5ms) DELETE FROM "items"; +  (0.9ms) 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:14:04 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:04 UTC +00:00]] +  (1.8ms) 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:14:04 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:04 UTC +00:00]] +  (1.0ms) 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:14:04 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:04 UTC +00:00]] +  (0.9ms) 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:14:05 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 22:14:05 UTC +00:00]] +  (1.6ms) commit transaction +  (1.0ms) DELETE FROM "categories"; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.0ms) 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.7ms) 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:14:05 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:05 UTC +00:00]] +  (1.4ms) 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:14:05 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:05 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:14:05 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:05 UTC +00:00]] +  (1.0ms) commit transaction +  (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:14:05 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 22:14:05 UTC +00:00]] +  (0.9ms) 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:14:05 +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.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1 + Rendered items/_form.html.erb (5.1ms) +Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.3ms) + + +Started GET "/categories/token?q=skirt" for 127.0.0.1 at 2012-10-14 00:14:05 +0200 +Processing by CategoriesController#token as JSON + Parameters: {"q"=>"skirt"} + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%skirt%') +Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms) + + +Started PUT "/items/1" for 127.0.0.1 at 2012-10-14 00:14:06 +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:14:06.454102' WHERE "items"."id" = 1 +  (1.0ms) commit transaction +Redirected to http://127.0.0.1:52937/items +Completed 302 Found in 6ms (ActiveRecord: 1.5ms) + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:14:06 +0200 +Processing by ItemsController#index as HTML + Item Load (0.1ms) SELECT "items".* FROM "items"  +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms) + Item Load (0.3ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1 +  (1.0ms) DELETE FROM "categories"; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (0.8ms) DELETE FROM "products"; +  (0.3ms) DELETE FROM sqlite_sequence where name = 'products'; +  (0.8ms) DELETE FROM "product_has_categories"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (1.0ms) DELETE FROM "items"; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'items'; +Connecting to database specified by database.yml +  (0.1ms) begin transaction + SQL (4.3ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:14:25 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:25 UTC +00:00]] +  (2.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:14:25 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:25 UTC +00:00]] +  (1.0ms) 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:14:25 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:25 UTC +00:00]] +  (0.9ms) commit transaction +  (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:14:25 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 22:14:25 UTC +00:00]] +  (1.2ms) 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:14:29 +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.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1 + Rendered items/_form.html.erb (63.4ms) + Rendered items/edit.html.erb within layouts/application (70.4ms) +Completed 200 OK in 85ms (Views: 82.2ms | ActiveRecord: 0.9ms) + + +Started GET "/assets/application.css" for 127.0.0.1 at 2012-10-14 00:14:29 +0200 +Served asset /application.css - 200 OK (5ms) + + +Started GET "/assets/application.js" for 127.0.0.1 at 2012-10-14 00:14:29 +0200 +Served asset /application.js - 200 OK (6ms) + + +Started GET "/categories/token?q=skirt" for 127.0.0.1 at 2012-10-14 00:14:30 +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:14:31 +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.4ms) UPDATE "items" SET "category_id" = 2, "updated_at" = '2012-10-13 22:14:31.234759' WHERE "items"."id" = 1 +  (116.3ms) commit transaction +Redirected to http://127.0.0.1:53017/items +Completed 302 Found in 122ms (ActiveRecord: 116.9ms) + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:14:32 +0200 +Processing by ItemsController#index as HTML + Item Load (0.4ms) SELECT "items".* FROM "items"  + Rendered items/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.4ms) + Item Load (0.3ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1 +  (33.4ms) DELETE FROM "categories"; +  (2.3ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.1ms) DELETE FROM "products"; +  (0.3ms) DELETE FROM sqlite_sequence where name = 'products'; +  (0.9ms) DELETE FROM "product_has_categories"; +  (0.5ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (0.9ms) 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:14:32 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:32 UTC +00:00]] +  (1.1ms) 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:14:32 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:32 UTC +00:00]] +  (1.0ms) 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:14:32 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:32 UTC +00:00]] +  (1.0ms) commit transaction + + +Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:14:32 +0200 +Processing by ItemsController#new as HTML + Rendered items/_form.html.erb (3.9ms) +Completed 200 OK in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms) + + +Started POST "/items" for 127.0.0.1 at 2012-10-14 00:14:32 +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:14:32 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:14:32 UTC +00:00]] +  (1.9ms) commit transaction +Redirected to http://www.example.com/items +Completed 302 Found in 4ms (ActiveRecord: 2.3ms) + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:14:32 +0200 +Processing by ItemsController#index as HTML + Item Load (0.1ms) SELECT "items".* FROM "items" +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms) + Item Load (0.1ms) 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"; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.2ms) DELETE FROM "products"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'products'; +  (1.0ms) DELETE FROM "product_has_categories"; +  (0.3ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (0.8ms) DELETE FROM "items"; +  (1.2ms) 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:14:32 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:32 UTC +00:00]] +  (1.7ms) commit transaction +  (0.3ms) begin transaction + SQL (0.6ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:14:32 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:32 UTC +00:00]] +  (1.1ms) 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:14:32 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:32 UTC +00:00]] +  (4.1ms) commit transaction +  (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:14:32 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 22:14:32 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:14:32 +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.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1 + Rendered items/_form.html.erb (5.0ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.2ms) + + +Started PUT "/items/1" for 127.0.0.1 at 2012-10-14 00:14:32 +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:14:32.447777' WHERE "items"."id" = 1 +  (1.4ms) commit transaction +Redirected to http://www.example.com/items +Completed 302 Found in 4ms (ActiveRecord: 1.8ms) + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:14:32 +0200 +Processing by ItemsController#index as HTML + Item Load (0.1ms) SELECT "items".* FROM "items" +Completed 200 OK in 2ms (Views: 1.7ms | 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 +  (1.2ms) 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.3ms) DELETE FROM "product_has_categories"; +  (0.4ms) 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.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:14:32 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:32 UTC +00:00]] +  (1.4ms) 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:14:32 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:32 UTC +00:00]] +  (1.0ms) 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:14:32 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:32 UTC +00:00]] +  (1.0ms) commit transaction + + +Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:14:32 +0200 +Processing by ItemsController#new as HTML + Rendered items/_form.html.erb (4.9ms) +Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms) + + +Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 00:14:33 +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:14:33 +0200 +Processing by ItemsController#create as HTML + Parameters: {"utf8"=>"✓", "item"=>{"name"=>"hello", "category_id"=>"1"}, "commit"=>"Create Item"} +  (0.1ms) begin transaction + SQL (0.6ms) INSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:14:33 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:14:33 UTC +00:00]] +  (1.0ms) commit transaction +Redirected to http://127.0.0.1:53017/items +Completed 302 Found in 4ms (ActiveRecord: 1.6ms) + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:14:33 +0200 +Processing by ItemsController#index as HTML + Item Load (0.2ms) SELECT "items".* FROM "items" +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms) + Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1 + Category Load (0.4ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1 +  (1.4ms) DELETE FROM "categories"; +  (0.9ms) 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.3ms) 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.5ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:14:34 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:34 UTC +00:00]] +  (1.6ms) 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:14:34 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:34 UTC +00:00]] +  (1.3ms) 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:14:34 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:14:34 UTC +00:00]] +  (1.0ms) commit transaction +  (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:14:34 UTC +00:00], ["name", "new one"], ["updated_at", Sat, 13 Oct 2012 22:14:34 UTC +00:00]] +  (1.2ms) commit transaction + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:14:34 +0200 +Processing by ItemsController#index as HTML + Item Load (0.1ms) SELECT "items".* FROM "items"  +Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms) +  (0.9ms) 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"; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'items'; +Connecting to database specified by database.yml +  (0.1ms) begin transaction + SQL (4.2ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:19:19 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:19:19 UTC +00:00]] +  (2.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:19:19 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:19:19 UTC +00:00]] +  (2.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:19:19 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:19:19 UTC +00:00]] +  (1.9ms) commit transaction +  (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:19:19 UTC +00:00], ["name", "new one"], ["updated_at", Sat, 13 Oct 2012 22:19:19 UTC +00:00]] +  (0.9ms) commit transaction + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:19:19 +0200 +Processing by ItemsController#index as HTML + Item Load (0.2ms) SELECT "items".* FROM "items"  + Rendered items/index.html.erb within layouts/application (28.5ms) +Completed 200 OK in 39ms (Views: 37.9ms | ActiveRecord: 0.2ms) +  (1.4ms) DELETE FROM "categories"; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.0ms) DELETE FROM "products"; +  (0.6ms) DELETE FROM sqlite_sequence where name = 'products'; +  (1.0ms) DELETE FROM "product_has_categories"; +  (0.7ms) 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.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:19:19 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:19:19 UTC +00:00]] +  (1.7ms) 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:19:19 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:19:19 UTC +00:00]] +  (1.6ms) 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:19:19 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:19:19 UTC +00:00]] +  (1.6ms) commit transaction + + +Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:19:19 +0200 +Processing by ItemsController#new as HTML + Rendered items/_form.html.erb (99.7ms) +Completed 500 Internal Server Error in 104ms +  (1.9ms) DELETE FROM "categories"; +  (2.0ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.8ms) DELETE FROM "products"; +  (0.8ms) DELETE FROM sqlite_sequence where name = 'products'; +  (2.1ms) DELETE FROM "product_has_categories"; +  (0.8ms) 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.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:19:19 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:19:19 UTC +00:00]] +  (1.8ms) 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:19:19 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:19:19 UTC +00:00]] +  (1.6ms) 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:19:19 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:19:19 UTC +00:00]] +  (1.9ms) commit transaction + + +Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:19:23 +0200 +Processing by ItemsController#new as HTML + Rendered items/_form.html.erb (25.3ms) +Completed 500 Internal Server Error in 27ms +  (2.4ms) DELETE FROM "categories"; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.0ms) 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.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:19:25 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:19:25 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:19:25 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:19:25 UTC +00:00]] +  (0.9ms) 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:19:25 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:19:25 UTC +00:00]] +  (1.0ms) commit transaction +  (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:19:25 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 22:19:25 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:19:26 +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"]] + Rendered items/_form.html.erb (48.6ms) +Completed 500 Internal Server Error in 52ms +  (1.5ms) DELETE FROM "categories"; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.1ms) DELETE FROM "products"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'products'; +  (1.0ms) DELETE FROM "product_has_categories"; +  (0.3ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (0.9ms) DELETE FROM "items"; +  (1.0ms) 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:19:26 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:19:26 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:19:26 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:19:26 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:19:26 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:19:26 UTC +00:00]] +  (1.8ms) commit transaction +  (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:19:26 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 22:19:26 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:19:26 +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"]] + Rendered items/_form.html.erb (21.9ms) +Completed 500 Internal Server Error in 24ms +  (2.4ms) DELETE FROM "categories"; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.1ms) 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'; +  (1.1ms) DELETE FROM "items"; +  (1.2ms) DELETE FROM sqlite_sequence where name = 'items'; +Connecting to database specified by database.yml +  (0.1ms) begin transaction + SQL (4.6ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:20:51 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:20:51 UTC +00:00]] +  (2.2ms) commit transaction + + +Started GET "/categories" for 127.0.0.1 at 2012-10-14 00:20:51 +0200 +Processing by CategoriesController#index as HTML + Category Load (0.1ms) SELECT "categories".* FROM "categories" + Rendered categories/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 42ms (Views: 40.4ms | ActiveRecord: 0.1ms) +  (1.4ms) DELETE FROM "categories"; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.0ms) DELETE FROM "products"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'products'; +  (1.1ms) 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.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:20:51 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:20:51 UTC +00:00]] +  (0.8ms) commit transaction + + +Started GET "/categories/new" for 127.0.0.1 at 2012-10-14 00:20:55 +0200 +Processing by CategoriesController#new as HTML + Rendered categories/_form.html.erb (19.2ms) +Completed 200 OK in 66ms (Views: 65.4ms | ActiveRecord: 0.0ms) + + +Started GET "/assets/application.css" for 127.0.0.1 at 2012-10-14 00:20:55 +0200 +Served asset /application.css - 200 OK (6ms) + + +Started GET "/assets/application.js" for 127.0.0.1 at 2012-10-14 00:20:55 +0200 +Served asset /application.js - 200 OK (7ms) + + +Started GET "/categories/token?q=wood" for 127.0.0.1 at 2012-10-14 00:20:56 +0200 +Processing by CategoriesController#token as JSON + Parameters: {"q"=>"wood"} + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%wood%') +Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.5ms) + + +Started POST "/categories" for 127.0.0.1 at 2012-10-14 00:20:56 +0200 +Processing by CategoriesController#create as HTML + Parameters: {"utf8"=>"✓", "category"=>{"name"=>"hello", "parent_id"=>"1"}, "commit"=>"Create Category"} +  (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:20:56 UTC +00:00], ["name", "hello"], ["parent_id", 1], ["updated_at", Sat, 13 Oct 2012 22:20:56 UTC +00:00]] +  (60.7ms) commit transaction +Redirected to http://127.0.0.1:53294/categories +Completed 302 Found in 64ms (ActiveRecord: 61.4ms) + + +Started GET "/categories" for 127.0.0.1 at 2012-10-14 00:20:57 +0200 +Processing by CategoriesController#index as HTML + Category Load (0.2ms) SELECT "categories".* FROM "categories" +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms) + Category Load (0.3ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1 +  (1.4ms) DELETE FROM "categories"; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.2ms) DELETE FROM "products"; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'products'; +  (1.0ms) DELETE FROM "product_has_categories"; +  (0.3ms) 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:20:57 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:20:57 UTC +00:00]] +  (1.5ms) commit transaction + + +Started GET "/categories/new" for 127.0.0.1 at 2012-10-14 00:20:57 +0200 +Processing by CategoriesController#new as HTML + Rendered categories/_form.html.erb (4.1ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) + + +Started POST "/categories" for 127.0.0.1 at 2012-10-14 00:20:57 +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:20:57 UTC +00:00], ["name", "hello"], ["parent_id", 1], ["updated_at", Sat, 13 Oct 2012 22:20:57 UTC +00:00]] +  (1.1ms) commit transaction +Redirected to http://www.example.com/categories +Completed 302 Found in 4ms (ActiveRecord: 1.5ms) + + +Started GET "/categories" for 127.0.0.1 at 2012-10-14 00:20:57 +0200 +Processing by CategoriesController#index as HTML + Category Load (0.1ms) SELECT "categories".* FROM "categories"  +Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms) + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1 +  (1.1ms) DELETE FROM "categories"; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.2ms) DELETE FROM "products"; +  (0.6ms) DELETE FROM sqlite_sequence where name = 'products'; +  (1.1ms) DELETE FROM "product_has_categories"; +  (0.5ms) 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.5ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:20:57 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:20:57 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:20:57 UTC +00:00], ["name", "category_1"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:20:57 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:20:57 UTC +00:00], ["name", "category_2"], ["parent_id", 1], ["updated_at", Sat, 13 Oct 2012 22:20:57 UTC +00:00]] +  (1.1ms) 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:20:57 +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.0ms) +Completed 200 OK in 49ms (Views: 47.2ms | ActiveRecord: 0.4ms) + + +Started PUT "/categories/3" for 127.0.0.1 at 2012-10-14 00:20:57 +0200 +Processing by CategoriesController#update as HTML + Parameters: {"utf8"=>"✓", "category"=>{"name"=>"category_2", "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.3ms) UPDATE "categories" SET "parent_id" = 2, "updated_at" = '2012-10-13 22:20:57.336934' WHERE "categories"."id" = 3 +  (0.9ms) commit transaction +Redirected to http://www.example.com/categories +Completed 302 Found in 5ms (ActiveRecord: 1.3ms) + + +Started GET "/categories" for 127.0.0.1 at 2012-10-14 00:20:57 +0200 +Processing by CategoriesController#index as HTML + Category Load (0.1ms) SELECT "categories".* FROM "categories" +Completed 200 OK in 3ms (Views: 2.2ms | 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'; +  (1.1ms) 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'; +  (1.1ms) 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:20:57 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:20:57 UTC +00:00]] +  (0.9ms) 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:20:57 UTC +00:00], ["name", "new parent"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:20:57 UTC +00:00]] +  (1.1ms) 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:20:57 UTC +00:00], ["name", "category_3"], ["parent_id", 1], ["updated_at", Sat, 13 Oct 2012 22:20:57 UTC +00:00]] +  (0.9ms) commit transaction + Category Load (0.2ms) 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:20:57 +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 (5.8ms) +Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.4ms) + + +Started GET "/categories/token?q=new+parent" for 127.0.0.1 at 2012-10-14 00:20:58 +0200 +Processing by CategoriesController#token as JSON + Parameters: {"q"=>"new parent"} + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%new parent%') +Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started PUT "/categories/3" for 127.0.0.1 at 2012-10-14 00:20:58 +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.1ms) begin transaction +  (0.4ms) UPDATE "categories" SET "parent_id" = 2, "updated_at" = '2012-10-13 22:20:58.872293' WHERE "categories"."id" = 3 +  (0.7ms) commit transaction +Redirected to http://127.0.0.1:53294/categories +Completed 302 Found in 4ms (ActiveRecord: 1.3ms) + + +Started GET "/categories" for 127.0.0.1 at 2012-10-14 00:20:58 +0200 +Processing by CategoriesController#index as HTML + Category Load (0.2ms) SELECT "categories".* FROM "categories" +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms) + 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" = 2 LIMIT 1 +  (0.9ms) 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.1ms) DELETE FROM "product_has_categories"; +  (0.6ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (1.1ms) 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:20:59 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:20:59 UTC +00:00]] +  (1.4ms) 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:20:59 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:20:59 UTC +00:00]] +  (0.8ms) 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:20:59 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:20:59 UTC +00:00]] +  (0.8ms) 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:20:59 UTC +00:00], ["name", "new one"], ["updated_at", Sat, 13 Oct 2012 22:20:59 UTC +00:00]] + SQL (0.4ms) INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:20:59 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:20:59 UTC +00:00]] + SQL (0.2ms) INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 2], ["created_at", Sat, 13 Oct 2012 22:20:59 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:20:59 UTC +00:00]] +  (1.6ms) commit transaction + + +Started GET "/products" for 127.0.0.1 at 2012-10-14 00:20:59 +0200 +Processing by ProductsController#index as HTML + Product Load (0.2ms) SELECT "products".* FROM "products" +  (0.2ms) 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 18ms (Views: 16.7ms | ActiveRecord: 0.3ms) +  (1.0ms) DELETE FROM "categories"; +  (1.2ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (0.9ms) DELETE FROM "products"; +  (1.1ms) 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.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:20:59 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:20:59 UTC +00:00]] +  (1.3ms) commit transaction +  (28.8ms) begin transaction + SQL (0.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:20:59 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:20:59 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:20:59 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:20:59 UTC +00:00]] +  (0.9ms) commit transaction + + +Started GET "/products/new" for 127.0.0.1 at 2012-10-14 00:20:59 +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 (7.9ms) +Completed 200 OK in 20ms (Views: 10.2ms | ActiveRecord: 0.6ms) + + +Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 00:20:59 +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 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) + + +Started GET "/categories/token?q=pents" for 127.0.0.1 at 2012-10-14 00:21:01 +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:21:01 +0200 +Processing by ProductsController#create as HTML + Parameters: {"utf8"=>"✓", "product"=>{"name"=>"hello", "category_ids"=>"1,3"}, "commit"=>"Create Product"} + Category Load (0.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 3) +  (0.1ms) begin transaction + SQL (0.9ms) INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:21:01 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:21:01 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:21:01 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:21:01 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:21:01 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:21:01 UTC +00:00]] +  (0.9ms) commit transaction +Redirected to http://127.0.0.1:53294/products +Completed 302 Found in 11ms (ActiveRecord: 2.7ms) + + +Started GET "/products" for 127.0.0.1 at 2012-10-14 00:21:01 +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.6ms | ActiveRecord: 0.4ms) + Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1 + Category Load (0.3ms) 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.4ms) DELETE FROM "categories"; +  (1.3ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.2ms) DELETE FROM "products"; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'products'; +  (0.9ms) DELETE FROM "product_has_categories"; +  (1.2ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (1.0ms) 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:21:02 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00]] +  (0.8ms) 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:21:02 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:02 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:21:02 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00]] +  (0.8ms) commit transaction + + +Started GET "/products/new" for 127.0.0.1 at 2012-10-14 00:21:02 +0200 +Processing by ProductsController#new as HTML +  (0.2ms) 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.2ms) 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 (6.5ms) +Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.4ms) + + +Started POST "/products" for 127.0.0.1 at 2012-10-14 00:21:02 +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.6ms) INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:21:02 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:21:02 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:21:02 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:21:02 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00]] +  (1.2ms) commit transaction +Redirected to http://www.example.com/products +Completed 302 Found in 8ms (ActiveRecord: 2.4ms) + + +Started GET "/products" for 127.0.0.1 at 2012-10-14 00:21:02 +0200 +Processing by ProductsController#index as HTML + Product Load (0.2ms) SELECT "products".* FROM "products" +  (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" = 1 +Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.5ms) + 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 +  (1.0ms) DELETE FROM "categories"; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (0.9ms) DELETE FROM "products"; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'products'; +  (1.0ms) DELETE FROM "product_has_categories"; +  (1.2ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (1.5ms) DELETE FROM "items"; +  (0.6ms) DELETE FROM sqlite_sequence where name = 'items'; +  (0.1ms) begin transaction + SQL (0.7ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00]] +  (1.4ms) 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:21:02 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:02 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:21:02 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00]] +  (0.9ms) commit transaction + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 3) +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00], ["name", "product"], ["updated_at", Sat, 13 Oct 2012 22:21:02 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:21:02 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:21:02 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:21:02 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00]] +  (1.1ms) commit transaction + + +Started GET "/products/1/edit" for 127.0.0.1 at 2012-10-14 00:21:02 +0200 +Processing by ProductsController#edit as HTML + Parameters: {"id"=>"1"} + Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", "1"]] +  (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" = 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.3ms) 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 (9.0ms) +Completed 200 OK in 13ms (Views: 11.1ms | ActiveRecord: 1.0ms) + + +Started PUT "/products/1" for 127.0.0.1 at 2012-10-14 00:21:02 +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.1ms) 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.4ms) INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 2], ["created_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00]] +  (1.1ms) commit transaction +Redirected to http://www.example.com/products +Completed 302 Found in 27ms (ActiveRecord: 2.2ms) + + +Started GET "/products" for 127.0.0.1 at 2012-10-14 00:21:02 +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.3ms) + Product Load (0.1ms) 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 +  (1.0ms) DELETE FROM "categories"; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.2ms) DELETE FROM "products"; +  (1.3ms) 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'; +  (0.8ms) DELETE FROM "items"; +  (0.3ms) 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:21:02 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00]] +  (1.1ms) 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:21:02 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:02 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:21:02 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00]] +  (0.8ms) commit transaction + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 3) +  (0.1ms) begin transaction + SQL (0.5ms) INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00], ["name", "product"], ["updated_at", Sat, 13 Oct 2012 22:21:02 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:21:02 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:21:02 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:21:02 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00]] +  (1.0ms) commit transaction + + +Started GET "/products/1/edit" for 127.0.0.1 at 2012-10-14 00:21:02 +0200 +Processing by ProductsController#edit as HTML + Parameters: {"id"=>"1"} + Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", "1"]] +  (0.2ms) 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.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 + Rendered products/_form.html.erb (8.0ms) +Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.8ms) + + +Started GET "/categories/token?q=skirt" for 127.0.0.1 at 2012-10-14 00:21:03 +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:21:06 +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 PUT "/products/1" for 127.0.0.1 at 2012-10-14 00:21:07 +0200 +Processing by ProductsController#update as HTML + Parameters: {"utf8"=>"✓", "product"=>{"name"=>"product", "category_ids"=>"2,1"}, "commit"=>"Update Product", "id"=>"1"} + Product Load (0.3ms) 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.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 + SQL (0.5ms) 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:21:07 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:21:07 UTC +00:00]] +  (1.6ms) commit transaction +Redirected to http://127.0.0.1:53294/products +Completed 302 Found in 49ms (ActiveRecord: 3.1ms) + + +Started GET "/products" for 127.0.0.1 at 2012-10-14 00:21:07 +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.3ms) + Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.3ms) 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.4ms) DELETE FROM "categories"; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.2ms) DELETE FROM "products"; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'products'; +  (1.1ms) 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.4ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:21:07 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:07 UTC +00:00]] +  (2.2ms) 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:21:07 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:07 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:21:07 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:07 UTC +00:00]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + SQL (0.7ms) INSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:21:08 UTC +00:00], ["name", "new one"], ["updated_at", Sat, 13 Oct 2012 22:21:08 UTC +00:00]] +  (1.2ms) commit transaction + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:21:08 +0200 +Processing by ItemsController#index as HTML + Item Load (0.2ms) SELECT "items".* FROM "items" +Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.2ms) +  (1.0ms) DELETE FROM "categories"; +  (1.4ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (1.1ms) DELETE FROM "products"; +  (0.5ms) DELETE FROM sqlite_sequence where name = 'products'; +  (0.8ms) DELETE FROM "product_has_categories"; +  (0.3ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (0.9ms) 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:21:08 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:08 UTC +00:00]] +  (1.2ms) 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:21:08 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:08 UTC +00:00]] +  (1.1ms) 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:21:08 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:08 UTC +00:00]] +  (0.9ms) commit transaction + + +Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:21:08 +0200 +Processing by ItemsController#new as HTML + Rendered items/_form.html.erb (76.6ms) +Completed 200 OK in 81ms (Views: 80.7ms | ActiveRecord: 0.0ms) + + +Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 00:21:10 +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 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started POST "/items" for 127.0.0.1 at 2012-10-14 00:21:11 +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:21:11 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:21:11 UTC +00:00]] +  (24.6ms) commit transaction +Redirected to http://127.0.0.1:53294/items +Completed 302 Found in 28ms (ActiveRecord: 25.2ms) + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:21:11 +0200 +Processing by ItemsController#index as HTML + Item Load (0.1ms) SELECT "items".* FROM "items" +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms) + Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1 + Category Load (0.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1 +  (17.1ms) DELETE FROM "categories"; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (14.2ms) DELETE FROM "products"; +  (0.5ms) DELETE FROM sqlite_sequence where name = 'products'; +  (9.3ms) DELETE FROM "product_has_categories"; +  (0.5ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (1.0ms) DELETE FROM "items"; +  (0.9ms) 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:21:11 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:11 UTC +00:00]] +  (1.3ms) commit transaction +  (0.1ms) begin transaction + SQL (0.7ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:21:11 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:11 UTC +00:00]] +  (1.1ms) 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:21:11 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:11 UTC +00:00]] +  (1.0ms) commit transaction + + +Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:21:11 +0200 +Processing by ItemsController#new as HTML + Rendered items/_form.html.erb (4.9ms) +Completed 200 OK in 7ms (Views: 7.0ms | ActiveRecord: 0.0ms) + + +Started POST "/items" for 127.0.0.1 at 2012-10-14 00:21:11 +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:21:11 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:21:11 UTC +00:00]] +  (1.3ms) commit transaction +Redirected to http://www.example.com/items +Completed 302 Found in 5ms (ActiveRecord: 1.9ms) + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:21:11 +0200 +Processing by ItemsController#index as HTML + Item Load (0.1ms) SELECT "items".* FROM "items"  +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms) + 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.5ms) 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'; +  (0.9ms) DELETE FROM "product_has_categories"; +  (0.5ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (2.1ms) DELETE FROM "items"; +  (20.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:21:12 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:12 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:21:12 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:12 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:21:12 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:12 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:21:12 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 22:21:12 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:21:12 +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 (7.5ms) +Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 0.5ms) + + +Started PUT "/items/1" for 127.0.0.1 at 2012-10-14 00:21:12 +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:21:12.197596' WHERE "items"."id" = 1 +  (0.9ms) commit transaction +Redirected to http://www.example.com/items +Completed 302 Found in 5ms (ActiveRecord: 1.4ms) + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:21:12 +0200 +Processing by ItemsController#index as HTML + Item Load (0.2ms) SELECT "items".* FROM "items"  +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms) + 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" = 2 LIMIT 1 +  (23.5ms) DELETE FROM "categories"; +  (7.0ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (25.4ms) DELETE FROM "products"; +  (0.6ms) DELETE FROM sqlite_sequence where name = 'products'; +  (1.3ms) DELETE FROM "product_has_categories"; +  (8.0ms) DELETE FROM sqlite_sequence where name = 'product_has_categories'; +  (20.2ms) DELETE FROM "items"; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'items'; +  (0.2ms) begin transaction + SQL (0.6ms) INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:21:12 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:12 UTC +00:00]] +  (1.5ms) 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:21:12 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:12 UTC +00:00]] +  (1.1ms) 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:21:12 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:21:12 UTC +00:00]] +  (0.9ms) commit transaction +  (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:21:12 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 22:21:12 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:21:12 +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.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1 + Rendered items/_form.html.erb (8.2ms) +Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.5ms) + + +Started GET "/categories/token?q=skirt" for 127.0.0.1 at 2012-10-14 00:21:13 +0200 +Processing by CategoriesController#token as JSON + Parameters: {"q"=>"skirt"} + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%skirt%') +Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms) + + +Started PUT "/items/1" for 127.0.0.1 at 2012-10-14 00:21:14 +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:21:14.802393' WHERE "items"."id" = 1 +  (0.8ms) commit transaction +Redirected to http://127.0.0.1:53294/items +Completed 302 Found in 4ms (ActiveRecord: 1.3ms) + + +Started GET "/items" for 127.0.0.1 at 2012-10-14 00:21:14 +0200 +Processing by ItemsController#index as HTML + Item Load (0.2ms) SELECT "items".* FROM "items" +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms) + 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" = 2 LIMIT 1 +  (1.5ms) DELETE FROM "categories"; +  (4.0ms) DELETE FROM sqlite_sequence where name = 'categories'; +  (2.2ms) DELETE FROM "products"; +  (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';