token_field 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/README.md +16 -5
  2. data/lib/token_field/engine.rb +4 -0
  3. data/lib/token_field/simple_form/token_input.rb +13 -0
  4. data/lib/token_field/version.rb +1 -1
  5. data/spec/dummy/app/controllers/items_controller.rb +31 -0
  6. data/spec/dummy/app/models/item.rb +5 -0
  7. data/spec/dummy/app/views/items/_form.html.erb +6 -0
  8. data/spec/dummy/app/views/items/edit.html.erb +2 -0
  9. data/spec/dummy/app/views/items/index.html.erb +9 -0
  10. data/spec/dummy/app/views/items/new.html.erb +2 -0
  11. data/spec/dummy/config/initializers/simple_form.rb +142 -0
  12. data/spec/dummy/config/locales/simple_form.en.yml +26 -0
  13. data/spec/dummy/config/routes.rb +1 -0
  14. data/spec/dummy/db/development.sqlite3 +0 -0
  15. data/spec/dummy/db/migrate/20121013214019_create_items.rb +10 -0
  16. data/spec/dummy/db/schema.rb +8 -1
  17. data/spec/dummy/db/test.sqlite3 +0 -0
  18. data/spec/dummy/lib/templates/erb/scaffold/_form.html.erb +13 -0
  19. data/spec/dummy/log/development.log +279 -0
  20. data/spec/dummy/log/test.log +1513 -0
  21. data/spec/dummy/tmp/cache/assets/C68/F70/sprockets%2F03000591510dc6784ee531c103e66a7a +0 -0
  22. data/spec/dummy/tmp/cache/assets/C82/490/sprockets%2F2cea86012965b76f28b56b4522099f12 +0 -0
  23. data/spec/dummy/tmp/cache/assets/CCB/5D0/sprockets%2F2b021b5261218f4183021778bade6ddd +0 -0
  24. data/spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  25. data/spec/dummy/tmp/cache/assets/D0F/700/sprockets%2Fb728373cb12011fa141dfc9a8386ef89 +0 -0
  26. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  27. data/spec/dummy/tmp/cache/assets/D3E/1E0/sprockets%2Fd3e4a0e0e469d4f2099f2991fc52bd10 +0 -0
  28. data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  29. data/spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  30. data/spec/dummy/tmp/cache/assets/D7F/9E0/sprockets%2Fd984f45a60778c3cf14f1df92b0d9e6d +0 -0
  31. data/spec/dummy/tmp/cache/assets/DA5/100/sprockets%2F7d657d1d3bce59d08ee0cf74f16086ba +0 -0
  32. data/spec/dummy/tmp/cache/assets/DAC/370/sprockets%2F03a081dc7732cd2c4cbb10a57caa43ec +0 -0
  33. data/spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  34. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  35. data/spec/factories/factories.rb +4 -0
  36. data/spec/requests/items_spec.rb +68 -0
  37. metadata +26 -5
  38. data/spec/dummy/tmp/pids/server.pid +0 -1
@@ -5936,3 +5936,1516 @@ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)
5936
5936
   (0.5ms) DELETE FROM sqlite_sequence where name = 'products';
5937
5937
   (22.4ms) DELETE FROM "product_has_categories";
5938
5938
   (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
5939
+ Connecting to database specified by database.yml
5940
+  (0.1ms) begin transaction
5941
+ 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]]
5942
+  (1.3ms) commit transaction
5943
+  (0.1ms) begin transaction
5944
+ 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]]
5945
+  (1.0ms) commit transaction
5946
+  (0.1ms) begin transaction
5947
+ 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]]
5948
+  (1.0ms) commit transaction
5949
+  (0.8ms) DELETE FROM "categories";
5950
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories';
5951
+  (22.9ms) DELETE FROM "products";
5952
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'products';
5953
+  (0.9ms) DELETE FROM "product_has_categories";
5954
+  (11.9ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
5955
+  (0.1ms) begin transaction
5956
+ 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]]
5957
+  (3.2ms) commit transaction
5958
+  (0.1ms) begin transaction
5959
+ 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]]
5960
+  (2.1ms) commit transaction
5961
+  (0.1ms) begin transaction
5962
+ 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]]
5963
+  (0.8ms) commit transaction
5964
+
5965
+
5966
+ Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:12:53 +0200
5967
+ Processing by ItemsController#new as HTML
5968
+ Completed 500 Internal Server Error in 2ms
5969
+  (1.2ms) DELETE FROM "categories";
5970
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories';
5971
+  (1.0ms) DELETE FROM "products";
5972
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'products';
5973
+  (0.9ms) DELETE FROM "product_has_categories";
5974
+  (3.6ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
5975
+  (0.1ms) begin transaction
5976
+ 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]]
5977
+  (0.9ms) commit transaction
5978
+  (0.1ms) begin transaction
5979
+ 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]]
5980
+  (0.8ms) commit transaction
5981
+  (0.1ms) begin transaction
5982
+ 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]]
5983
+  (1.1ms) commit transaction
5984
+  (2.5ms) DELETE FROM "categories";
5985
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories';
5986
+  (1.0ms) DELETE FROM "products";
5987
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'products';
5988
+  (1.3ms) DELETE FROM "product_has_categories";
5989
+  (1.8ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
5990
+  (0.1ms) begin transaction
5991
+ 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]]
5992
+  (7.6ms) commit transaction
5993
+  (0.1ms) begin transaction
5994
+ 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]]
5995
+  (3.0ms) commit transaction
5996
+  (0.1ms) begin transaction
5997
+ 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]]
5998
+  (1.0ms) commit transaction
5999
+
6000
+
6001
+ Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:13:02 +0200
6002
+ Processing by ItemsController#new as HTML
6003
+ Completed 500 Internal Server Error in 1ms
6004
+  (2.2ms) DELETE FROM "categories";
6005
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'categories';
6006
+  (0.9ms) DELETE FROM "products";
6007
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'products';
6008
+  (1.0ms) DELETE FROM "product_has_categories";
6009
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6010
+  (0.1ms) begin transaction
6011
+ 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]]
6012
+  (1.4ms) commit transaction
6013
+  (0.1ms) begin transaction
6014
+ 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]]
6015
+  (1.0ms) commit transaction
6016
+  (0.1ms) begin transaction
6017
+ 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]]
6018
+  (1.0ms) commit transaction
6019
+  (1.0ms) DELETE FROM "categories";
6020
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories';
6021
+  (1.0ms) DELETE FROM "products";
6022
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'products';
6023
+  (1.1ms) DELETE FROM "product_has_categories";
6024
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6025
+ Connecting to database specified by database.yml
6026
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
6027
+ Migrating to CreateCategories (20121012100526)
6028
+ Migrating to CreateProducts (20121012235444)
6029
+ Migrating to CreateProductHasCategories (20121012235509)
6030
+ Migrating to CreateItems (20121013214019)
6031
+  (0.0ms) select sqlite_version(*)
6032
+  (0.0ms) begin transaction
6033
+  (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)
6034
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121013214019')
6035
+  (2.3ms) commit transaction
6036
+  (0.3ms) select sqlite_version(*)
6037
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
6038
+  (0.0ms) PRAGMA index_list("categories")
6039
+  (0.0ms) PRAGMA index_list("items")
6040
+  (0.0ms) PRAGMA index_list("product_has_categories")
6041
+  (0.0ms) PRAGMA index_list("products")
6042
+ Connecting to database specified by database.yml
6043
+  (0.1ms) begin transaction
6044
+ 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]]
6045
+  (2.3ms) commit transaction
6046
+  (0.0ms) begin transaction
6047
+ 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]]
6048
+  (1.0ms) commit transaction
6049
+  (0.1ms) begin transaction
6050
+ 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]]
6051
+  (1.0ms) commit transaction
6052
+
6053
+
6054
+ Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:13:23 +0200
6055
+ Processing by ItemsController#new as HTML
6056
+ Rendered items/_form.html.erb (67.4ms)
6057
+ Rendered items/new.html.erb within layouts/application (72.5ms)
6058
+ Completed 200 OK in 121ms (Views: 113.9ms | ActiveRecord: 0.5ms)
6059
+
6060
+
6061
+ Started GET "/assets/application.css" for 127.0.0.1 at 2012-10-14 00:13:24 +0200
6062
+ Compiled token-input-facebook.css (0ms) (pid 17853)
6063
+ Compiled application.css (7ms) (pid 17853)
6064
+ Served asset /application.css - 200 OK (15ms)
6065
+
6066
+
6067
+ Started GET "/assets/application.js" for 127.0.0.1 at 2012-10-14 00:13:24 +0200
6068
+ Compiled jquery.js (4ms) (pid 17853)
6069
+ Compiled jquery_ujs.js (0ms) (pid 17853)
6070
+ Compiled jquery.tokeninput.js (26ms) (pid 17853)
6071
+ Compiled application.js (44ms) (pid 17853)
6072
+ Served asset /application.js - 200 OK (53ms)
6073
+
6074
+
6075
+ Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 00:13:24 +0200
6076
+ Processing by CategoriesController#token as JSON
6077
+ Parameters: {"q"=>"shoes"}
6078
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%')
6079
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
6080
+
6081
+
6082
+ Started POST "/items" for 127.0.0.1 at 2012-10-14 00:13:25 +0200
6083
+ Processing by ItemsController#create as HTML
6084
+ Parameters: {"utf8"=>"✓", "item"=>{"name"=>"hello", "category_id"=>"1"}, "commit"=>"Create Item"}
6085
+  (0.1ms) begin transaction
6086
+ 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]]
6087
+  (1.2ms) commit transaction
6088
+ Redirected to http://127.0.0.1:52870/items
6089
+ Completed 302 Found in 8ms (ActiveRecord: 2.2ms)
6090
+
6091
+
6092
+ Started GET "/items" for 127.0.0.1 at 2012-10-14 00:13:25 +0200
6093
+ Processing by ItemsController#index as HTML
6094
+ Item Load (0.1ms) SELECT "items".* FROM "items"
6095
+ Rendered items/index.html.erb within layouts/application (1.4ms)
6096
+ Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.1ms)
6097
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1
6098
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
6099
+  (1.0ms) DELETE FROM "categories";
6100
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'categories';
6101
+  (0.8ms) DELETE FROM "products";
6102
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'products';
6103
+  (0.9ms) DELETE FROM "product_has_categories";
6104
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6105
+  (0.9ms) DELETE FROM "items";
6106
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'items';
6107
+  (0.1ms) begin transaction
6108
+ 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]]
6109
+  (1.8ms) commit transaction
6110
+  (0.1ms) begin transaction
6111
+ 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]]
6112
+  (0.8ms) commit transaction
6113
+  (0.0ms) begin transaction
6114
+ 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]]
6115
+  (0.9ms) commit transaction
6116
+
6117
+
6118
+ Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:13:25 +0200
6119
+ Processing by ItemsController#new as HTML
6120
+ Rendered items/_form.html.erb (3.7ms)
6121
+ Completed 200 OK in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms)
6122
+
6123
+
6124
+ Started POST "/items" for 127.0.0.1 at 2012-10-14 00:13:25 +0200
6125
+ Processing by ItemsController#create as HTML
6126
+ Parameters: {"utf8"=>"✓", "item"=>{"name"=>"hello", "category_id"=>"1"}, "commit"=>"Create Item"}
6127
+  (0.1ms) begin transaction
6128
+ 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]]
6129
+  (1.3ms) commit transaction
6130
+ Redirected to http://www.example.com/items
6131
+ Completed 302 Found in 4ms (ActiveRecord: 1.8ms)
6132
+
6133
+
6134
+ Started GET "/items" for 127.0.0.1 at 2012-10-14 00:13:25 +0200
6135
+ Processing by ItemsController#index as HTML
6136
+ Item Load (0.1ms) SELECT "items".* FROM "items" 
6137
+ Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)
6138
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1
6139
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
6140
+  (1.0ms) DELETE FROM "categories";
6141
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories';
6142
+  (1.0ms) DELETE FROM "products";
6143
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'products';
6144
+  (1.1ms) DELETE FROM "product_has_categories";
6145
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6146
+  (1.1ms) DELETE FROM "items";
6147
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'items';
6148
+  (0.1ms) begin transaction
6149
+ 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]]
6150
+  (1.9ms) commit transaction
6151
+  (0.1ms) begin transaction
6152
+ 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]]
6153
+  (15.7ms) commit transaction
6154
+  (0.1ms) begin transaction
6155
+ 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]]
6156
+  (1.2ms) commit transaction
6157
+  (1.0ms) DELETE FROM "categories";
6158
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories';
6159
+  (1.1ms) DELETE FROM "products";
6160
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'products';
6161
+  (0.9ms) DELETE FROM "product_has_categories";
6162
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6163
+  (1.1ms) DELETE FROM "items";
6164
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'items';
6165
+  (0.1ms) begin transaction
6166
+ 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]]
6167
+  (1.0ms) commit transaction
6168
+  (0.1ms) begin transaction
6169
+ 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]]
6170
+  (0.9ms) commit transaction
6171
+  (0.1ms) begin transaction
6172
+ 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]]
6173
+  (1.0ms) commit transaction
6174
+  (0.9ms) DELETE FROM "categories";
6175
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'categories';
6176
+  (0.9ms) DELETE FROM "products";
6177
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'products';
6178
+  (0.8ms) DELETE FROM "product_has_categories";
6179
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6180
+  (0.9ms) DELETE FROM "items";
6181
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'items';
6182
+  (0.1ms) begin transaction
6183
+ 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]]
6184
+  (1.7ms) commit transaction
6185
+  (0.1ms) begin transaction
6186
+ 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]]
6187
+  (1.1ms) commit transaction
6188
+  (0.0ms) begin transaction
6189
+ 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]]
6190
+  (1.0ms) commit transaction
6191
+  (1.0ms) DELETE FROM "categories";
6192
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'categories';
6193
+  (1.0ms) DELETE FROM "products";
6194
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'products';
6195
+  (1.0ms) DELETE FROM "product_has_categories";
6196
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6197
+  (1.3ms) DELETE FROM "items";
6198
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'items';
6199
+ Connecting to database specified by database.yml
6200
+  (0.1ms) begin transaction
6201
+ 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]]
6202
+  (2.2ms) commit transaction
6203
+  (0.0ms) begin transaction
6204
+ 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]]
6205
+  (1.0ms) commit transaction
6206
+  (0.0ms) begin transaction
6207
+ 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]]
6208
+  (1.0ms) commit transaction
6209
+  (0.1ms) begin transaction
6210
+ 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]]
6211
+  (1.3ms) commit transaction
6212
+
6213
+
6214
+ Started GET "/items" for 127.0.0.1 at 2012-10-14 00:13:59 +0200
6215
+ Processing by ItemsController#index as HTML
6216
+ Item Load (0.2ms) SELECT "items".* FROM "items" 
6217
+ Rendered items/index.html.erb within layouts/application (28.6ms)
6218
+ Completed 200 OK in 39ms (Views: 37.7ms | ActiveRecord: 0.2ms)
6219
+  (1.8ms) DELETE FROM "categories";
6220
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories';
6221
+  (1.0ms) DELETE FROM "products";
6222
+  (0.7ms) DELETE FROM sqlite_sequence where name = 'products';
6223
+  (1.1ms) DELETE FROM "product_has_categories";
6224
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6225
+  (0.9ms) DELETE FROM "items";
6226
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'items';
6227
+  (0.1ms) begin transaction
6228
+ 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]]
6229
+  (1.0ms) commit transaction
6230
+  (0.0ms) begin transaction
6231
+ 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]]
6232
+  (1.0ms) commit transaction
6233
+  (0.0ms) begin transaction
6234
+ 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]]
6235
+  (1.4ms) commit transaction
6236
+
6237
+
6238
+ Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:14:03 +0200
6239
+ Processing by ItemsController#new as HTML
6240
+ Rendered items/_form.html.erb (85.7ms)
6241
+ Completed 200 OK in 95ms (Views: 94.4ms | ActiveRecord: 0.0ms)
6242
+
6243
+
6244
+ Started GET "/assets/application.css" for 127.0.0.1 at 2012-10-14 00:14:03 +0200
6245
+ Served asset /application.css - 200 OK (5ms)
6246
+
6247
+
6248
+ Started GET "/assets/application.js" for 127.0.0.1 at 2012-10-14 00:14:03 +0200
6249
+ Served asset /application.js - 200 OK (7ms)
6250
+
6251
+
6252
+ Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 00:14:03 +0200
6253
+ Processing by CategoriesController#token as JSON
6254
+ Parameters: {"q"=>"shoes"}
6255
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%')
6256
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
6257
+
6258
+
6259
+ Started POST "/items" for 127.0.0.1 at 2012-10-14 00:14:04 +0200
6260
+ Processing by ItemsController#create as HTML
6261
+ Parameters: {"utf8"=>"✓", "item"=>{"name"=>"hello", "category_id"=>"1"}, "commit"=>"Create Item"}
6262
+  (0.1ms) begin transaction
6263
+ 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]]
6264
+  (1.4ms) commit transaction
6265
+ Redirected to http://127.0.0.1:52937/items
6266
+ Completed 302 Found in 5ms (ActiveRecord: 2.1ms)
6267
+
6268
+
6269
+ Started GET "/items" for 127.0.0.1 at 2012-10-14 00:14:04 +0200
6270
+ Processing by ItemsController#index as HTML
6271
+ Item Load (0.1ms) SELECT "items".* FROM "items" 
6272
+ Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)
6273
+ Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1
6274
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
6275
+  (1.3ms) DELETE FROM "categories";
6276
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories';
6277
+  (1.1ms) DELETE FROM "products";
6278
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'products';
6279
+  (0.9ms) DELETE FROM "product_has_categories";
6280
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6281
+  (0.9ms) DELETE FROM "items";
6282
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'items';
6283
+  (0.1ms) begin transaction
6284
+ 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]]
6285
+  (1.5ms) commit transaction
6286
+  (0.1ms) begin transaction
6287
+ 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]]
6288
+  (0.9ms) commit transaction
6289
+  (0.1ms) begin transaction
6290
+ 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]]
6291
+  (1.0ms) commit transaction
6292
+
6293
+
6294
+ Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:14:04 +0200
6295
+ Processing by ItemsController#new as HTML
6296
+ Rendered items/_form.html.erb (3.9ms)
6297
+ Completed 200 OK in 5ms (Views: 5.2ms | ActiveRecord: 0.0ms)
6298
+
6299
+
6300
+ Started POST "/items" for 127.0.0.1 at 2012-10-14 00:14:04 +0200
6301
+ Processing by ItemsController#create as HTML
6302
+ Parameters: {"utf8"=>"✓", "item"=>{"name"=>"hello", "category_id"=>"1"}, "commit"=>"Create Item"}
6303
+  (0.1ms) begin transaction
6304
+ 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]]
6305
+  (1.6ms) commit transaction
6306
+ Redirected to http://www.example.com/items
6307
+ Completed 302 Found in 4ms (ActiveRecord: 2.1ms)
6308
+
6309
+
6310
+ Started GET "/items" for 127.0.0.1 at 2012-10-14 00:14:04 +0200
6311
+ Processing by ItemsController#index as HTML
6312
+ Item Load (0.1ms) SELECT "items".* FROM "items"
6313
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
6314
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1
6315
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
6316
+  (1.1ms) DELETE FROM "categories";
6317
+  (0.8ms) DELETE FROM sqlite_sequence where name = 'categories';
6318
+  (1.0ms) DELETE FROM "products";
6319
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'products';
6320
+  (0.8ms) DELETE FROM "product_has_categories";
6321
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6322
+  (1.5ms) DELETE FROM "items";
6323
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'items';
6324
+  (0.1ms) begin transaction
6325
+ 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]]
6326
+  (1.8ms) commit transaction
6327
+  (0.1ms) begin transaction
6328
+ 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]]
6329
+  (1.0ms) commit transaction
6330
+  (0.1ms) begin transaction
6331
+ 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]]
6332
+  (0.9ms) commit transaction
6333
+  (0.0ms) begin transaction
6334
+ 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]]
6335
+  (1.6ms) commit transaction
6336
+  (1.0ms) DELETE FROM "categories";
6337
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'categories';
6338
+  (1.0ms) DELETE FROM "products";
6339
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'products';
6340
+  (0.9ms) DELETE FROM "product_has_categories";
6341
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6342
+  (0.7ms) DELETE FROM "items";
6343
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'items';
6344
+  (0.1ms) begin transaction
6345
+ 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]]
6346
+  (1.4ms) commit transaction
6347
+  (0.0ms) begin transaction
6348
+ 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]]
6349
+  (1.0ms) commit transaction
6350
+  (0.0ms) begin transaction
6351
+ 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]]
6352
+  (1.0ms) commit transaction
6353
+  (0.1ms) begin transaction
6354
+ 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]]
6355
+  (0.9ms) commit transaction
6356
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
6357
+
6358
+
6359
+ Started GET "/items/1/edit" for 127.0.0.1 at 2012-10-14 00:14:05 +0200
6360
+ Processing by ItemsController#edit as HTML
6361
+ Parameters: {"id"=>"1"}
6362
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
6363
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
6364
+ Rendered items/_form.html.erb (5.1ms)
6365
+ Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.3ms)
6366
+
6367
+
6368
+ Started GET "/categories/token?q=skirt" for 127.0.0.1 at 2012-10-14 00:14:05 +0200
6369
+ Processing by CategoriesController#token as JSON
6370
+ Parameters: {"q"=>"skirt"}
6371
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%skirt%')
6372
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
6373
+
6374
+
6375
+ Started PUT "/items/1" for 127.0.0.1 at 2012-10-14 00:14:06 +0200
6376
+ Processing by ItemsController#update as HTML
6377
+ Parameters: {"utf8"=>"✓", "item"=>{"name"=>"item", "category_id"=>"2"}, "commit"=>"Update Item", "id"=>"1"}
6378
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
6379
+  (0.1ms) begin transaction
6380
+  (0.3ms) UPDATE "items" SET "category_id" = 2, "updated_at" = '2012-10-13 22:14:06.454102' WHERE "items"."id" = 1
6381
+  (1.0ms) commit transaction
6382
+ Redirected to http://127.0.0.1:52937/items
6383
+ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)
6384
+
6385
+
6386
+ Started GET "/items" for 127.0.0.1 at 2012-10-14 00:14:06 +0200
6387
+ Processing by ItemsController#index as HTML
6388
+ Item Load (0.1ms) SELECT "items".* FROM "items" 
6389
+ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)
6390
+ Item Load (0.3ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
6391
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1
6392
+  (1.0ms) DELETE FROM "categories";
6393
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'categories';
6394
+  (0.8ms) DELETE FROM "products";
6395
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'products';
6396
+  (0.8ms) DELETE FROM "product_has_categories";
6397
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6398
+  (1.0ms) DELETE FROM "items";
6399
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'items';
6400
+ Connecting to database specified by database.yml
6401
+  (0.1ms) begin transaction
6402
+ 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]]
6403
+  (2.0ms) commit transaction
6404
+  (0.0ms) begin transaction
6405
+ 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]]
6406
+  (1.0ms) commit transaction
6407
+  (0.1ms) begin transaction
6408
+ 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]]
6409
+  (0.9ms) commit transaction
6410
+  (0.1ms) begin transaction
6411
+ 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]]
6412
+  (1.2ms) commit transaction
6413
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
6414
+
6415
+
6416
+ Started GET "/items/1/edit" for 127.0.0.1 at 2012-10-14 00:14:29 +0200
6417
+ Processing by ItemsController#edit as HTML
6418
+ Parameters: {"id"=>"1"}
6419
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
6420
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
6421
+ Rendered items/_form.html.erb (63.4ms)
6422
+ Rendered items/edit.html.erb within layouts/application (70.4ms)
6423
+ Completed 200 OK in 85ms (Views: 82.2ms | ActiveRecord: 0.9ms)
6424
+
6425
+
6426
+ Started GET "/assets/application.css" for 127.0.0.1 at 2012-10-14 00:14:29 +0200
6427
+ Served asset /application.css - 200 OK (5ms)
6428
+
6429
+
6430
+ Started GET "/assets/application.js" for 127.0.0.1 at 2012-10-14 00:14:29 +0200
6431
+ Served asset /application.js - 200 OK (6ms)
6432
+
6433
+
6434
+ Started GET "/categories/token?q=skirt" for 127.0.0.1 at 2012-10-14 00:14:30 +0200
6435
+ Processing by CategoriesController#token as JSON
6436
+ Parameters: {"q"=>"skirt"}
6437
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%skirt%')
6438
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
6439
+
6440
+
6441
+ Started PUT "/items/1" for 127.0.0.1 at 2012-10-14 00:14:31 +0200
6442
+ Processing by ItemsController#update as HTML
6443
+ Parameters: {"utf8"=>"✓", "item"=>{"name"=>"item", "category_id"=>"2"}, "commit"=>"Update Item", "id"=>"1"}
6444
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
6445
+  (0.1ms) begin transaction
6446
+  (0.4ms) UPDATE "items" SET "category_id" = 2, "updated_at" = '2012-10-13 22:14:31.234759' WHERE "items"."id" = 1
6447
+  (116.3ms) commit transaction
6448
+ Redirected to http://127.0.0.1:53017/items
6449
+ Completed 302 Found in 122ms (ActiveRecord: 116.9ms)
6450
+
6451
+
6452
+ Started GET "/items" for 127.0.0.1 at 2012-10-14 00:14:32 +0200
6453
+ Processing by ItemsController#index as HTML
6454
+ Item Load (0.4ms) SELECT "items".* FROM "items" 
6455
+ Rendered items/index.html.erb within layouts/application (1.6ms)
6456
+ Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.4ms)
6457
+ Item Load (0.3ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
6458
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1
6459
+  (33.4ms) DELETE FROM "categories";
6460
+  (2.3ms) DELETE FROM sqlite_sequence where name = 'categories';
6461
+  (1.1ms) DELETE FROM "products";
6462
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'products';
6463
+  (0.9ms) DELETE FROM "product_has_categories";
6464
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6465
+  (0.9ms) DELETE FROM "items";
6466
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'items';
6467
+  (0.1ms) begin transaction
6468
+ 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]]
6469
+  (1.1ms) commit transaction
6470
+  (0.1ms) begin transaction
6471
+ 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]]
6472
+  (1.0ms) commit transaction
6473
+  (0.1ms) begin transaction
6474
+ 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]]
6475
+  (1.0ms) commit transaction
6476
+
6477
+
6478
+ Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:14:32 +0200
6479
+ Processing by ItemsController#new as HTML
6480
+ Rendered items/_form.html.erb (3.9ms)
6481
+ Completed 200 OK in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms)
6482
+
6483
+
6484
+ Started POST "/items" for 127.0.0.1 at 2012-10-14 00:14:32 +0200
6485
+ Processing by ItemsController#create as HTML
6486
+ Parameters: {"utf8"=>"✓", "item"=>{"name"=>"hello", "category_id"=>"1"}, "commit"=>"Create Item"}
6487
+  (0.1ms) begin transaction
6488
+ 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]]
6489
+  (1.9ms) commit transaction
6490
+ Redirected to http://www.example.com/items
6491
+ Completed 302 Found in 4ms (ActiveRecord: 2.3ms)
6492
+
6493
+
6494
+ Started GET "/items" for 127.0.0.1 at 2012-10-14 00:14:32 +0200
6495
+ Processing by ItemsController#index as HTML
6496
+ Item Load (0.1ms) SELECT "items".* FROM "items"
6497
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
6498
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1
6499
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
6500
+  (1.2ms) DELETE FROM "categories";
6501
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories';
6502
+  (1.2ms) DELETE FROM "products";
6503
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'products';
6504
+  (1.0ms) DELETE FROM "product_has_categories";
6505
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6506
+  (0.8ms) DELETE FROM "items";
6507
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'items';
6508
+  (0.1ms) begin transaction
6509
+ 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]]
6510
+  (1.7ms) commit transaction
6511
+  (0.3ms) begin transaction
6512
+ 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]]
6513
+  (1.1ms) commit transaction
6514
+  (0.1ms) begin transaction
6515
+ 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]]
6516
+  (4.1ms) commit transaction
6517
+  (0.1ms) begin transaction
6518
+ 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]]
6519
+  (1.1ms) commit transaction
6520
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
6521
+
6522
+
6523
+ Started GET "/items/1/edit" for 127.0.0.1 at 2012-10-14 00:14:32 +0200
6524
+ Processing by ItemsController#edit as HTML
6525
+ Parameters: {"id"=>"1"}
6526
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
6527
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
6528
+ Rendered items/_form.html.erb (5.0ms)
6529
+ Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.2ms)
6530
+
6531
+
6532
+ Started PUT "/items/1" for 127.0.0.1 at 2012-10-14 00:14:32 +0200
6533
+ Processing by ItemsController#update as HTML
6534
+ Parameters: {"utf8"=>"✓", "item"=>{"name"=>"item", "category_id"=>"2"}, "commit"=>"Update Item", "id"=>"1"}
6535
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
6536
+  (0.1ms) begin transaction
6537
+  (0.3ms) UPDATE "items" SET "category_id" = 2, "updated_at" = '2012-10-13 22:14:32.447777' WHERE "items"."id" = 1
6538
+  (1.4ms) commit transaction
6539
+ Redirected to http://www.example.com/items
6540
+ Completed 302 Found in 4ms (ActiveRecord: 1.8ms)
6541
+
6542
+
6543
+ Started GET "/items" for 127.0.0.1 at 2012-10-14 00:14:32 +0200
6544
+ Processing by ItemsController#index as HTML
6545
+ Item Load (0.1ms) SELECT "items".* FROM "items"
6546
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
6547
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
6548
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1
6549
+  (1.2ms) DELETE FROM "categories";
6550
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories';
6551
+  (0.9ms) DELETE FROM "products";
6552
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'products';
6553
+  (1.3ms) DELETE FROM "product_has_categories";
6554
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6555
+  (1.0ms) DELETE FROM "items";
6556
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'items';
6557
+  (0.1ms) begin transaction
6558
+ 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]]
6559
+  (1.4ms) commit transaction
6560
+  (0.1ms) begin transaction
6561
+ 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]]
6562
+  (1.0ms) commit transaction
6563
+  (0.1ms) begin transaction
6564
+ 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]]
6565
+  (1.0ms) commit transaction
6566
+
6567
+
6568
+ Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:14:32 +0200
6569
+ Processing by ItemsController#new as HTML
6570
+ Rendered items/_form.html.erb (4.9ms)
6571
+ Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms)
6572
+
6573
+
6574
+ Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 00:14:33 +0200
6575
+ Processing by CategoriesController#token as JSON
6576
+ Parameters: {"q"=>"shoes"}
6577
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%')
6578
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
6579
+
6580
+
6581
+ Started POST "/items" for 127.0.0.1 at 2012-10-14 00:14:33 +0200
6582
+ Processing by ItemsController#create as HTML
6583
+ Parameters: {"utf8"=>"✓", "item"=>{"name"=>"hello", "category_id"=>"1"}, "commit"=>"Create Item"}
6584
+  (0.1ms) begin transaction
6585
+ 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]]
6586
+  (1.0ms) commit transaction
6587
+ Redirected to http://127.0.0.1:53017/items
6588
+ Completed 302 Found in 4ms (ActiveRecord: 1.6ms)
6589
+
6590
+
6591
+ Started GET "/items" for 127.0.0.1 at 2012-10-14 00:14:33 +0200
6592
+ Processing by ItemsController#index as HTML
6593
+ Item Load (0.2ms) SELECT "items".* FROM "items"
6594
+ Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)
6595
+ Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1
6596
+ Category Load (0.4ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
6597
+  (1.4ms) DELETE FROM "categories";
6598
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'categories';
6599
+  (0.9ms) DELETE FROM "products";
6600
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'products';
6601
+  (1.0ms) DELETE FROM "product_has_categories";
6602
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6603
+  (1.0ms) DELETE FROM "items";
6604
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'items';
6605
+  (0.1ms) begin transaction
6606
+ 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]]
6607
+  (1.6ms) commit transaction
6608
+  (0.1ms) begin transaction
6609
+ 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]]
6610
+  (1.3ms) commit transaction
6611
+  (0.1ms) begin transaction
6612
+ 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]]
6613
+  (1.0ms) commit transaction
6614
+  (0.1ms) begin transaction
6615
+ 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]]
6616
+  (1.2ms) commit transaction
6617
+
6618
+
6619
+ Started GET "/items" for 127.0.0.1 at 2012-10-14 00:14:34 +0200
6620
+ Processing by ItemsController#index as HTML
6621
+ Item Load (0.1ms) SELECT "items".* FROM "items" 
6622
+ Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
6623
+  (0.9ms) DELETE FROM "categories";
6624
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories';
6625
+  (0.9ms) DELETE FROM "products";
6626
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'products';
6627
+  (1.0ms) DELETE FROM "product_has_categories";
6628
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6629
+  (0.8ms) DELETE FROM "items";
6630
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'items';
6631
+ Connecting to database specified by database.yml
6632
+  (0.1ms) begin transaction
6633
+ 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]]
6634
+  (2.6ms) commit transaction
6635
+  (0.1ms) begin transaction
6636
+ 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]]
6637
+  (2.0ms) commit transaction
6638
+  (0.0ms) begin transaction
6639
+ 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]]
6640
+  (1.9ms) commit transaction
6641
+  (0.1ms) begin transaction
6642
+ 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]]
6643
+  (0.9ms) commit transaction
6644
+
6645
+
6646
+ Started GET "/items" for 127.0.0.1 at 2012-10-14 00:19:19 +0200
6647
+ Processing by ItemsController#index as HTML
6648
+ Item Load (0.2ms) SELECT "items".* FROM "items" 
6649
+ Rendered items/index.html.erb within layouts/application (28.5ms)
6650
+ Completed 200 OK in 39ms (Views: 37.9ms | ActiveRecord: 0.2ms)
6651
+  (1.4ms) DELETE FROM "categories";
6652
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'categories';
6653
+  (1.0ms) DELETE FROM "products";
6654
+  (0.6ms) DELETE FROM sqlite_sequence where name = 'products';
6655
+  (1.0ms) DELETE FROM "product_has_categories";
6656
+  (0.7ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6657
+  (1.1ms) DELETE FROM "items";
6658
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'items';
6659
+  (0.1ms) begin transaction
6660
+ 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]]
6661
+  (1.7ms) commit transaction
6662
+  (0.0ms) begin transaction
6663
+ 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]]
6664
+  (1.6ms) commit transaction
6665
+  (0.0ms) begin transaction
6666
+ 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]]
6667
+  (1.6ms) commit transaction
6668
+
6669
+
6670
+ Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:19:19 +0200
6671
+ Processing by ItemsController#new as HTML
6672
+ Rendered items/_form.html.erb (99.7ms)
6673
+ Completed 500 Internal Server Error in 104ms
6674
+  (1.9ms) DELETE FROM "categories";
6675
+  (2.0ms) DELETE FROM sqlite_sequence where name = 'categories';
6676
+  (1.8ms) DELETE FROM "products";
6677
+  (0.8ms) DELETE FROM sqlite_sequence where name = 'products';
6678
+  (2.1ms) DELETE FROM "product_has_categories";
6679
+  (0.8ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6680
+  (1.0ms) DELETE FROM "items";
6681
+  (0.7ms) DELETE FROM sqlite_sequence where name = 'items';
6682
+  (0.1ms) begin transaction
6683
+ 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]]
6684
+  (1.8ms) commit transaction
6685
+  (0.0ms) begin transaction
6686
+ 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]]
6687
+  (1.6ms) commit transaction
6688
+  (0.0ms) begin transaction
6689
+ 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]]
6690
+  (1.9ms) commit transaction
6691
+
6692
+
6693
+ Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:19:23 +0200
6694
+ Processing by ItemsController#new as HTML
6695
+ Rendered items/_form.html.erb (25.3ms)
6696
+ Completed 500 Internal Server Error in 27ms
6697
+  (2.4ms) DELETE FROM "categories";
6698
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories';
6699
+  (1.0ms) DELETE FROM "products";
6700
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'products';
6701
+  (0.9ms) DELETE FROM "product_has_categories";
6702
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6703
+  (0.9ms) DELETE FROM "items";
6704
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'items';
6705
+  (0.1ms) begin transaction
6706
+ 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]]
6707
+  (0.9ms) commit transaction
6708
+  (0.1ms) begin transaction
6709
+ 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]]
6710
+  (0.9ms) commit transaction
6711
+  (0.1ms) begin transaction
6712
+ 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]]
6713
+  (1.0ms) commit transaction
6714
+  (0.1ms) begin transaction
6715
+ 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]]
6716
+  (1.0ms) commit transaction
6717
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
6718
+
6719
+
6720
+ Started GET "/items/1/edit" for 127.0.0.1 at 2012-10-14 00:19:26 +0200
6721
+ Processing by ItemsController#edit as HTML
6722
+ Parameters: {"id"=>"1"}
6723
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
6724
+ Rendered items/_form.html.erb (48.6ms)
6725
+ Completed 500 Internal Server Error in 52ms
6726
+  (1.5ms) DELETE FROM "categories";
6727
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories';
6728
+  (1.1ms) DELETE FROM "products";
6729
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'products';
6730
+  (1.0ms) DELETE FROM "product_has_categories";
6731
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6732
+  (0.9ms) DELETE FROM "items";
6733
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'items';
6734
+  (0.1ms) begin transaction
6735
+ 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]]
6736
+  (1.0ms) commit transaction
6737
+  (0.0ms) begin transaction
6738
+ 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]]
6739
+  (0.9ms) commit transaction
6740
+  (0.1ms) begin transaction
6741
+ 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]]
6742
+  (1.8ms) commit transaction
6743
+  (0.1ms) begin transaction
6744
+ 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]]
6745
+  (1.0ms) commit transaction
6746
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
6747
+
6748
+
6749
+ Started GET "/items/1/edit" for 127.0.0.1 at 2012-10-14 00:19:26 +0200
6750
+ Processing by ItemsController#edit as HTML
6751
+ Parameters: {"id"=>"1"}
6752
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
6753
+ Rendered items/_form.html.erb (21.9ms)
6754
+ Completed 500 Internal Server Error in 24ms
6755
+  (2.4ms) DELETE FROM "categories";
6756
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories';
6757
+  (1.1ms) DELETE FROM "products";
6758
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'products';
6759
+  (1.0ms) DELETE FROM "product_has_categories";
6760
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6761
+  (1.1ms) DELETE FROM "items";
6762
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'items';
6763
+ Connecting to database specified by database.yml
6764
+  (0.1ms) begin transaction
6765
+ 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]]
6766
+  (2.2ms) commit transaction
6767
+
6768
+
6769
+ Started GET "/categories" for 127.0.0.1 at 2012-10-14 00:20:51 +0200
6770
+ Processing by CategoriesController#index as HTML
6771
+ Category Load (0.1ms) SELECT "categories".* FROM "categories"
6772
+ Rendered categories/index.html.erb within layouts/application (3.8ms)
6773
+ Completed 200 OK in 42ms (Views: 40.4ms | ActiveRecord: 0.1ms)
6774
+  (1.4ms) DELETE FROM "categories";
6775
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories';
6776
+  (1.0ms) DELETE FROM "products";
6777
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'products';
6778
+  (1.1ms) DELETE FROM "product_has_categories";
6779
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6780
+  (0.9ms) DELETE FROM "items";
6781
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'items';
6782
+  (0.1ms) begin transaction
6783
+ 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]]
6784
+  (0.8ms) commit transaction
6785
+
6786
+
6787
+ Started GET "/categories/new" for 127.0.0.1 at 2012-10-14 00:20:55 +0200
6788
+ Processing by CategoriesController#new as HTML
6789
+ Rendered categories/_form.html.erb (19.2ms)
6790
+ Completed 200 OK in 66ms (Views: 65.4ms | ActiveRecord: 0.0ms)
6791
+
6792
+
6793
+ Started GET "/assets/application.css" for 127.0.0.1 at 2012-10-14 00:20:55 +0200
6794
+ Served asset /application.css - 200 OK (6ms)
6795
+
6796
+
6797
+ Started GET "/assets/application.js" for 127.0.0.1 at 2012-10-14 00:20:55 +0200
6798
+ Served asset /application.js - 200 OK (7ms)
6799
+
6800
+
6801
+ Started GET "/categories/token?q=wood" for 127.0.0.1 at 2012-10-14 00:20:56 +0200
6802
+ Processing by CategoriesController#token as JSON
6803
+ Parameters: {"q"=>"wood"}
6804
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%wood%')
6805
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.5ms)
6806
+
6807
+
6808
+ Started POST "/categories" for 127.0.0.1 at 2012-10-14 00:20:56 +0200
6809
+ Processing by CategoriesController#create as HTML
6810
+ Parameters: {"utf8"=>"✓", "category"=>{"name"=>"hello", "parent_id"=>"1"}, "commit"=>"Create Category"}
6811
+  (0.1ms) begin transaction
6812
+ 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]]
6813
+  (60.7ms) commit transaction
6814
+ Redirected to http://127.0.0.1:53294/categories
6815
+ Completed 302 Found in 64ms (ActiveRecord: 61.4ms)
6816
+
6817
+
6818
+ Started GET "/categories" for 127.0.0.1 at 2012-10-14 00:20:57 +0200
6819
+ Processing by CategoriesController#index as HTML
6820
+ Category Load (0.2ms) SELECT "categories".* FROM "categories"
6821
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)
6822
+ Category Load (0.3ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1
6823
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
6824
+  (1.4ms) DELETE FROM "categories";
6825
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories';
6826
+  (1.2ms) DELETE FROM "products";
6827
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'products';
6828
+  (1.0ms) DELETE FROM "product_has_categories";
6829
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6830
+  (0.8ms) DELETE FROM "items";
6831
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'items';
6832
+  (0.1ms) begin transaction
6833
+ 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]]
6834
+  (1.5ms) commit transaction
6835
+
6836
+
6837
+ Started GET "/categories/new" for 127.0.0.1 at 2012-10-14 00:20:57 +0200
6838
+ Processing by CategoriesController#new as HTML
6839
+ Rendered categories/_form.html.erb (4.1ms)
6840
+ Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms)
6841
+
6842
+
6843
+ Started POST "/categories" for 127.0.0.1 at 2012-10-14 00:20:57 +0200
6844
+ Processing by CategoriesController#create as HTML
6845
+ Parameters: {"utf8"=>"✓", "category"=>{"name"=>"hello", "parent_id"=>"1"}, "commit"=>"Create Category"}
6846
+  (0.1ms) begin transaction
6847
+ 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]]
6848
+  (1.1ms) commit transaction
6849
+ Redirected to http://www.example.com/categories
6850
+ Completed 302 Found in 4ms (ActiveRecord: 1.5ms)
6851
+
6852
+
6853
+ Started GET "/categories" for 127.0.0.1 at 2012-10-14 00:20:57 +0200
6854
+ Processing by CategoriesController#index as HTML
6855
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" 
6856
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)
6857
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1
6858
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
6859
+  (1.1ms) DELETE FROM "categories";
6860
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories';
6861
+  (1.2ms) DELETE FROM "products";
6862
+  (0.6ms) DELETE FROM sqlite_sequence where name = 'products';
6863
+  (1.1ms) DELETE FROM "product_has_categories";
6864
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6865
+  (1.0ms) DELETE FROM "items";
6866
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'items';
6867
+  (0.1ms) begin transaction
6868
+ 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]]
6869
+  (1.7ms) commit transaction
6870
+  (0.1ms) begin transaction
6871
+ 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]]
6872
+  (1.0ms) commit transaction
6873
+  (0.1ms) begin transaction
6874
+ 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]]
6875
+  (1.1ms) commit transaction
6876
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
6877
+
6878
+
6879
+ Started GET "/categories/3/edit" for 127.0.0.1 at 2012-10-14 00:20:57 +0200
6880
+ Processing by CategoriesController#edit as HTML
6881
+ Parameters: {"id"=>"3"}
6882
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "3"]]
6883
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
6884
+ Rendered categories/_form.html.erb (4.0ms)
6885
+ Completed 200 OK in 49ms (Views: 47.2ms | ActiveRecord: 0.4ms)
6886
+
6887
+
6888
+ Started PUT "/categories/3" for 127.0.0.1 at 2012-10-14 00:20:57 +0200
6889
+ Processing by CategoriesController#update as HTML
6890
+ Parameters: {"utf8"=>"✓", "category"=>{"name"=>"category_2", "parent_id"=>"2"}, "commit"=>"Update Category", "id"=>"3"}
6891
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "3"]]
6892
+  (0.1ms) begin transaction
6893
+  (0.3ms) UPDATE "categories" SET "parent_id" = 2, "updated_at" = '2012-10-13 22:20:57.336934' WHERE "categories"."id" = 3
6894
+  (0.9ms) commit transaction
6895
+ Redirected to http://www.example.com/categories
6896
+ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
6897
+
6898
+
6899
+ Started GET "/categories" for 127.0.0.1 at 2012-10-14 00:20:57 +0200
6900
+ Processing by CategoriesController#index as HTML
6901
+ Category Load (0.1ms) SELECT "categories".* FROM "categories"
6902
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
6903
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]]
6904
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1
6905
+  (1.1ms) DELETE FROM "categories";
6906
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories';
6907
+  (1.1ms) DELETE FROM "products";
6908
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'products';
6909
+  (1.0ms) DELETE FROM "product_has_categories";
6910
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6911
+  (1.1ms) DELETE FROM "items";
6912
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'items';
6913
+  (0.1ms) begin transaction
6914
+ 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]]
6915
+  (0.9ms) commit transaction
6916
+  (0.1ms) begin transaction
6917
+ 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]]
6918
+  (1.1ms) commit transaction
6919
+  (0.1ms) begin transaction
6920
+ 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]]
6921
+  (0.9ms) commit transaction
6922
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
6923
+
6924
+
6925
+ Started GET "/categories/3/edit" for 127.0.0.1 at 2012-10-14 00:20:57 +0200
6926
+ Processing by CategoriesController#edit as HTML
6927
+ Parameters: {"id"=>"3"}
6928
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "3"]]
6929
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
6930
+ Rendered categories/_form.html.erb (5.8ms)
6931
+ Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.4ms)
6932
+
6933
+
6934
+ Started GET "/categories/token?q=new+parent" for 127.0.0.1 at 2012-10-14 00:20:58 +0200
6935
+ Processing by CategoriesController#token as JSON
6936
+ Parameters: {"q"=>"new parent"}
6937
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%new parent%')
6938
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
6939
+
6940
+
6941
+ Started PUT "/categories/3" for 127.0.0.1 at 2012-10-14 00:20:58 +0200
6942
+ Processing by CategoriesController#update as HTML
6943
+ Parameters: {"utf8"=>"✓", "category"=>{"name"=>"category_3", "parent_id"=>"2"}, "commit"=>"Update Category", "id"=>"3"}
6944
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "3"]]
6945
+  (0.1ms) begin transaction
6946
+  (0.4ms) UPDATE "categories" SET "parent_id" = 2, "updated_at" = '2012-10-13 22:20:58.872293' WHERE "categories"."id" = 3
6947
+  (0.7ms) commit transaction
6948
+ Redirected to http://127.0.0.1:53294/categories
6949
+ Completed 302 Found in 4ms (ActiveRecord: 1.3ms)
6950
+
6951
+
6952
+ Started GET "/categories" for 127.0.0.1 at 2012-10-14 00:20:58 +0200
6953
+ Processing by CategoriesController#index as HTML
6954
+ Category Load (0.2ms) SELECT "categories".* FROM "categories"
6955
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)
6956
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]]
6957
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1
6958
+  (0.9ms) DELETE FROM "categories";
6959
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories';
6960
+  (0.9ms) DELETE FROM "products";
6961
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'products';
6962
+  (1.1ms) DELETE FROM "product_has_categories";
6963
+  (0.6ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6964
+  (1.1ms) DELETE FROM "items";
6965
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'items';
6966
+  (0.1ms) begin transaction
6967
+ 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]]
6968
+  (1.4ms) commit transaction
6969
+  (0.1ms) begin transaction
6970
+ 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]]
6971
+  (0.8ms) commit transaction
6972
+  (0.1ms) begin transaction
6973
+ 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]]
6974
+  (0.8ms) commit transaction
6975
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 2)
6976
+  (0.0ms) begin transaction
6977
+ 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]]
6978
+ 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]]
6979
+ 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]]
6980
+  (1.6ms) commit transaction
6981
+
6982
+
6983
+ Started GET "/products" for 127.0.0.1 at 2012-10-14 00:20:59 +0200
6984
+ Processing by ProductsController#index as HTML
6985
+ Product Load (0.2ms) SELECT "products".* FROM "products"
6986
+  (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
6987
+ Completed 200 OK in 18ms (Views: 16.7ms | ActiveRecord: 0.3ms)
6988
+  (1.0ms) DELETE FROM "categories";
6989
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'categories';
6990
+  (0.9ms) DELETE FROM "products";
6991
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'products';
6992
+  (1.0ms) DELETE FROM "product_has_categories";
6993
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
6994
+  (0.9ms) DELETE FROM "items";
6995
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'items';
6996
+  (0.1ms) begin transaction
6997
+ 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]]
6998
+  (1.3ms) commit transaction
6999
+  (28.8ms) begin transaction
7000
+ 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]]
7001
+  (1.4ms) commit transaction
7002
+  (0.0ms) begin transaction
7003
+ 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]]
7004
+  (0.9ms) commit transaction
7005
+
7006
+
7007
+ Started GET "/products/new" for 127.0.0.1 at 2012-10-14 00:20:59 +0200
7008
+ Processing by ProductsController#new as HTML
7009
+  (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
7010
+  (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
7011
+ Rendered products/_form.html.erb (7.9ms)
7012
+ Completed 200 OK in 20ms (Views: 10.2ms | ActiveRecord: 0.6ms)
7013
+
7014
+
7015
+ Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 00:20:59 +0200
7016
+ Processing by CategoriesController#token as JSON
7017
+ Parameters: {"q"=>"shoes"}
7018
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%')
7019
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
7020
+
7021
+
7022
+ Started GET "/categories/token?q=pents" for 127.0.0.1 at 2012-10-14 00:21:01 +0200
7023
+ Processing by CategoriesController#token as JSON
7024
+ Parameters: {"q"=>"pents"}
7025
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%pents%')
7026
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
7027
+
7028
+
7029
+ Started POST "/products" for 127.0.0.1 at 2012-10-14 00:21:01 +0200
7030
+ Processing by ProductsController#create as HTML
7031
+ Parameters: {"utf8"=>"✓", "product"=>{"name"=>"hello", "category_ids"=>"1,3"}, "commit"=>"Create Product"}
7032
+ Category Load (0.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 3)
7033
+  (0.1ms) begin transaction
7034
+ 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]]
7035
+ 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]]
7036
+ 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]]
7037
+  (0.9ms) commit transaction
7038
+ Redirected to http://127.0.0.1:53294/products
7039
+ Completed 302 Found in 11ms (ActiveRecord: 2.7ms)
7040
+
7041
+
7042
+ Started GET "/products" for 127.0.0.1 at 2012-10-14 00:21:01 +0200
7043
+ Processing by ProductsController#index as HTML
7044
+ Product Load (0.1ms) SELECT "products".* FROM "products" 
7045
+  (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
7046
+ Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms)
7047
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1
7048
+ 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
7049
+  (1.4ms) DELETE FROM "categories";
7050
+  (1.3ms) DELETE FROM sqlite_sequence where name = 'categories';
7051
+  (1.2ms) DELETE FROM "products";
7052
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'products';
7053
+  (0.9ms) DELETE FROM "product_has_categories";
7054
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
7055
+  (1.0ms) DELETE FROM "items";
7056
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'items';
7057
+  (0.1ms) begin transaction
7058
+ 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]]
7059
+  (0.8ms) commit transaction
7060
+  (0.1ms) begin transaction
7061
+ 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]]
7062
+  (0.9ms) commit transaction
7063
+  (0.1ms) begin transaction
7064
+ 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]]
7065
+  (0.8ms) commit transaction
7066
+
7067
+
7068
+ Started GET "/products/new" for 127.0.0.1 at 2012-10-14 00:21:02 +0200
7069
+ Processing by ProductsController#new as HTML
7070
+  (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
7071
+  (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
7072
+ Rendered products/_form.html.erb (6.5ms)
7073
+ Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.4ms)
7074
+
7075
+
7076
+ Started POST "/products" for 127.0.0.1 at 2012-10-14 00:21:02 +0200
7077
+ Processing by ProductsController#create as HTML
7078
+ Parameters: {"utf8"=>"✓", "product"=>{"name"=>"hello", "category_ids"=>"3, 1"}, "commit"=>"Create Product"}
7079
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (3, 1)
7080
+  (0.0ms) begin transaction
7081
+ 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]]
7082
+ 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]]
7083
+ 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]]
7084
+  (1.2ms) commit transaction
7085
+ Redirected to http://www.example.com/products
7086
+ Completed 302 Found in 8ms (ActiveRecord: 2.4ms)
7087
+
7088
+
7089
+ Started GET "/products" for 127.0.0.1 at 2012-10-14 00:21:02 +0200
7090
+ Processing by ProductsController#index as HTML
7091
+ Product Load (0.2ms) SELECT "products".* FROM "products"
7092
+  (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
7093
+ Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.5ms)
7094
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1
7095
+ 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
7096
+  (1.0ms) DELETE FROM "categories";
7097
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'categories';
7098
+  (0.9ms) DELETE FROM "products";
7099
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'products';
7100
+  (1.0ms) DELETE FROM "product_has_categories";
7101
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
7102
+  (1.5ms) DELETE FROM "items";
7103
+  (0.6ms) DELETE FROM sqlite_sequence where name = 'items';
7104
+  (0.1ms) begin transaction
7105
+ 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]]
7106
+  (1.4ms) commit transaction
7107
+  (0.1ms) begin transaction
7108
+ 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]]
7109
+  (1.0ms) commit transaction
7110
+  (0.1ms) begin transaction
7111
+ 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]]
7112
+  (0.9ms) commit transaction
7113
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 3)
7114
+  (0.0ms) begin transaction
7115
+ 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]]
7116
+ 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]]
7117
+ 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]]
7118
+  (1.1ms) commit transaction
7119
+
7120
+
7121
+ Started GET "/products/1/edit" for 127.0.0.1 at 2012-10-14 00:21:02 +0200
7122
+ Processing by ProductsController#edit as HTML
7123
+ Parameters: {"id"=>"1"}
7124
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", "1"]]
7125
+  (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
7126
+  (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
7127
+ 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
7128
+ Rendered products/_form.html.erb (9.0ms)
7129
+ Completed 200 OK in 13ms (Views: 11.1ms | ActiveRecord: 1.0ms)
7130
+
7131
+
7132
+ Started PUT "/products/1" for 127.0.0.1 at 2012-10-14 00:21:02 +0200
7133
+ Processing by ProductsController#update as HTML
7134
+ Parameters: {"utf8"=>"✓", "product"=>{"name"=>"product", "category_ids"=>"2, 1"}, "commit"=>"Update Product", "id"=>"1"}
7135
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", "1"]]
7136
+  (0.1ms) begin transaction
7137
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (2, 1)
7138
+ 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
7139
+ SQL (0.3ms) DELETE FROM "product_has_categories" WHERE "product_has_categories"."product_id" = 1 AND "product_has_categories"."category_id" = 3
7140
+ 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]]
7141
+  (1.1ms) commit transaction
7142
+ Redirected to http://www.example.com/products
7143
+ Completed 302 Found in 27ms (ActiveRecord: 2.2ms)
7144
+
7145
+
7146
+ Started GET "/products" for 127.0.0.1 at 2012-10-14 00:21:02 +0200
7147
+ Processing by ProductsController#index as HTML
7148
+ Product Load (0.1ms) SELECT "products".* FROM "products"
7149
+  (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
7150
+ Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.3ms)
7151
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 1]]
7152
+ 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
7153
+  (1.0ms) DELETE FROM "categories";
7154
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories';
7155
+  (1.2ms) DELETE FROM "products";
7156
+  (1.3ms) DELETE FROM sqlite_sequence where name = 'products';
7157
+  (0.9ms) DELETE FROM "product_has_categories";
7158
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
7159
+  (0.8ms) DELETE FROM "items";
7160
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'items';
7161
+  (0.1ms) begin transaction
7162
+ 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]]
7163
+  (1.1ms) commit transaction
7164
+  (0.1ms) begin transaction
7165
+ 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]]
7166
+  (0.9ms) commit transaction
7167
+  (0.1ms) begin transaction
7168
+ 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]]
7169
+  (0.8ms) commit transaction
7170
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 3)
7171
+  (0.1ms) begin transaction
7172
+ 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]]
7173
+ 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]]
7174
+ 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]]
7175
+  (1.0ms) commit transaction
7176
+
7177
+
7178
+ Started GET "/products/1/edit" for 127.0.0.1 at 2012-10-14 00:21:02 +0200
7179
+ Processing by ProductsController#edit as HTML
7180
+ Parameters: {"id"=>"1"}
7181
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", "1"]]
7182
+  (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
7183
+  (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
7184
+ 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
7185
+ Rendered products/_form.html.erb (8.0ms)
7186
+ Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.8ms)
7187
+
7188
+
7189
+ Started GET "/categories/token?q=skirt" for 127.0.0.1 at 2012-10-14 00:21:03 +0200
7190
+ Processing by CategoriesController#token as JSON
7191
+ Parameters: {"q"=>"skirt"}
7192
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%skirt%')
7193
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
7194
+
7195
+
7196
+ Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 00:21:06 +0200
7197
+ Processing by CategoriesController#token as JSON
7198
+ Parameters: {"q"=>"shoes"}
7199
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%')
7200
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
7201
+
7202
+
7203
+ Started PUT "/products/1" for 127.0.0.1 at 2012-10-14 00:21:07 +0200
7204
+ Processing by ProductsController#update as HTML
7205
+ Parameters: {"utf8"=>"✓", "product"=>{"name"=>"product", "category_ids"=>"2,1"}, "commit"=>"Update Product", "id"=>"1"}
7206
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", "1"]]
7207
+  (0.1ms) begin transaction
7208
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (2, 1)
7209
+ 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
7210
+ SQL (0.5ms) DELETE FROM "product_has_categories" WHERE "product_has_categories"."product_id" = 1 AND "product_has_categories"."category_id" = 3
7211
+ 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]]
7212
+  (1.6ms) commit transaction
7213
+ Redirected to http://127.0.0.1:53294/products
7214
+ Completed 302 Found in 49ms (ActiveRecord: 3.1ms)
7215
+
7216
+
7217
+ Started GET "/products" for 127.0.0.1 at 2012-10-14 00:21:07 +0200
7218
+ Processing by ProductsController#index as HTML
7219
+ Product Load (0.1ms) SELECT "products".* FROM "products"
7220
+  (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
7221
+ Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.3ms)
7222
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 1]]
7223
+ 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
7224
+  (1.4ms) DELETE FROM "categories";
7225
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'categories';
7226
+  (1.2ms) DELETE FROM "products";
7227
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'products';
7228
+  (1.1ms) DELETE FROM "product_has_categories";
7229
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
7230
+  (1.1ms) DELETE FROM "items";
7231
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'items';
7232
+  (0.1ms) begin transaction
7233
+ 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]]
7234
+  (2.2ms) commit transaction
7235
+  (0.1ms) begin transaction
7236
+ 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]]
7237
+  (0.9ms) commit transaction
7238
+  (0.1ms) begin transaction
7239
+ 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]]
7240
+  (0.9ms) commit transaction
7241
+  (0.1ms) begin transaction
7242
+ 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]]
7243
+  (1.2ms) commit transaction
7244
+
7245
+
7246
+ Started GET "/items" for 127.0.0.1 at 2012-10-14 00:21:08 +0200
7247
+ Processing by ItemsController#index as HTML
7248
+ Item Load (0.2ms) SELECT "items".* FROM "items"
7249
+ Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.2ms)
7250
+  (1.0ms) DELETE FROM "categories";
7251
+  (1.4ms) DELETE FROM sqlite_sequence where name = 'categories';
7252
+  (1.1ms) DELETE FROM "products";
7253
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'products';
7254
+  (0.8ms) DELETE FROM "product_has_categories";
7255
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
7256
+  (0.9ms) DELETE FROM "items";
7257
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'items';
7258
+  (0.1ms) begin transaction
7259
+ 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]]
7260
+  (1.2ms) commit transaction
7261
+  (0.1ms) begin transaction
7262
+ 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]]
7263
+  (1.1ms) commit transaction
7264
+  (0.1ms) begin transaction
7265
+ 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]]
7266
+  (0.9ms) commit transaction
7267
+
7268
+
7269
+ Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:21:08 +0200
7270
+ Processing by ItemsController#new as HTML
7271
+ Rendered items/_form.html.erb (76.6ms)
7272
+ Completed 200 OK in 81ms (Views: 80.7ms | ActiveRecord: 0.0ms)
7273
+
7274
+
7275
+ Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 00:21:10 +0200
7276
+ Processing by CategoriesController#token as JSON
7277
+ Parameters: {"q"=>"shoes"}
7278
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%')
7279
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
7280
+
7281
+
7282
+ Started POST "/items" for 127.0.0.1 at 2012-10-14 00:21:11 +0200
7283
+ Processing by ItemsController#create as HTML
7284
+ Parameters: {"utf8"=>"✓", "item"=>{"name"=>"hello", "category_id"=>"1"}, "commit"=>"Create Item"}
7285
+  (0.1ms) begin transaction
7286
+ 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]]
7287
+  (24.6ms) commit transaction
7288
+ Redirected to http://127.0.0.1:53294/items
7289
+ Completed 302 Found in 28ms (ActiveRecord: 25.2ms)
7290
+
7291
+
7292
+ Started GET "/items" for 127.0.0.1 at 2012-10-14 00:21:11 +0200
7293
+ Processing by ItemsController#index as HTML
7294
+ Item Load (0.1ms) SELECT "items".* FROM "items"
7295
+ Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)
7296
+ Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1
7297
+ Category Load (0.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
7298
+  (17.1ms) DELETE FROM "categories";
7299
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'categories';
7300
+  (14.2ms) DELETE FROM "products";
7301
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'products';
7302
+  (9.3ms) DELETE FROM "product_has_categories";
7303
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
7304
+  (1.0ms) DELETE FROM "items";
7305
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'items';
7306
+  (0.1ms) begin transaction
7307
+ 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]]
7308
+  (1.3ms) commit transaction
7309
+  (0.1ms) begin transaction
7310
+ 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]]
7311
+  (1.1ms) commit transaction
7312
+  (0.1ms) begin transaction
7313
+ 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]]
7314
+  (1.0ms) commit transaction
7315
+
7316
+
7317
+ Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:21:11 +0200
7318
+ Processing by ItemsController#new as HTML
7319
+ Rendered items/_form.html.erb (4.9ms)
7320
+ Completed 200 OK in 7ms (Views: 7.0ms | ActiveRecord: 0.0ms)
7321
+
7322
+
7323
+ Started POST "/items" for 127.0.0.1 at 2012-10-14 00:21:11 +0200
7324
+ Processing by ItemsController#create as HTML
7325
+ Parameters: {"utf8"=>"✓", "item"=>{"name"=>"hello", "category_id"=>"1"}, "commit"=>"Create Item"}
7326
+  (0.1ms) begin transaction
7327
+ 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]]
7328
+  (1.3ms) commit transaction
7329
+ Redirected to http://www.example.com/items
7330
+ Completed 302 Found in 5ms (ActiveRecord: 1.9ms)
7331
+
7332
+
7333
+ Started GET "/items" for 127.0.0.1 at 2012-10-14 00:21:11 +0200
7334
+ Processing by ItemsController#index as HTML
7335
+ Item Load (0.1ms) SELECT "items".* FROM "items" 
7336
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)
7337
+ Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1
7338
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
7339
+  (1.5ms) DELETE FROM "categories";
7340
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'categories';
7341
+  (0.9ms) DELETE FROM "products";
7342
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'products';
7343
+  (0.9ms) DELETE FROM "product_has_categories";
7344
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
7345
+  (2.1ms) DELETE FROM "items";
7346
+  (20.7ms) DELETE FROM sqlite_sequence where name = 'items';
7347
+  (0.1ms) begin transaction
7348
+ 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]]
7349
+  (0.9ms) commit transaction
7350
+  (0.0ms) begin transaction
7351
+ 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]]
7352
+  (0.9ms) commit transaction
7353
+  (0.0ms) begin transaction
7354
+ 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]]
7355
+  (0.9ms) commit transaction
7356
+  (0.0ms) begin transaction
7357
+ 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]]
7358
+  (1.0ms) commit transaction
7359
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
7360
+
7361
+
7362
+ Started GET "/items/1/edit" for 127.0.0.1 at 2012-10-14 00:21:12 +0200
7363
+ Processing by ItemsController#edit as HTML
7364
+ Parameters: {"id"=>"1"}
7365
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
7366
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
7367
+ Rendered items/_form.html.erb (7.5ms)
7368
+ Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 0.5ms)
7369
+
7370
+
7371
+ Started PUT "/items/1" for 127.0.0.1 at 2012-10-14 00:21:12 +0200
7372
+ Processing by ItemsController#update as HTML
7373
+ Parameters: {"utf8"=>"✓", "item"=>{"name"=>"item", "category_id"=>"2"}, "commit"=>"Update Item", "id"=>"1"}
7374
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
7375
+  (0.1ms) begin transaction
7376
+  (0.3ms) UPDATE "items" SET "category_id" = 2, "updated_at" = '2012-10-13 22:21:12.197596' WHERE "items"."id" = 1
7377
+  (0.9ms) commit transaction
7378
+ Redirected to http://www.example.com/items
7379
+ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
7380
+
7381
+
7382
+ Started GET "/items" for 127.0.0.1 at 2012-10-14 00:21:12 +0200
7383
+ Processing by ItemsController#index as HTML
7384
+ Item Load (0.2ms) SELECT "items".* FROM "items" 
7385
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)
7386
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
7387
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1
7388
+  (23.5ms) DELETE FROM "categories";
7389
+  (7.0ms) DELETE FROM sqlite_sequence where name = 'categories';
7390
+  (25.4ms) DELETE FROM "products";
7391
+  (0.6ms) DELETE FROM sqlite_sequence where name = 'products';
7392
+  (1.3ms) DELETE FROM "product_has_categories";
7393
+  (8.0ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
7394
+  (20.2ms) DELETE FROM "items";
7395
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'items';
7396
+  (0.2ms) begin transaction
7397
+ 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]]
7398
+  (1.5ms) commit transaction
7399
+  (0.1ms) begin transaction
7400
+ 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]]
7401
+  (1.1ms) commit transaction
7402
+  (0.1ms) begin transaction
7403
+ 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]]
7404
+  (0.9ms) commit transaction
7405
+  (0.1ms) begin transaction
7406
+ 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]]
7407
+  (1.0ms) commit transaction
7408
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
7409
+
7410
+
7411
+ Started GET "/items/1/edit" for 127.0.0.1 at 2012-10-14 00:21:12 +0200
7412
+ Processing by ItemsController#edit as HTML
7413
+ Parameters: {"id"=>"1"}
7414
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
7415
+ Category Load (0.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
7416
+ Rendered items/_form.html.erb (8.2ms)
7417
+ Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.5ms)
7418
+
7419
+
7420
+ Started GET "/categories/token?q=skirt" for 127.0.0.1 at 2012-10-14 00:21:13 +0200
7421
+ Processing by CategoriesController#token as JSON
7422
+ Parameters: {"q"=>"skirt"}
7423
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE (categories.name like '%skirt%')
7424
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
7425
+
7426
+
7427
+ Started PUT "/items/1" for 127.0.0.1 at 2012-10-14 00:21:14 +0200
7428
+ Processing by ItemsController#update as HTML
7429
+ Parameters: {"utf8"=>"✓", "item"=>{"name"=>"item", "category_id"=>"2"}, "commit"=>"Update Item", "id"=>"1"}
7430
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
7431
+  (0.1ms) begin transaction
7432
+  (0.3ms) UPDATE "items" SET "category_id" = 2, "updated_at" = '2012-10-13 22:21:14.802393' WHERE "items"."id" = 1
7433
+  (0.8ms) commit transaction
7434
+ Redirected to http://127.0.0.1:53294/items
7435
+ Completed 302 Found in 4ms (ActiveRecord: 1.3ms)
7436
+
7437
+
7438
+ Started GET "/items" for 127.0.0.1 at 2012-10-14 00:21:14 +0200
7439
+ Processing by ItemsController#index as HTML
7440
+ Item Load (0.2ms) SELECT "items".* FROM "items"
7441
+ Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)
7442
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
7443
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1
7444
+  (1.5ms) DELETE FROM "categories";
7445
+  (4.0ms) DELETE FROM sqlite_sequence where name = 'categories';
7446
+  (2.2ms) DELETE FROM "products";
7447
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'products';
7448
+  (0.8ms) DELETE FROM "product_has_categories";
7449
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'product_has_categories';
7450
+  (1.3ms) DELETE FROM "items";
7451
+  (1.6ms) DELETE FROM sqlite_sequence where name = 'items';