token_field 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +16 -5
- data/lib/token_field/engine.rb +4 -0
- data/lib/token_field/simple_form/token_input.rb +13 -0
- data/lib/token_field/version.rb +1 -1
- data/spec/dummy/app/controllers/items_controller.rb +31 -0
- data/spec/dummy/app/models/item.rb +5 -0
- data/spec/dummy/app/views/items/_form.html.erb +6 -0
- data/spec/dummy/app/views/items/edit.html.erb +2 -0
- data/spec/dummy/app/views/items/index.html.erb +9 -0
- data/spec/dummy/app/views/items/new.html.erb +2 -0
- data/spec/dummy/config/initializers/simple_form.rb +142 -0
- data/spec/dummy/config/locales/simple_form.en.yml +26 -0
- data/spec/dummy/config/routes.rb +1 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20121013214019_create_items.rb +10 -0
- data/spec/dummy/db/schema.rb +8 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/templates/erb/scaffold/_form.html.erb +13 -0
- data/spec/dummy/log/development.log +279 -0
- data/spec/dummy/log/test.log +1513 -0
- data/spec/dummy/tmp/cache/assets/C68/F70/sprockets%2F03000591510dc6784ee531c103e66a7a +0 -0
- data/spec/dummy/tmp/cache/assets/C82/490/sprockets%2F2cea86012965b76f28b56b4522099f12 +0 -0
- data/spec/dummy/tmp/cache/assets/CCB/5D0/sprockets%2F2b021b5261218f4183021778bade6ddd +0 -0
- data/spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/D0F/700/sprockets%2Fb728373cb12011fa141dfc9a8386ef89 +0 -0
- data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/D3E/1E0/sprockets%2Fd3e4a0e0e469d4f2099f2991fc52bd10 +0 -0
- data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/D7F/9E0/sprockets%2Fd984f45a60778c3cf14f1df92b0d9e6d +0 -0
- data/spec/dummy/tmp/cache/assets/DA5/100/sprockets%2F7d657d1d3bce59d08ee0cf74f16086ba +0 -0
- data/spec/dummy/tmp/cache/assets/DAC/370/sprockets%2F03a081dc7732cd2c4cbb10a57caa43ec +0 -0
- data/spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/factories/factories.rb +4 -0
- data/spec/requests/items_spec.rb +68 -0
- metadata +26 -5
- data/spec/dummy/tmp/pids/server.pid +0 -1
data/spec/dummy/log/test.log
CHANGED
@@ -5936,3 +5936,1516 @@ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)
|
|
5936
5936
|
[1m[36m (0.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
5937
5937
|
[1m[35m (22.4ms)[0m DELETE FROM "product_has_categories";
|
5938
5938
|
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
5939
|
+
Connecting to database specified by database.yml
|
5940
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5941
|
+
[1m[35mSQL (7.6ms)[0m 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
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
5943
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5944
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.0ms)[0m commit transaction
|
5946
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5947
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
5949
|
+
[1m[35m (0.8ms)[0m DELETE FROM "categories";
|
5950
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
5951
|
+
[1m[35m (22.9ms)[0m DELETE FROM "products";
|
5952
|
+
[1m[36m (0.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
5953
|
+
[1m[35m (0.9ms)[0m DELETE FROM "product_has_categories";
|
5954
|
+
[1m[36m (11.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
5955
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5956
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (3.2ms)[0m commit transaction
|
5958
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5959
|
+
[1m[35mSQL (1.2ms)[0m 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
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
5961
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5962
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.8ms)[0m 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
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM "categories";[0m
|
5970
|
+
[1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
5971
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "products";[0m
|
5972
|
+
[1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
5973
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
5974
|
+
[1m[35m (3.6ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
5975
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5976
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
5978
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5979
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.8ms)[0m commit transaction
|
5981
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5982
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
5984
|
+
[1m[35m (2.5ms)[0m DELETE FROM "categories";
|
5985
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
5986
|
+
[1m[35m (1.0ms)[0m DELETE FROM "products";
|
5987
|
+
[1m[36m (0.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
5988
|
+
[1m[35m (1.3ms)[0m DELETE FROM "product_has_categories";
|
5989
|
+
[1m[36m (1.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
5990
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5991
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (7.6ms)[0m commit transaction
|
5993
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5994
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
|
5996
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5997
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.0ms)[0m 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
|
+
[1m[36m (2.2ms)[0m [1mDELETE FROM "categories";[0m
|
6005
|
+
[1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
6006
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "products";[0m
|
6007
|
+
[1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
6008
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
6009
|
+
[1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
6010
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6011
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
6013
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6014
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.0ms)[0m commit transaction
|
6016
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6017
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
6019
|
+
[1m[35m (1.0ms)[0m DELETE FROM "categories";
|
6020
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
6021
|
+
[1m[35m (1.0ms)[0m DELETE FROM "products";
|
6022
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
6023
|
+
[1m[35m (1.1ms)[0m DELETE FROM "product_has_categories";
|
6024
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
6025
|
+
Connecting to database specified by database.yml
|
6026
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
6027
|
+
Migrating to CreateCategories (20121012100526)
|
6028
|
+
Migrating to CreateProducts (20121012235444)
|
6029
|
+
Migrating to CreateProductHasCategories (20121012235509)
|
6030
|
+
Migrating to CreateItems (20121013214019)
|
6031
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
6032
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6033
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121013214019')[0m
|
6035
|
+
[1m[35m (2.3ms)[0m commit transaction
|
6036
|
+
[1m[36m (0.3ms)[0m [1mselect sqlite_version(*)[0m
|
6037
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
6038
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("categories")[0m
|
6039
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("items")
|
6040
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("product_has_categories")[0m
|
6041
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("products")
|
6042
|
+
Connecting to database specified by database.yml
|
6043
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6044
|
+
[1m[35mSQL (4.4ms)[0m 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
|
+
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
6046
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6047
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.0ms)[0m commit transaction
|
6049
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6050
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mCategory Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6086
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mItem Load (0.1ms)[0m 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
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1[0m
|
6098
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
6099
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "categories";[0m
|
6100
|
+
[1m[35m (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
6101
|
+
[1m[36m (0.8ms)[0m [1mDELETE FROM "products";[0m
|
6102
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
6103
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
6104
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
6105
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "items";[0m
|
6106
|
+
[1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
6107
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6108
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
6110
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6111
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.8ms)[0m commit transaction
|
6113
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6114
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6128
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:13:25 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:13:25 UTC +00:00]]
|
6129
|
+
[1m[35m (1.3ms)[0m 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
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" [0m
|
6137
|
+
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)
|
6138
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1
|
6139
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
6140
|
+
[1m[35m (1.0ms)[0m DELETE FROM "categories";
|
6141
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
6142
|
+
[1m[35m (1.0ms)[0m DELETE FROM "products";
|
6143
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
6144
|
+
[1m[35m (1.1ms)[0m DELETE FROM "product_has_categories";
|
6145
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
6146
|
+
[1m[35m (1.1ms)[0m DELETE FROM "items";
|
6147
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
6148
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6149
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.9ms)[0m commit transaction
|
6151
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6152
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (15.7ms)[0m [1mcommit transaction[0m
|
6154
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6155
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.2ms)[0m commit transaction
|
6157
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "categories";[0m
|
6158
|
+
[1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
6159
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "products";[0m
|
6160
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
6161
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
6162
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
6163
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "items";[0m
|
6164
|
+
[1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
6165
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6166
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
6168
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6169
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.9ms)[0m commit transaction
|
6171
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6172
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
6174
|
+
[1m[35m (0.9ms)[0m DELETE FROM "categories";
|
6175
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
6176
|
+
[1m[35m (0.9ms)[0m DELETE FROM "products";
|
6177
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
6178
|
+
[1m[35m (0.8ms)[0m DELETE FROM "product_has_categories";
|
6179
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
6180
|
+
[1m[35m (0.9ms)[0m DELETE FROM "items";
|
6181
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
6182
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6183
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.7ms)[0m commit transaction
|
6185
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6186
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
6188
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6189
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.0ms)[0m commit transaction
|
6191
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "categories";[0m
|
6192
|
+
[1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
6193
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "products";[0m
|
6194
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
6195
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
6196
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
6197
|
+
[1m[36m (1.3ms)[0m [1mDELETE FROM "items";[0m
|
6198
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
6199
|
+
Connecting to database specified by database.yml
|
6200
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6201
|
+
[1m[35mSQL (5.6ms)[0m 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
|
+
[1m[36m (2.2ms)[0m [1mcommit transaction[0m
|
6203
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6204
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.0ms)[0m commit transaction
|
6206
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6207
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
6209
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6210
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:13:59 UTC +00:00], ["name", "new one"], ["updated_at", Sat, 13 Oct 2012 22:13:59 UTC +00:00]]
|
6211
|
+
[1m[35m (1.3ms)[0m 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
|
+
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" [0m
|
6217
|
+
Rendered items/index.html.erb within layouts/application (28.6ms)
|
6218
|
+
Completed 200 OK in 39ms (Views: 37.7ms | ActiveRecord: 0.2ms)
|
6219
|
+
[1m[35m (1.8ms)[0m DELETE FROM "categories";
|
6220
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
6221
|
+
[1m[35m (1.0ms)[0m DELETE FROM "products";
|
6222
|
+
[1m[36m (0.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
6223
|
+
[1m[35m (1.1ms)[0m DELETE FROM "product_has_categories";
|
6224
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
6225
|
+
[1m[35m (0.9ms)[0m DELETE FROM "items";
|
6226
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
6227
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6228
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.0ms)[0m commit transaction
|
6230
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6231
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
6233
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6234
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.4ms)[0m 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
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%')[0m
|
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
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6263
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.4ms)[0m 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
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" [0m
|
6272
|
+
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)
|
6273
|
+
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1
|
6274
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
6275
|
+
[1m[35m (1.3ms)[0m DELETE FROM "categories";
|
6276
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
6277
|
+
[1m[35m (1.1ms)[0m DELETE FROM "products";
|
6278
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
6279
|
+
[1m[35m (0.9ms)[0m DELETE FROM "product_has_categories";
|
6280
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
6281
|
+
[1m[35m (0.9ms)[0m DELETE FROM "items";
|
6282
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
6283
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6284
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.5ms)[0m commit transaction
|
6286
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6287
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
6289
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6290
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6304
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:14:04 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:14:04 UTC +00:00]]
|
6305
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items"
|
6313
|
+
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
6314
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1[0m
|
6315
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
6316
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "categories";[0m
|
6317
|
+
[1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
6318
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "products";[0m
|
6319
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
6320
|
+
[1m[36m (0.8ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
6321
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
6322
|
+
[1m[36m (1.5ms)[0m [1mDELETE FROM "items";[0m
|
6323
|
+
[1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
6324
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6325
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
6327
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6328
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.0ms)[0m commit transaction
|
6330
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6331
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
6333
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6334
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:14:05 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 22:14:05 UTC +00:00]]
|
6335
|
+
[1m[35m (1.6ms)[0m commit transaction
|
6336
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "categories";[0m
|
6337
|
+
[1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
6338
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "products";[0m
|
6339
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
6340
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
6341
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
6342
|
+
[1m[36m (0.7ms)[0m [1mDELETE FROM "items";[0m
|
6343
|
+
[1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
6344
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6345
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
6347
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6348
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.0ms)[0m commit transaction
|
6350
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6351
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
6353
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6354
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:14:05 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 22:14:05 UTC +00:00]]
|
6355
|
+
[1m[35m (0.9ms)[0m commit transaction
|
6356
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
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
|
+
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
|
6363
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
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
|
+
[1m[35mCategory Load (0.1ms)[0m 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
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
|
6379
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6380
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "items" SET "category_id" = 2, "updated_at" = '2012-10-13 22:14:06.454102' WHERE "items"."id" = 1[0m
|
6381
|
+
[1m[35m (1.0ms)[0m 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
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" [0m
|
6389
|
+
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
6390
|
+
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
|
6391
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1[0m
|
6392
|
+
[1m[35m (1.0ms)[0m DELETE FROM "categories";
|
6393
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
6394
|
+
[1m[35m (0.8ms)[0m DELETE FROM "products";
|
6395
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
6396
|
+
[1m[35m (0.8ms)[0m DELETE FROM "product_has_categories";
|
6397
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
6398
|
+
[1m[35m (1.0ms)[0m DELETE FROM "items";
|
6399
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
6400
|
+
Connecting to database specified by database.yml
|
6401
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6402
|
+
[1m[35mSQL (4.3ms)[0m 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
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
6404
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6405
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.0ms)[0m commit transaction
|
6407
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6408
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
6410
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6411
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:14:25 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 22:14:25 UTC +00:00]]
|
6412
|
+
[1m[35m (1.2ms)[0m commit transaction
|
6413
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
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
|
+
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
|
6420
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
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
|
+
[1m[35mCategory Load (0.2ms)[0m 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
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
|
6445
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6446
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "items" SET "category_id" = 2, "updated_at" = '2012-10-13 22:14:31.234759' WHERE "items"."id" = 1[0m
|
6447
|
+
[1m[35m (116.3ms)[0m 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
|
+
[1m[36mItem Load (0.4ms)[0m [1mSELECT "items".* FROM "items" [0m
|
6455
|
+
Rendered items/index.html.erb within layouts/application (1.6ms)
|
6456
|
+
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.4ms)
|
6457
|
+
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
|
6458
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1[0m
|
6459
|
+
[1m[35m (33.4ms)[0m DELETE FROM "categories";
|
6460
|
+
[1m[36m (2.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
6461
|
+
[1m[35m (1.1ms)[0m DELETE FROM "products";
|
6462
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
6463
|
+
[1m[35m (0.9ms)[0m DELETE FROM "product_has_categories";
|
6464
|
+
[1m[36m (0.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
6465
|
+
[1m[35m (0.9ms)[0m DELETE FROM "items";
|
6466
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
6467
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6468
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.1ms)[0m commit transaction
|
6470
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6471
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
6473
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6474
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6488
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:14:32 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:14:32 UTC +00:00]]
|
6489
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items"
|
6497
|
+
Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
|
6498
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1[0m
|
6499
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
6500
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM "categories";[0m
|
6501
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
6502
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM "products";[0m
|
6503
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
6504
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
6505
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
6506
|
+
[1m[36m (0.8ms)[0m [1mDELETE FROM "items";[0m
|
6507
|
+
[1m[35m (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
6508
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6509
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
6511
|
+
[1m[35m (0.3ms)[0m begin transaction
|
6512
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.1ms)[0m commit transaction
|
6514
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6515
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (4.1ms)[0m [1mcommit transaction[0m
|
6517
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6518
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:14:32 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 22:14:32 UTC +00:00]]
|
6519
|
+
[1m[35m (1.1ms)[0m commit transaction
|
6520
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
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
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
|
6527
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
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
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
|
6536
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6537
|
+
[1m[35m (0.3ms)[0m UPDATE "items" SET "category_id" = 2, "updated_at" = '2012-10-13 22:14:32.447777' WHERE "items"."id" = 1
|
6538
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items"
|
6546
|
+
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
|
6547
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
|
6548
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1
|
6549
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM "categories";[0m
|
6550
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
6551
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "products";[0m
|
6552
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
6553
|
+
[1m[36m (1.3ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
6554
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
6555
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "items";[0m
|
6556
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
6557
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6558
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
6560
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6561
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.0ms)[0m commit transaction
|
6563
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6564
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mCategory Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6585
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
|
6594
|
+
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)
|
6595
|
+
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1[0m
|
6596
|
+
[1m[35mCategory Load (0.4ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
6597
|
+
[1m[36m (1.4ms)[0m [1mDELETE FROM "categories";[0m
|
6598
|
+
[1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
6599
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "products";[0m
|
6600
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
6601
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
6602
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
6603
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "items";[0m
|
6604
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
6605
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6606
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
6608
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6609
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.3ms)[0m commit transaction
|
6611
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6612
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
6614
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6615
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:14:34 UTC +00:00], ["name", "new one"], ["updated_at", Sat, 13 Oct 2012 22:14:34 UTC +00:00]]
|
6616
|
+
[1m[35m (1.2ms)[0m 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
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" [0m
|
6622
|
+
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
6623
|
+
[1m[35m (0.9ms)[0m DELETE FROM "categories";
|
6624
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
6625
|
+
[1m[35m (0.9ms)[0m DELETE FROM "products";
|
6626
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
6627
|
+
[1m[35m (1.0ms)[0m DELETE FROM "product_has_categories";
|
6628
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
6629
|
+
[1m[35m (0.8ms)[0m DELETE FROM "items";
|
6630
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
6631
|
+
Connecting to database specified by database.yml
|
6632
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6633
|
+
[1m[35mSQL (4.2ms)[0m 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
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
6635
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6636
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (2.0ms)[0m commit transaction
|
6638
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6639
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
6641
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6642
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:19:19 UTC +00:00], ["name", "new one"], ["updated_at", Sat, 13 Oct 2012 22:19:19 UTC +00:00]]
|
6643
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" [0m
|
6649
|
+
Rendered items/index.html.erb within layouts/application (28.5ms)
|
6650
|
+
Completed 200 OK in 39ms (Views: 37.9ms | ActiveRecord: 0.2ms)
|
6651
|
+
[1m[35m (1.4ms)[0m DELETE FROM "categories";
|
6652
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
6653
|
+
[1m[35m (1.0ms)[0m DELETE FROM "products";
|
6654
|
+
[1m[36m (0.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
6655
|
+
[1m[35m (1.0ms)[0m DELETE FROM "product_has_categories";
|
6656
|
+
[1m[36m (0.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
6657
|
+
[1m[35m (1.1ms)[0m DELETE FROM "items";
|
6658
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
6659
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6660
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.7ms)[0m commit transaction
|
6662
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6663
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
6665
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6666
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.6ms)[0m 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
|
+
[1m[36m (1.9ms)[0m [1mDELETE FROM "categories";[0m
|
6675
|
+
[1m[35m (2.0ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
6676
|
+
[1m[36m (1.8ms)[0m [1mDELETE FROM "products";[0m
|
6677
|
+
[1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
6678
|
+
[1m[36m (2.1ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
6679
|
+
[1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
6680
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "items";[0m
|
6681
|
+
[1m[35m (0.7ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
6682
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6683
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
6685
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6686
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.6ms)[0m commit transaction
|
6688
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6689
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35m (2.4ms)[0m DELETE FROM "categories";
|
6698
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
6699
|
+
[1m[35m (1.0ms)[0m DELETE FROM "products";
|
6700
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
6701
|
+
[1m[35m (0.9ms)[0m DELETE FROM "product_has_categories";
|
6702
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
6703
|
+
[1m[35m (0.9ms)[0m DELETE FROM "items";
|
6704
|
+
[1m[36m (0.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
6705
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6706
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.9ms)[0m commit transaction
|
6708
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6709
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
6711
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6712
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.0ms)[0m commit transaction
|
6714
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6715
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:19:25 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 22:19:25 UTC +00:00]]
|
6716
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
6717
|
+
[1m[35mCategory Load (0.2ms)[0m 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
|
+
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
|
6724
|
+
Rendered items/_form.html.erb (48.6ms)
|
6725
|
+
Completed 500 Internal Server Error in 52ms
|
6726
|
+
[1m[35m (1.5ms)[0m DELETE FROM "categories";
|
6727
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
6728
|
+
[1m[35m (1.1ms)[0m DELETE FROM "products";
|
6729
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
6730
|
+
[1m[35m (1.0ms)[0m DELETE FROM "product_has_categories";
|
6731
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
6732
|
+
[1m[35m (0.9ms)[0m DELETE FROM "items";
|
6733
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
6734
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6735
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.0ms)[0m commit transaction
|
6737
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6738
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
6740
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6741
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.8ms)[0m commit transaction
|
6743
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6744
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:19:26 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 22:19:26 UTC +00:00]]
|
6745
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
6746
|
+
[1m[35mCategory Load (0.2ms)[0m 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
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
|
6753
|
+
Rendered items/_form.html.erb (21.9ms)
|
6754
|
+
Completed 500 Internal Server Error in 24ms
|
6755
|
+
[1m[35m (2.4ms)[0m DELETE FROM "categories";
|
6756
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
6757
|
+
[1m[35m (1.1ms)[0m DELETE FROM "products";
|
6758
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
6759
|
+
[1m[35m (1.0ms)[0m DELETE FROM "product_has_categories";
|
6760
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
6761
|
+
[1m[35m (1.1ms)[0m DELETE FROM "items";
|
6762
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
6763
|
+
Connecting to database specified by database.yml
|
6764
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6765
|
+
[1m[35mSQL (4.6ms)[0m 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
|
+
[1m[36m (2.2ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mCategory Load (0.1ms)[0m 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
|
+
[1m[36m (1.4ms)[0m [1mDELETE FROM "categories";[0m
|
6775
|
+
[1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
6776
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "products";[0m
|
6777
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
6778
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
6779
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
6780
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "items";[0m
|
6781
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
6782
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6783
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mCategory Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6812
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (60.7ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories"
|
6821
|
+
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)
|
6822
|
+
[1m[36mCategory Load (0.3ms)[0m [1mSELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1[0m
|
6823
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
6824
|
+
[1m[36m (1.4ms)[0m [1mDELETE FROM "categories";[0m
|
6825
|
+
[1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
6826
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM "products";[0m
|
6827
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
6828
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
6829
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
6830
|
+
[1m[36m (0.8ms)[0m [1mDELETE FROM "items";[0m
|
6831
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
6832
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6833
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6847
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.1ms)[0m 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
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" [0m
|
6856
|
+
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)
|
6857
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1
|
6858
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
6859
|
+
[1m[35m (1.1ms)[0m DELETE FROM "categories";
|
6860
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
6861
|
+
[1m[35m (1.2ms)[0m DELETE FROM "products";
|
6862
|
+
[1m[36m (0.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
6863
|
+
[1m[35m (1.1ms)[0m DELETE FROM "product_has_categories";
|
6864
|
+
[1m[36m (0.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
6865
|
+
[1m[35m (1.0ms)[0m DELETE FROM "items";
|
6866
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
6867
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6868
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.7ms)[0m commit transaction
|
6870
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6871
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
6873
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6874
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.1ms)[0m commit transaction
|
6876
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
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
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "3"]]
|
6883
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
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
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "3"]]
|
6892
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6893
|
+
[1m[35m (0.3ms)[0m UPDATE "categories" SET "parent_id" = 2, "updated_at" = '2012-10-13 22:20:57.336934' WHERE "categories"."id" = 3
|
6894
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories"
|
6902
|
+
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
|
6903
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1[0m [["id", 3]]
|
6904
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1
|
6905
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "categories";[0m
|
6906
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
6907
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "products";[0m
|
6908
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
6909
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
6910
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
6911
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "items";[0m
|
6912
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
6913
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6914
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
6916
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6917
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.1ms)[0m commit transaction
|
6919
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6920
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
6922
|
+
[1m[35mCategory Load (0.2ms)[0m 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
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1[0m [["id", "3"]]
|
6929
|
+
[1m[35mCategory Load (0.2ms)[0m 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
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE (categories.name like '%new parent%')[0m
|
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
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "3"]]
|
6945
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6946
|
+
[1m[35m (0.4ms)[0m UPDATE "categories" SET "parent_id" = 2, "updated_at" = '2012-10-13 22:20:58.872293' WHERE "categories"."id" = 3
|
6947
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories"
|
6955
|
+
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)
|
6956
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1[0m [["id", 3]]
|
6957
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1
|
6958
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "categories";[0m
|
6959
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
6960
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "products";[0m
|
6961
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
6962
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
6963
|
+
[1m[35m (0.6ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
6964
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "items";[0m
|
6965
|
+
[1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
6966
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6967
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
6969
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6970
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.8ms)[0m commit transaction
|
6972
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6973
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
6975
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 2)
|
6976
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6977
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:20:59 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:20:59 UTC +00:00]]
|
6979
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 2], ["created_at", Sat, 13 Oct 2012 22:20:59 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:20:59 UTC +00:00]]
|
6980
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mProduct Load (0.2ms)[0m SELECT "products".* FROM "products"
|
6986
|
+
[1m[36m (0.2ms)[0m [1mSELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
6987
|
+
Completed 200 OK in 18ms (Views: 16.7ms | ActiveRecord: 0.3ms)
|
6988
|
+
[1m[35m (1.0ms)[0m DELETE FROM "categories";
|
6989
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
6990
|
+
[1m[35m (0.9ms)[0m DELETE FROM "products";
|
6991
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
6992
|
+
[1m[35m (1.0ms)[0m DELETE FROM "product_has_categories";
|
6993
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
6994
|
+
[1m[35m (0.9ms)[0m DELETE FROM "items";
|
6995
|
+
[1m[36m (0.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
6996
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6997
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.3ms)[0m commit transaction
|
6999
|
+
[1m[36m (28.8ms)[0m [1mbegin transaction[0m
|
7000
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
7002
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7003
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" IS NULL[0m
|
7010
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" IS NULL
|
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
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%')[0m
|
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
|
+
[1m[35mCategory Load (0.2ms)[0m 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
|
+
[1m[36mCategory Load (0.3ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 3)[0m
|
7033
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7034
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:21:01 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:21:01 UTC +00:00]]
|
7036
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 3], ["created_at", Sat, 13 Oct 2012 22:21:01 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:21:01 UTC +00:00]]
|
7037
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" [0m
|
7045
|
+
[1m[35m (0.1ms)[0m SELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
7046
|
+
Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms)
|
7047
|
+
[1m[36mProduct Load (0.2ms)[0m [1mSELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1[0m
|
7048
|
+
[1m[35mCategory Load (0.3ms)[0m SELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
7049
|
+
[1m[36m (1.4ms)[0m [1mDELETE FROM "categories";[0m
|
7050
|
+
[1m[35m (1.3ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
7051
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM "products";[0m
|
7052
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
7053
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
7054
|
+
[1m[35m (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
7055
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "items";[0m
|
7056
|
+
[1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
7057
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7058
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
7060
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7061
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.9ms)[0m commit transaction
|
7063
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7064
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35m (0.2ms)[0m SELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" IS NULL
|
7071
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" IS NULL[0m
|
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
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (3, 1)
|
7080
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7081
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 3], ["created_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00]]
|
7083
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00]]
|
7084
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mProduct Load (0.2ms)[0m SELECT "products".* FROM "products"
|
7092
|
+
[1m[36m (0.3ms)[0m [1mSELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
7093
|
+
Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.5ms)
|
7094
|
+
[1m[35mProduct Load (0.2ms)[0m SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1
|
7095
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
7096
|
+
[1m[35m (1.0ms)[0m DELETE FROM "categories";
|
7097
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
7098
|
+
[1m[35m (0.9ms)[0m DELETE FROM "products";
|
7099
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
7100
|
+
[1m[35m (1.0ms)[0m DELETE FROM "product_has_categories";
|
7101
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
7102
|
+
[1m[35m (1.5ms)[0m DELETE FROM "items";
|
7103
|
+
[1m[36m (0.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
7104
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7105
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.4ms)[0m commit transaction
|
7107
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7108
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
7110
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7111
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.9ms)[0m commit transaction
|
7113
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 3)[0m
|
7114
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7115
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00]]
|
7117
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 3], ["created_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00]]
|
7118
|
+
[1m[35m (1.1ms)[0m 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
|
+
[1m[36mProduct Load (0.2ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1[0m [["id", "1"]]
|
7125
|
+
[1m[35m (0.3ms)[0m SELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
7126
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
7127
|
+
[1m[35mCategory Load (0.3ms)[0m SELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
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
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1[0m [["id", "1"]]
|
7136
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7137
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" IN (2, 1)[0m
|
7138
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
7139
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "product_has_categories" WHERE "product_has_categories"."product_id" = 1 AND "product_has_categories"."category_id" = 3[0m
|
7140
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 2], ["created_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00]]
|
7141
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products"
|
7149
|
+
[1m[36m (0.1ms)[0m [1mSELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
7150
|
+
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.3ms)
|
7151
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 1]]
|
7152
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
7153
|
+
[1m[35m (1.0ms)[0m DELETE FROM "categories";
|
7154
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
7155
|
+
[1m[35m (1.2ms)[0m DELETE FROM "products";
|
7156
|
+
[1m[36m (1.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
7157
|
+
[1m[35m (0.9ms)[0m DELETE FROM "product_has_categories";
|
7158
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
7159
|
+
[1m[35m (0.8ms)[0m DELETE FROM "items";
|
7160
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
7161
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7162
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.1ms)[0m commit transaction
|
7164
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7165
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
7167
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7168
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.8ms)[0m commit transaction
|
7170
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 3)[0m
|
7171
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7172
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00]]
|
7174
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 3], ["created_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:21:02 UTC +00:00]]
|
7175
|
+
[1m[35m (1.0ms)[0m 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
|
+
[1m[36mProduct Load (0.3ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1[0m [["id", "1"]]
|
7182
|
+
[1m[35m (0.2ms)[0m SELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
7183
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
7184
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
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
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE (categories.name like '%skirt%')[0m
|
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
|
+
[1m[35mCategory Load (0.2ms)[0m 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
|
+
[1m[36mProduct Load (0.3ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1[0m [["id", "1"]]
|
7207
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7208
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" IN (2, 1)[0m
|
7209
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
7210
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "product_has_categories" WHERE "product_has_categories"."product_id" = 1 AND "product_has_categories"."category_id" = 3[0m
|
7211
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products"
|
7220
|
+
[1m[36m (0.1ms)[0m [1mSELECT "categories".id FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
7221
|
+
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.3ms)
|
7222
|
+
[1m[35mProduct Load (0.3ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 1]]
|
7223
|
+
[1m[36mCategory Load (0.3ms)[0m [1mSELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
7224
|
+
[1m[35m (1.4ms)[0m DELETE FROM "categories";
|
7225
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
7226
|
+
[1m[35m (1.2ms)[0m DELETE FROM "products";
|
7227
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
7228
|
+
[1m[35m (1.1ms)[0m DELETE FROM "product_has_categories";
|
7229
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
7230
|
+
[1m[35m (1.1ms)[0m DELETE FROM "items";
|
7231
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
7232
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7233
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (2.2ms)[0m commit transaction
|
7235
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7236
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
7238
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7239
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.9ms)[0m commit transaction
|
7241
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7242
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
|
7249
|
+
Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.2ms)
|
7250
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "categories";[0m
|
7251
|
+
[1m[35m (1.4ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
7252
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "products";[0m
|
7253
|
+
[1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
7254
|
+
[1m[36m (0.8ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
7255
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
7256
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "items";[0m
|
7257
|
+
[1m[35m (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
7258
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7259
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
7261
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7262
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.1ms)[0m commit transaction
|
7264
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7265
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mCategory Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7286
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:21:11 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:21:11 UTC +00:00]]
|
7287
|
+
[1m[36m (24.6ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items"
|
7295
|
+
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)
|
7296
|
+
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1[0m
|
7297
|
+
[1m[35mCategory Load (0.3ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
7298
|
+
[1m[36m (17.1ms)[0m [1mDELETE FROM "categories";[0m
|
7299
|
+
[1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
7300
|
+
[1m[36m (14.2ms)[0m [1mDELETE FROM "products";[0m
|
7301
|
+
[1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
7302
|
+
[1m[36m (9.3ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
7303
|
+
[1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
7304
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "items";[0m
|
7305
|
+
[1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
7306
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7307
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
7309
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7310
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.1ms)[0m commit transaction
|
7312
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7313
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7327
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:21:11 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:21:11 UTC +00:00]]
|
7328
|
+
[1m[35m (1.3ms)[0m 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
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" [0m
|
7336
|
+
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)
|
7337
|
+
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1
|
7338
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
7339
|
+
[1m[35m (1.5ms)[0m DELETE FROM "categories";
|
7340
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
7341
|
+
[1m[35m (0.9ms)[0m DELETE FROM "products";
|
7342
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
7343
|
+
[1m[35m (0.9ms)[0m DELETE FROM "product_has_categories";
|
7344
|
+
[1m[36m (0.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
7345
|
+
[1m[35m (2.1ms)[0m DELETE FROM "items";
|
7346
|
+
[1m[36m (20.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
7347
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7348
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.9ms)[0m commit transaction
|
7350
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7351
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
7353
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7354
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.9ms)[0m commit transaction
|
7356
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7357
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:21:12 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 22:21:12 UTC +00:00]]
|
7358
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
7359
|
+
[1m[35mCategory Load (0.2ms)[0m 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
|
+
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
|
7366
|
+
[1m[35mCategory Load (0.2ms)[0m 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
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
|
7375
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7376
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "items" SET "category_id" = 2, "updated_at" = '2012-10-13 22:21:12.197596' WHERE "items"."id" = 1[0m
|
7377
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" [0m
|
7385
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)
|
7386
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
|
7387
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1[0m
|
7388
|
+
[1m[35m (23.5ms)[0m DELETE FROM "categories";
|
7389
|
+
[1m[36m (7.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
7390
|
+
[1m[35m (25.4ms)[0m DELETE FROM "products";
|
7391
|
+
[1m[36m (0.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
7392
|
+
[1m[35m (1.3ms)[0m DELETE FROM "product_has_categories";
|
7393
|
+
[1m[36m (8.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
7394
|
+
[1m[35m (20.2ms)[0m DELETE FROM "items";
|
7395
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
7396
|
+
[1m[35m (0.2ms)[0m begin transaction
|
7397
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.5ms)[0m commit transaction
|
7399
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7400
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
7402
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7403
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.9ms)[0m commit transaction
|
7405
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7406
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "items" ("category_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:21:12 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 22:21:12 UTC +00:00]]
|
7407
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
7408
|
+
[1m[35mCategory Load (0.2ms)[0m 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
|
+
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
|
7415
|
+
[1m[35mCategory Load (0.3ms)[0m 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
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE (categories.name like '%skirt%')[0m
|
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
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
|
7431
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7432
|
+
[1m[35m (0.3ms)[0m UPDATE "items" SET "category_id" = 2, "updated_at" = '2012-10-13 22:21:14.802393' WHERE "items"."id" = 1
|
7433
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
|
7441
|
+
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)
|
7442
|
+
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
|
7443
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1
|
7444
|
+
[1m[36m (1.5ms)[0m [1mDELETE FROM "categories";[0m
|
7445
|
+
[1m[35m (4.0ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
7446
|
+
[1m[36m (2.2ms)[0m [1mDELETE FROM "products";[0m
|
7447
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
7448
|
+
[1m[36m (0.8ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
7449
|
+
[1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
7450
|
+
[1m[36m (1.3ms)[0m [1mDELETE FROM "items";[0m
|
7451
|
+
[1m[35m (1.6ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|