token_field 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/token_field/engine.rb +4 -0
- data/lib/token_field/version.rb +1 -1
- data/lib/token_field.rb +0 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +690 -0
- metadata +3 -3
data/lib/token_field/engine.rb
CHANGED
data/lib/token_field/version.rb
CHANGED
data/lib/token_field.rb
CHANGED
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/spec/dummy/log/test.log
CHANGED
@@ -7449,3 +7449,693 @@ Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)
|
|
7449
7449
|
[1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
7450
7450
|
[1m[36m (1.3ms)[0m [1mDELETE FROM "items";[0m
|
7451
7451
|
[1m[35m (1.6ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
7452
|
+
Connecting to database specified by database.yml
|
7453
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7454
|
+
[1m[35mSQL (5.2ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:16 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:16 UTC +00:00]]
|
7455
|
+
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
7456
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7457
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:16 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:16 UTC +00:00]]
|
7458
|
+
[1m[35m (1.3ms)[0m commit transaction
|
7459
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7460
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:16 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:16 UTC +00:00]]
|
7461
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
7462
|
+
|
7463
|
+
|
7464
|
+
Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:52:17 +0200
|
7465
|
+
Processing by ItemsController#new as HTML
|
7466
|
+
Rendered items/_form.html.erb (85.2ms)
|
7467
|
+
Rendered items/new.html.erb within layouts/application (89.7ms)
|
7468
|
+
Completed 200 OK in 153ms (Views: 146.8ms | ActiveRecord: 0.2ms)
|
7469
|
+
|
7470
|
+
|
7471
|
+
Started POST "/items" for 127.0.0.1 at 2012-10-14 00:52:17 +0200
|
7472
|
+
Processing by ItemsController#create as HTML
|
7473
|
+
Parameters: {"utf8"=>"✓", "item"=>{"name"=>"hello", "category_id"=>"1"}, "commit"=>"Create Item"}
|
7474
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7475
|
+
[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:52:17 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:52:17 UTC +00:00]]
|
7476
|
+
[1m[35m (152.4ms)[0m commit transaction
|
7477
|
+
Redirected to http://www.example.com/items
|
7478
|
+
Completed 302 Found in 156ms (ActiveRecord: 152.9ms)
|
7479
|
+
|
7480
|
+
|
7481
|
+
Started GET "/items" for 127.0.0.1 at 2012-10-14 00:52:17 +0200
|
7482
|
+
Processing by ItemsController#index as HTML
|
7483
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" [0m
|
7484
|
+
Rendered items/index.html.erb within layouts/application (1.3ms)
|
7485
|
+
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)
|
7486
|
+
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1
|
7487
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
7488
|
+
[1m[35m (165.0ms)[0m DELETE FROM "categories";
|
7489
|
+
[1m[36m (105.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
7490
|
+
[1m[35m (0.9ms)[0m DELETE FROM "products";
|
7491
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
7492
|
+
[1m[35m (0.9ms)[0m DELETE FROM "product_has_categories";
|
7493
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
7494
|
+
[1m[35m (0.9ms)[0m DELETE FROM "items";
|
7495
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
7496
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7497
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:17 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:17 UTC +00:00]]
|
7498
|
+
[1m[35m (1.0ms)[0m commit transaction
|
7499
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7500
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:17 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:17 UTC +00:00]]
|
7501
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
7502
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7503
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:17 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:17 UTC +00:00]]
|
7504
|
+
[1m[35m (0.9ms)[0m commit transaction
|
7505
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7506
|
+
[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:52:17 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 22:52:17 UTC +00:00]]
|
7507
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
7508
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
7509
|
+
|
7510
|
+
|
7511
|
+
Started GET "/items/1/edit" for 127.0.0.1 at 2012-10-14 00:52:21 +0200
|
7512
|
+
Processing by ItemsController#edit as HTML
|
7513
|
+
Parameters: {"id"=>"1"}
|
7514
|
+
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
|
7515
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
7516
|
+
Rendered items/_form.html.erb (9.6ms)
|
7517
|
+
Completed 200 OK in 18ms (Views: 13.3ms | ActiveRecord: 1.7ms)
|
7518
|
+
|
7519
|
+
|
7520
|
+
Started GET "/assets/application.css" for 127.0.0.1 at 2012-10-14 00:52:21 +0200
|
7521
|
+
Served asset /application.css - 200 OK (41ms)
|
7522
|
+
|
7523
|
+
|
7524
|
+
Started GET "/assets/application.js" for 127.0.0.1 at 2012-10-14 00:52:21 +0200
|
7525
|
+
Served asset /application.js - 200 OK (29ms)
|
7526
|
+
|
7527
|
+
|
7528
|
+
Started GET "/categories/token?q=skirt" for 127.0.0.1 at 2012-10-14 00:52:22 +0200
|
7529
|
+
Processing by CategoriesController#token as JSON
|
7530
|
+
Parameters: {"q"=>"skirt"}
|
7531
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE (categories.name like '%skirt%')[0m
|
7532
|
+
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
7533
|
+
|
7534
|
+
|
7535
|
+
Started PUT "/items/1" for 127.0.0.1 at 2012-10-14 00:52:23 +0200
|
7536
|
+
Processing by ItemsController#update as HTML
|
7537
|
+
Parameters: {"utf8"=>"✓", "item"=>{"name"=>"item", "category_id"=>"2"}, "commit"=>"Update Item", "id"=>"1"}
|
7538
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
|
7539
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7540
|
+
[1m[35m (0.3ms)[0m UPDATE "items" SET "category_id" = 2, "updated_at" = '2012-10-13 22:52:23.072513' WHERE "items"."id" = 1
|
7541
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
7542
|
+
Redirected to http://127.0.0.1:54365/items
|
7543
|
+
Completed 302 Found in 7ms (ActiveRecord: 1.5ms)
|
7544
|
+
|
7545
|
+
|
7546
|
+
Started GET "/items" for 127.0.0.1 at 2012-10-14 00:52:23 +0200
|
7547
|
+
Processing by ItemsController#index as HTML
|
7548
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items"
|
7549
|
+
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
|
7550
|
+
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
|
7551
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1
|
7552
|
+
[1m[36m (105.0ms)[0m [1mDELETE FROM "categories";[0m
|
7553
|
+
[1m[35m (115.9ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
7554
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "products";[0m
|
7555
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
7556
|
+
[1m[36m (28.8ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
7557
|
+
[1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
7558
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "items";[0m
|
7559
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
7560
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7561
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]]
|
7562
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
7563
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7564
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]]
|
7565
|
+
[1m[35m (1.4ms)[0m commit transaction
|
7566
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7567
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]]
|
7568
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
7569
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7570
|
+
[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:52:23 UTC +00:00], ["name", "new one"], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]]
|
7571
|
+
[1m[35m (1.1ms)[0m commit transaction
|
7572
|
+
|
7573
|
+
|
7574
|
+
Started GET "/items" for 127.0.0.1 at 2012-10-14 00:52:23 +0200
|
7575
|
+
Processing by ItemsController#index as HTML
|
7576
|
+
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" [0m
|
7577
|
+
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)
|
7578
|
+
[1m[35m (1.0ms)[0m DELETE FROM "categories";
|
7579
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
7580
|
+
[1m[35m (1.6ms)[0m DELETE FROM "products";
|
7581
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
7582
|
+
[1m[35m (1.0ms)[0m DELETE FROM "product_has_categories";
|
7583
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
7584
|
+
[1m[35m (0.9ms)[0m DELETE FROM "items";
|
7585
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
7586
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7587
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]]
|
7588
|
+
[1m[35m (1.7ms)[0m commit transaction
|
7589
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7590
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]]
|
7591
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
7592
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7593
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]]
|
7594
|
+
[1m[35m (1.0ms)[0m commit transaction
|
7595
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7596
|
+
[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:52:23 UTC +00:00], ["name", "item"], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]]
|
7597
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
7598
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
7599
|
+
|
7600
|
+
|
7601
|
+
Started GET "/items/1/edit" for 127.0.0.1 at 2012-10-14 00:52:23 +0200
|
7602
|
+
Processing by ItemsController#edit as HTML
|
7603
|
+
Parameters: {"id"=>"1"}
|
7604
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
|
7605
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
7606
|
+
Rendered items/_form.html.erb (5.4ms)
|
7607
|
+
Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.3ms)
|
7608
|
+
|
7609
|
+
|
7610
|
+
Started PUT "/items/1" for 127.0.0.1 at 2012-10-14 00:52:23 +0200
|
7611
|
+
Processing by ItemsController#update as HTML
|
7612
|
+
Parameters: {"utf8"=>"✓", "item"=>{"name"=>"item", "category_id"=>"2"}, "commit"=>"Update Item", "id"=>"1"}
|
7613
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
|
7614
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7615
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "items" SET "category_id" = 2, "updated_at" = '2012-10-13 22:52:23.603118' WHERE "items"."id" = 1[0m
|
7616
|
+
[1m[35m (0.9ms)[0m commit transaction
|
7617
|
+
Redirected to http://www.example.com/items
|
7618
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.3ms)
|
7619
|
+
|
7620
|
+
|
7621
|
+
Started GET "/items" for 127.0.0.1 at 2012-10-14 00:52:23 +0200
|
7622
|
+
Processing by ItemsController#index as HTML
|
7623
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" [0m
|
7624
|
+
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
7625
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
|
7626
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1[0m
|
7627
|
+
[1m[35m (0.9ms)[0m DELETE FROM "categories";
|
7628
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
7629
|
+
[1m[35m (1.0ms)[0m DELETE FROM "products";
|
7630
|
+
[1m[36m (0.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
7631
|
+
[1m[35m (0.9ms)[0m DELETE FROM "product_has_categories";
|
7632
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
7633
|
+
[1m[35m (1.1ms)[0m DELETE FROM "items";
|
7634
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
7635
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7636
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]]
|
7637
|
+
[1m[35m (1.7ms)[0m commit transaction
|
7638
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7639
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]]
|
7640
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
7641
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7642
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:23 UTC +00:00]]
|
7643
|
+
[1m[35m (0.9ms)[0m commit transaction
|
7644
|
+
|
7645
|
+
|
7646
|
+
Started GET "/items/new" for 127.0.0.1 at 2012-10-14 00:52:23 +0200
|
7647
|
+
Processing by ItemsController#new as HTML
|
7648
|
+
Rendered items/_form.html.erb (5.5ms)
|
7649
|
+
Completed 200 OK in 7ms (Views: 7.1ms | ActiveRecord: 0.0ms)
|
7650
|
+
|
7651
|
+
|
7652
|
+
Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 00:52:24 +0200
|
7653
|
+
Processing by CategoriesController#token as JSON
|
7654
|
+
Parameters: {"q"=>"shoes"}
|
7655
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%')[0m
|
7656
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
7657
|
+
|
7658
|
+
|
7659
|
+
Started POST "/items" for 127.0.0.1 at 2012-10-14 00:52:25 +0200
|
7660
|
+
Processing by ItemsController#create as HTML
|
7661
|
+
Parameters: {"utf8"=>"✓", "item"=>{"name"=>"hello", "category_id"=>"1"}, "commit"=>"Create Item"}
|
7662
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7663
|
+
[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:52:25 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00]]
|
7664
|
+
[1m[35m (0.9ms)[0m commit transaction
|
7665
|
+
Redirected to http://127.0.0.1:54365/items
|
7666
|
+
Completed 302 Found in 3ms (ActiveRecord: 1.4ms)
|
7667
|
+
|
7668
|
+
|
7669
|
+
Started GET "/items" for 127.0.0.1 at 2012-10-14 00:52:25 +0200
|
7670
|
+
Processing by ItemsController#index as HTML
|
7671
|
+
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" [0m
|
7672
|
+
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)
|
7673
|
+
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1
|
7674
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
7675
|
+
[1m[35m (1.2ms)[0m DELETE FROM "categories";
|
7676
|
+
[1m[36m (4.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
7677
|
+
[1m[35m (34.6ms)[0m DELETE FROM "products";
|
7678
|
+
[1m[36m (0.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
7679
|
+
[1m[35m (0.9ms)[0m DELETE FROM "product_has_categories";
|
7680
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
7681
|
+
[1m[35m (50.0ms)[0m DELETE FROM "items";
|
7682
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
7683
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7684
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00]]
|
7685
|
+
[1m[35m (1.7ms)[0m commit transaction
|
7686
|
+
|
7687
|
+
|
7688
|
+
Started GET "/categories/new" for 127.0.0.1 at 2012-10-14 00:52:25 +0200
|
7689
|
+
Processing by CategoriesController#new as HTML
|
7690
|
+
Rendered categories/_form.html.erb (4.8ms)
|
7691
|
+
Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms)
|
7692
|
+
|
7693
|
+
|
7694
|
+
Started POST "/categories" for 127.0.0.1 at 2012-10-14 00:52:25 +0200
|
7695
|
+
Processing by CategoriesController#create as HTML
|
7696
|
+
Parameters: {"utf8"=>"✓", "category"=>{"name"=>"hello", "parent_id"=>"1"}, "commit"=>"Create Category"}
|
7697
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7698
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00], ["name", "hello"], ["parent_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00]]
|
7699
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
7700
|
+
Redirected to http://www.example.com/categories
|
7701
|
+
Completed 302 Found in 3ms (ActiveRecord: 1.3ms)
|
7702
|
+
|
7703
|
+
|
7704
|
+
Started GET "/categories" for 127.0.0.1 at 2012-10-14 00:52:25 +0200
|
7705
|
+
Processing by CategoriesController#index as HTML
|
7706
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories"
|
7707
|
+
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
|
7708
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1[0m
|
7709
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
7710
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "categories";[0m
|
7711
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
7712
|
+
[1m[36m (0.8ms)[0m [1mDELETE FROM "products";[0m
|
7713
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
7714
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
7715
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
7716
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "items";[0m
|
7717
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
7718
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7719
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00]]
|
7720
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
7721
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7722
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00], ["name", "new parent"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00]]
|
7723
|
+
[1m[35m (1.1ms)[0m commit transaction
|
7724
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7725
|
+
[1m[35mSQL (30.8ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00], ["name", "category_1"], ["parent_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:25 UTC +00:00]]
|
7726
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
7727
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
7728
|
+
|
7729
|
+
|
7730
|
+
Started GET "/categories/3/edit" for 127.0.0.1 at 2012-10-14 00:52:25 +0200
|
7731
|
+
Processing by CategoriesController#edit as HTML
|
7732
|
+
Parameters: {"id"=>"3"}
|
7733
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1[0m [["id", "3"]]
|
7734
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
7735
|
+
Rendered categories/_form.html.erb (4.6ms)
|
7736
|
+
Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.4ms)
|
7737
|
+
|
7738
|
+
|
7739
|
+
Started GET "/categories/token?q=new+parent" for 127.0.0.1 at 2012-10-14 00:52:26 +0200
|
7740
|
+
Processing by CategoriesController#token as JSON
|
7741
|
+
Parameters: {"q"=>"new parent"}
|
7742
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE (categories.name like '%new parent%')[0m
|
7743
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
7744
|
+
|
7745
|
+
|
7746
|
+
Started PUT "/categories/3" for 127.0.0.1 at 2012-10-14 00:52:26 +0200
|
7747
|
+
Processing by CategoriesController#update as HTML
|
7748
|
+
Parameters: {"utf8"=>"✓", "category"=>{"name"=>"category_1", "parent_id"=>"2"}, "commit"=>"Update Category", "id"=>"3"}
|
7749
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "3"]]
|
7750
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7751
|
+
[1m[35m (0.4ms)[0m UPDATE "categories" SET "parent_id" = 2, "updated_at" = '2012-10-13 22:52:26.844819' WHERE "categories"."id" = 3
|
7752
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
7753
|
+
Redirected to http://127.0.0.1:54365/categories
|
7754
|
+
Completed 302 Found in 6ms (ActiveRecord: 1.4ms)
|
7755
|
+
|
7756
|
+
|
7757
|
+
Started GET "/categories" for 127.0.0.1 at 2012-10-14 00:52:26 +0200
|
7758
|
+
Processing by CategoriesController#index as HTML
|
7759
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories"
|
7760
|
+
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)
|
7761
|
+
[1m[36mCategory Load (0.3ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1[0m [["id", 3]]
|
7762
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1
|
7763
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "categories";[0m
|
7764
|
+
[1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
7765
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "products";[0m
|
7766
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
7767
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
7768
|
+
[1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
7769
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "items";[0m
|
7770
|
+
[1m[35m (0.7ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
7771
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7772
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:26 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:26 UTC +00:00]]
|
7773
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
7774
|
+
|
7775
|
+
|
7776
|
+
Started GET "/categories" for 127.0.0.1 at 2012-10-14 00:52:26 +0200
|
7777
|
+
Processing by CategoriesController#index as HTML
|
7778
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories"
|
7779
|
+
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)
|
7780
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "categories";[0m
|
7781
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
7782
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "products";[0m
|
7783
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
7784
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
7785
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
7786
|
+
[1m[36m (0.8ms)[0m [1mDELETE FROM "items";[0m
|
7787
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
7788
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7789
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:27 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:27 UTC +00:00]]
|
7790
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
7791
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7792
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:27 UTC +00:00], ["name", "category_2"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:27 UTC +00:00]]
|
7793
|
+
[1m[35m (0.9ms)[0m commit transaction
|
7794
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7795
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:27 UTC +00:00], ["name", "category_3"], ["parent_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:27 UTC +00:00]]
|
7796
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
7797
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
7798
|
+
|
7799
|
+
|
7800
|
+
Started GET "/categories/3/edit" for 127.0.0.1 at 2012-10-14 00:52:27 +0200
|
7801
|
+
Processing by CategoriesController#edit as HTML
|
7802
|
+
Parameters: {"id"=>"3"}
|
7803
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1[0m [["id", "3"]]
|
7804
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1
|
7805
|
+
Rendered categories/_form.html.erb (3.7ms)
|
7806
|
+
Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.3ms)
|
7807
|
+
|
7808
|
+
|
7809
|
+
Started PUT "/categories/3" for 127.0.0.1 at 2012-10-14 00:52:27 +0200
|
7810
|
+
Processing by CategoriesController#update as HTML
|
7811
|
+
Parameters: {"utf8"=>"✓", "category"=>{"name"=>"category_3", "parent_id"=>"2"}, "commit"=>"Update Category", "id"=>"3"}
|
7812
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1[0m [["id", "3"]]
|
7813
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7814
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "categories" SET "parent_id" = 2, "updated_at" = '2012-10-13 22:52:27.067993' WHERE "categories"."id" = 3[0m
|
7815
|
+
[1m[35m (0.9ms)[0m commit transaction
|
7816
|
+
Redirected to http://www.example.com/categories
|
7817
|
+
Completed 302 Found in 3ms (ActiveRecord: 1.3ms)
|
7818
|
+
|
7819
|
+
|
7820
|
+
Started GET "/categories" for 127.0.0.1 at 2012-10-14 00:52:27 +0200
|
7821
|
+
Processing by CategoriesController#index as HTML
|
7822
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" [0m
|
7823
|
+
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
7824
|
+
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]]
|
7825
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 2 LIMIT 1[0m
|
7826
|
+
[1m[35m (1.1ms)[0m DELETE FROM "categories";
|
7827
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
7828
|
+
[1m[35m (0.9ms)[0m DELETE FROM "products";
|
7829
|
+
[1m[36m (0.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
7830
|
+
[1m[35m (0.9ms)[0m DELETE FROM "product_has_categories";
|
7831
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
7832
|
+
[1m[35m (0.9ms)[0m DELETE FROM "items";
|
7833
|
+
[1m[36m (0.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
7834
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7835
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:27 UTC +00:00], ["name", "wood"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:27 UTC +00:00]]
|
7836
|
+
[1m[35m (1.7ms)[0m commit transaction
|
7837
|
+
|
7838
|
+
|
7839
|
+
Started GET "/categories/new" for 127.0.0.1 at 2012-10-14 00:52:27 +0200
|
7840
|
+
Processing by CategoriesController#new as HTML
|
7841
|
+
Rendered categories/_form.html.erb (2.7ms)
|
7842
|
+
Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms)
|
7843
|
+
|
7844
|
+
|
7845
|
+
Started GET "/categories/token?q=wood" for 127.0.0.1 at 2012-10-14 00:52:27 +0200
|
7846
|
+
Processing by CategoriesController#token as JSON
|
7847
|
+
Parameters: {"q"=>"wood"}
|
7848
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE (categories.name like '%wood%')[0m
|
7849
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
7850
|
+
|
7851
|
+
|
7852
|
+
Started POST "/categories" for 127.0.0.1 at 2012-10-14 00:52:28 +0200
|
7853
|
+
Processing by CategoriesController#create as HTML
|
7854
|
+
Parameters: {"utf8"=>"✓", "category"=>{"name"=>"hello", "parent_id"=>"1"}, "commit"=>"Create Category"}
|
7855
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7856
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["name", "hello"], ["parent_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]]
|
7857
|
+
[1m[35m (0.7ms)[0m commit transaction
|
7858
|
+
Redirected to http://127.0.0.1:54365/categories
|
7859
|
+
Completed 302 Found in 3ms (ActiveRecord: 1.2ms)
|
7860
|
+
|
7861
|
+
|
7862
|
+
Started GET "/categories" for 127.0.0.1 at 2012-10-14 00:52:28 +0200
|
7863
|
+
Processing by CategoriesController#index as HTML
|
7864
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" [0m
|
7865
|
+
Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)
|
7866
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1
|
7867
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 LIMIT 1[0m
|
7868
|
+
[1m[35m (1.0ms)[0m DELETE FROM "categories";
|
7869
|
+
[1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
7870
|
+
[1m[35m (0.9ms)[0m DELETE FROM "products";
|
7871
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
7872
|
+
[1m[35m (1.0ms)[0m DELETE FROM "product_has_categories";
|
7873
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
7874
|
+
[1m[35m (0.9ms)[0m DELETE FROM "items";
|
7875
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
7876
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7877
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]]
|
7878
|
+
[1m[35m (0.9ms)[0m commit transaction
|
7879
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7880
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]]
|
7881
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
7882
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7883
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]]
|
7884
|
+
[1m[35m (0.9ms)[0m commit transaction
|
7885
|
+
|
7886
|
+
|
7887
|
+
Started GET "/products/new" for 127.0.0.1 at 2012-10-14 00:52:28 +0200
|
7888
|
+
Processing by ProductsController#new as HTML
|
7889
|
+
[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
|
7890
|
+
[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
|
7891
|
+
Rendered products/_form.html.erb (99.3ms)
|
7892
|
+
Completed 200 OK in 108ms (Views: 102.1ms | ActiveRecord: 0.6ms)
|
7893
|
+
|
7894
|
+
|
7895
|
+
Started POST "/products" for 127.0.0.1 at 2012-10-14 00:52:28 +0200
|
7896
|
+
Processing by ProductsController#create as HTML
|
7897
|
+
Parameters: {"utf8"=>"✓", "product"=>{"name"=>"hello", "category_ids"=>"3, 1"}, "commit"=>"Create Product"}
|
7898
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" IN (3, 1)[0m
|
7899
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7900
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]]
|
7901
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 3], ["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]]
|
7902
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]]
|
7903
|
+
[1m[35m (1.8ms)[0m commit transaction
|
7904
|
+
Redirected to http://www.example.com/products
|
7905
|
+
Completed 302 Found in 19ms (ActiveRecord: 2.9ms)
|
7906
|
+
|
7907
|
+
|
7908
|
+
Started GET "/products" for 127.0.0.1 at 2012-10-14 00:52:28 +0200
|
7909
|
+
Processing by ProductsController#index as HTML
|
7910
|
+
[1m[36mProduct Load (0.2ms)[0m [1mSELECT "products".* FROM "products" [0m
|
7911
|
+
[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
|
7912
|
+
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)
|
7913
|
+
[1m[36mProduct Load (0.2ms)[0m [1mSELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1[0m
|
7914
|
+
[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
|
7915
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "categories";[0m
|
7916
|
+
[1m[35m (1.7ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
7917
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "products";[0m
|
7918
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
7919
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
7920
|
+
[1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
7921
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "items";[0m
|
7922
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
7923
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7924
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]]
|
7925
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
7926
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7927
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]]
|
7928
|
+
[1m[35m (1.2ms)[0m commit transaction
|
7929
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7930
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]]
|
7931
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
7932
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 3)
|
7933
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7934
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["name", "product"], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]]
|
7935
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]]
|
7936
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 3], ["created_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:28 UTC +00:00]]
|
7937
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
7938
|
+
|
7939
|
+
|
7940
|
+
Started GET "/products/1/edit" for 127.0.0.1 at 2012-10-14 00:52:28 +0200
|
7941
|
+
Processing by ProductsController#edit as HTML
|
7942
|
+
Parameters: {"id"=>"1"}
|
7943
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", "1"]]
|
7944
|
+
[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
|
7945
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1
|
7946
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
7947
|
+
Rendered products/_form.html.erb (6.7ms)
|
7948
|
+
Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.8ms)
|
7949
|
+
|
7950
|
+
|
7951
|
+
Started GET "/categories/token?q=skirt" for 127.0.0.1 at 2012-10-14 00:52:29 +0200
|
7952
|
+
Processing by CategoriesController#token as JSON
|
7953
|
+
Parameters: {"q"=>"skirt"}
|
7954
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE (categories.name like '%skirt%')
|
7955
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
7956
|
+
|
7957
|
+
|
7958
|
+
Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 00:52:30 +0200
|
7959
|
+
Processing by CategoriesController#token as JSON
|
7960
|
+
Parameters: {"q"=>"shoes"}
|
7961
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%')[0m
|
7962
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
|
7963
|
+
|
7964
|
+
|
7965
|
+
Started PUT "/products/1" for 127.0.0.1 at 2012-10-14 00:52:31 +0200
|
7966
|
+
Processing by ProductsController#update as HTML
|
7967
|
+
Parameters: {"utf8"=>"✓", "product"=>{"name"=>"product", "category_ids"=>"2,1"}, "commit"=>"Update Product", "id"=>"1"}
|
7968
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", "1"]]
|
7969
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7970
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (2, 1)
|
7971
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
7972
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "product_has_categories" WHERE "product_has_categories"."product_id" = 1 AND "product_has_categories"."category_id" = 3
|
7973
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 2], ["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]]
|
7974
|
+
[1m[35m (1.3ms)[0m commit transaction
|
7975
|
+
Redirected to http://127.0.0.1:54365/products
|
7976
|
+
Completed 302 Found in 15ms (ActiveRecord: 2.6ms)
|
7977
|
+
|
7978
|
+
|
7979
|
+
Started GET "/products" for 127.0.0.1 at 2012-10-14 00:52:31 +0200
|
7980
|
+
Processing by ProductsController#index as HTML
|
7981
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" [0m
|
7982
|
+
[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
|
7983
|
+
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms)
|
7984
|
+
[1m[36mProduct Load (0.2ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1[0m [["id", 1]]
|
7985
|
+
[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
|
7986
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "categories";[0m
|
7987
|
+
[1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
7988
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "products";[0m
|
7989
|
+
[1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
7990
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
7991
|
+
[1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
7992
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "items";[0m
|
7993
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
7994
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7995
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]]
|
7996
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
7997
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7998
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]]
|
7999
|
+
[1m[35m (1.1ms)[0m commit transaction
|
8000
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8001
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]]
|
8002
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
8003
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 2)
|
8004
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8005
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "new one"], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]]
|
8006
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 1], ["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]]
|
8007
|
+
[1m[35mSQL (0.1ms)[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:52:31 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]]
|
8008
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
8009
|
+
|
8010
|
+
|
8011
|
+
Started GET "/products" for 127.0.0.1 at 2012-10-14 00:52:31 +0200
|
8012
|
+
Processing by ProductsController#index as HTML
|
8013
|
+
[1m[35mProduct Load (0.2ms)[0m SELECT "products".* FROM "products"
|
8014
|
+
[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
|
8015
|
+
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.3ms)
|
8016
|
+
[1m[35m (1.1ms)[0m DELETE FROM "categories";
|
8017
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
8018
|
+
[1m[35m (1.0ms)[0m DELETE FROM "products";
|
8019
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
8020
|
+
[1m[35m (1.0ms)[0m DELETE FROM "product_has_categories";
|
8021
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
8022
|
+
[1m[35m (1.0ms)[0m DELETE FROM "items";
|
8023
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
8024
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8025
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]]
|
8026
|
+
[1m[35m (1.5ms)[0m commit transaction
|
8027
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8028
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]]
|
8029
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
8030
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8031
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]]
|
8032
|
+
[1m[35m (1.7ms)[0m commit transaction
|
8033
|
+
[1m[36mCategory Load (0.3ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 3)[0m
|
8034
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8035
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "product"], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]]
|
8036
|
+
[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:52:31 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]]
|
8037
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "product_has_categories" ("category_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 3], ["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]]
|
8038
|
+
[1m[35m (1.2ms)[0m commit transaction
|
8039
|
+
|
8040
|
+
|
8041
|
+
Started GET "/products/1/edit" for 127.0.0.1 at 2012-10-14 00:52:31 +0200
|
8042
|
+
Processing by ProductsController#edit as HTML
|
8043
|
+
Parameters: {"id"=>"1"}
|
8044
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1[0m [["id", "1"]]
|
8045
|
+
[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
|
8046
|
+
[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
|
8047
|
+
[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
|
8048
|
+
Rendered products/_form.html.erb (6.0ms)
|
8049
|
+
Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.6ms)
|
8050
|
+
|
8051
|
+
|
8052
|
+
Started PUT "/products/1" for 127.0.0.1 at 2012-10-14 00:52:31 +0200
|
8053
|
+
Processing by ProductsController#update as HTML
|
8054
|
+
Parameters: {"utf8"=>"✓", "product"=>{"name"=>"product", "category_ids"=>"2, 1"}, "commit"=>"Update Product", "id"=>"1"}
|
8055
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1[0m [["id", "1"]]
|
8056
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8057
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" IN (2, 1)[0m
|
8058
|
+
[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
|
8059
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "product_has_categories" WHERE "product_has_categories"."product_id" = 1 AND "product_has_categories"."category_id" = 3[0m
|
8060
|
+
[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:52:31 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]]
|
8061
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
8062
|
+
Redirected to http://www.example.com/products
|
8063
|
+
Completed 302 Found in 8ms (ActiveRecord: 2.1ms)
|
8064
|
+
|
8065
|
+
|
8066
|
+
Started GET "/products" for 127.0.0.1 at 2012-10-14 00:52:31 +0200
|
8067
|
+
Processing by ProductsController#index as HTML
|
8068
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products"
|
8069
|
+
[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
|
8070
|
+
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)
|
8071
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 1]]
|
8072
|
+
[1m[36mCategory Load (0.1ms)[0m [1mSELECT "categories".* FROM "categories" INNER JOIN "product_has_categories" ON "categories"."id" = "product_has_categories"."category_id" WHERE "product_has_categories"."product_id" = 1[0m
|
8073
|
+
[1m[35m (1.0ms)[0m DELETE FROM "categories";
|
8074
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'categories';[0m
|
8075
|
+
[1m[35m (0.9ms)[0m DELETE FROM "products";
|
8076
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'products';[0m
|
8077
|
+
[1m[35m (0.9ms)[0m DELETE FROM "product_has_categories";
|
8078
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'product_has_categories';[0m
|
8079
|
+
[1m[35m (0.9ms)[0m DELETE FROM "items";
|
8080
|
+
[1m[36m (0.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'items';[0m
|
8081
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8082
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "shoes"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]]
|
8083
|
+
[1m[35m (1.6ms)[0m commit transaction
|
8084
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8085
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "skirt"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]]
|
8086
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
8087
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8088
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00], ["name", "pents"], ["parent_id", nil], ["updated_at", Sat, 13 Oct 2012 22:52:31 UTC +00:00]]
|
8089
|
+
[1m[35m (1.0ms)[0m commit transaction
|
8090
|
+
|
8091
|
+
|
8092
|
+
Started GET "/products/new" for 127.0.0.1 at 2012-10-14 00:52:31 +0200
|
8093
|
+
Processing by ProductsController#new as HTML
|
8094
|
+
[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" IS NULL[0m
|
8095
|
+
[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
|
8096
|
+
Rendered products/_form.html.erb (7.1ms)
|
8097
|
+
Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.4ms)
|
8098
|
+
|
8099
|
+
|
8100
|
+
Started GET "/categories/token?q=shoes" for 127.0.0.1 at 2012-10-14 00:52:32 +0200
|
8101
|
+
Processing by CategoriesController#token as JSON
|
8102
|
+
Parameters: {"q"=>"shoes"}
|
8103
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE (categories.name like '%shoes%')[0m
|
8104
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
|
8105
|
+
|
8106
|
+
|
8107
|
+
Started GET "/categories/token?q=pents" for 127.0.0.1 at 2012-10-14 00:52:34 +0200
|
8108
|
+
Processing by CategoriesController#token as JSON
|
8109
|
+
Parameters: {"q"=>"pents"}
|
8110
|
+
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE (categories.name like '%pents%')
|
8111
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
8112
|
+
|
8113
|
+
|
8114
|
+
Started POST "/products" for 127.0.0.1 at 2012-10-14 00:52:34 +0200
|
8115
|
+
Processing by ProductsController#create as HTML
|
8116
|
+
Parameters: {"utf8"=>"✓", "product"=>{"name"=>"hello", "category_ids"=>"1,3"}, "commit"=>"Create Product"}
|
8117
|
+
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 3)[0m
|
8118
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8119
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 13 Oct 2012 22:52:34 UTC +00:00], ["name", "hello"], ["updated_at", Sat, 13 Oct 2012 22:52:34 UTC +00:00]]
|
8120
|
+
[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:52:34 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:34 UTC +00:00]]
|
8121
|
+
[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:52:34 UTC +00:00], ["product_id", 1], ["updated_at", Sat, 13 Oct 2012 22:52:34 UTC +00:00]]
|
8122
|
+
[1m[35m (3.0ms)[0m commit transaction
|
8123
|
+
Redirected to http://127.0.0.1:54365/products
|
8124
|
+
Completed 302 Found in 11ms (ActiveRecord: 4.4ms)
|
8125
|
+
|
8126
|
+
|
8127
|
+
Started GET "/products" for 127.0.0.1 at 2012-10-14 00:52:34 +0200
|
8128
|
+
Processing by ProductsController#index as HTML
|
8129
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" [0m
|
8130
|
+
[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
|
8131
|
+
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.2ms)
|
8132
|
+
[1m[36mProduct Load (0.2ms)[0m [1mSELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1[0m
|
8133
|
+
[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
|
8134
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM "categories";[0m
|
8135
|
+
[1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'categories';
|
8136
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "products";[0m
|
8137
|
+
[1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'products';
|
8138
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "product_has_categories";[0m
|
8139
|
+
[1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'product_has_categories';
|
8140
|
+
[1m[36m (0.9ms)[0m [1mDELETE FROM "items";[0m
|
8141
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'items';
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: token_field
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -270,7 +270,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
270
270
|
version: '0'
|
271
271
|
segments:
|
272
272
|
- 0
|
273
|
-
hash: -
|
273
|
+
hash: -1244124510800806439
|
274
274
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
275
275
|
none: false
|
276
276
|
requirements:
|
@@ -279,7 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
279
279
|
version: '0'
|
280
280
|
segments:
|
281
281
|
- 0
|
282
|
-
hash: -
|
282
|
+
hash: -1244124510800806439
|
283
283
|
requirements: []
|
284
284
|
rubyforge_project:
|
285
285
|
rubygems_version: 1.8.24
|