  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  select sqlite_version(*)
  [1m[36mSQL (78.0ms)[0m  [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
  [1m[35mSQL (0.0ms)[0m  PRAGMA index_list("schema_migrations")
  [1m[36mSQL (62.4ms)[0m  [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations"
Migrating to CreateProducts (20110609140659)
  [1m[36mSQL (0.0ms)[0m  [1mCREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "image_url" varchar(255), "price" decimal(8,2), "created_at" datetime, "updated_at" datetime) [0m
  [1m[35mSQL (0.0ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20110609140659')
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations"
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  PRAGMA index_list("products")


Started GET "/say/goodbye" for 127.0.0.1 at 2011-06-09 16:58:27 +0200

ActionController::RoutingError (No route matches "/say/goodbye"):
  

Rendered C:/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.0ms)


Started GET "/products" for 127.0.0.1 at 2011-06-09 16:58:57 +0200
  Processing by ProductsController#index as HTML
  [1m[36mProduct Load (0.0ms)[0m  [1mSELECT "products".* FROM "products"[0m
Rendered products/index.html.erb within layouts/application (0.0ms)
Completed 200 OK in 296ms (Views: 15.6ms | ActiveRecord: 0.0ms)


Started GET "/products/new" for 127.0.0.1 at 2011-06-09 17:01:39 +0200
  Processing by ProductsController#new as HTML
Rendered products/_form.html.erb (156.0ms)
Rendered products/new.html.erb within layouts/application (171.6ms)
Completed 200 OK in 203ms (Views: 187.2ms | ActiveRecord: 0.0ms)
  [1m[36mSQL (15.6ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mSQL (15.6ms)[0m  select sqlite_version(*)
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (62.4ms)[0m  CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "image_url" varchar(255), "price" decimal(8,2), "created_at" datetime, "updated_at" datetime) 
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (62.4ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("schema_migrations")[0m
  [1m[35mSQL (78.0ms)[0m  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  SELECT version FROM "schema_migrations"
  [1m[36mSQL (78.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110609140659')[0m


Started GET "/products/new" for 127.0.0.1 at 2011-06-11 09:23:20 +0200
  Processing by ProductsController#new as HTML
Rendered products/_form.html.erb (172.0ms)
Rendered products/new.html.erb within layouts/application (221.0ms)
Completed 200 OK in 328ms (Views: 258.0ms | ActiveRecord: 0.0ms)


Started POST "/products" for 127.0.0.1 at 2011-06-11 09:34:14 +0200
  Processing by ProductsController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product"=>{"title"=>"Profesionální webdesign", "description"=>"Prostřednictvím praktických projektů, modelových designů a 7 komplexních vzorových řešení vám zkušený odborník představí jak základní, tak i promyšlenější koncepty designu, které vám umožní tvořit profesionálně vypadající weby pomocí nejnovějších technologií a technik. Jednotlivé přístupy jsou ilustrovány modelovými weby, jejichž zdrojové a grafické soubory naleznete k volnému použití na CD. Z knihy tak můžete čerpat nejen poučení a zdokonalení v tvůrčích technikách, ale i vydatnou inspiraci, nebo hotová řešení od webových profesionálů rovnou použít ve svých projektech. ", "image_url"=>"/images/pwd.jpg", "price"=>"587"}, "commit"=>"Create Product"}
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mAREL (1.0ms)[0m  INSERT INTO "products" ("title", "description", "image_url", "price", "created_at", "updated_at") VALUES ('Profesionální webdesign', 'Prostřednictvím praktických projektů, modelových designů a 7 komplexních vzorových řešení vám zkušený odborník představí jak základní, tak i promyšlenější koncepty designu, které vám umožní tvořit profesionálně vypadající weby pomocí nejnovějších technologií a technik. Jednotlivé přístupy jsou ilustrovány modelovými weby, jejichž zdrojové a grafické soubory naleznete k volnému použití na CD. Z knihy tak můžete čerpat nejen poučení a zdokonalení v tvůrčích technikách, ale i vydatnou inspiraci, nebo hotová řešení od webových profesionálů rovnou použít ve svých projektech. ', '/images/pwd.jpg', 587.0, '2011-06-11 07:34:14.984359', '2011-06-11 07:34:14.984359')
Redirected to http://localhost:3000/products/1
Completed 302 Found in 535ms


Started GET "/products/1" for 127.0.0.1 at 2011-06-11 09:34:15 +0200
  Processing by ProductsController#show as HTML
  Parameters: {"id"=>"1"}
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 1 LIMIT 1[0m
Rendered products/show.html.erb within layouts/application (15.0ms)
Completed 200 OK in 59ms (Views: 39.0ms | ActiveRecord: 3.0ms)


Started GET "/products" for 127.0.0.1 at 2011-06-11 09:34:39 +0200
  Processing by ProductsController#index as HTML
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products"
Rendered products/index.html.erb within layouts/application (18.0ms)
Completed 200 OK in 67ms (Views: 50.0ms | ActiveRecord: 0.0ms)
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mSQL (1.0ms)[0m  select sqlite_version(*)
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (74.0ms)[0m  CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "image_url" varchar(255), "price" decimal(8,2), "created_at" datetime, "updated_at" datetime) 
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (49.0ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("schema_migrations")[0m
  [1m[35mSQL (55.0ms)[0m  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  SELECT version FROM "schema_migrations"
  [1m[36mSQL (51.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110609140659')[0m
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (1.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mAREL (82.0ms)[0m  DELETE FROM "products" WHERE 1=1
  [1m[36mAREL (2.0ms)[0m  [1mINSERT INTO "products" ("title", "description", "image_url", "price", "created_at", "updated_at") VALUES ('Profesionální webdesign', '<p>
 Prostřednictvím praktických projektů, modelových designů a 
 7 komplexních vzorových řešení vám zkušený odborník představí jak základní, 
 tak i promyšlenější koncepty designu, které vám umožní tvořit profesionálně 
 vypadající weby pomocí nejnovějších technologií a technik. 
 Jednotlivé přístupy jsou ilustrovány modelovými weby, 
 jejichž zdrojové a grafické soubory naleznete k volnému použití na CD. 
 Z knihy tak můžete čerpat nejen poučení a zdokonalení v tvůrčích technikách, 
 ale i vydatnou inspiraci, nebo hotová řešení od webových profesionálů rovnou 
 použít ve svých projektech.
 </p>', '/images/pwd.jpg', 587.0, '2011-06-11 08:00:45.319359', '2011-06-11 08:00:45.319359')[0m
  [1m[35mAREL (1.0ms)[0m  INSERT INTO "products" ("title", "description", "image_url", "price", "created_at", "updated_at") VALUES ('Začínáme programovat v Ruby on Rails', '<p>
 Ruby on Rails je revoluční programovací nástroj, 
 jenž urychluje a zjednodušuje tvorbu webových stránek a jejich aplikací. 
 Díky zapojení přímočarého jazyka Ruby a vývojové platformy, kterou poskytuje Rails, 
 můžete ve velmi krátkém čase vytvořit plnohodnotné webové aplikace, 
 i když nejste zkušenými programátory.
 </p>', '/images/zprr.jpg', 337.0, '2011-06-11 08:00:45.453359', '2011-06-11 08:00:45.453359')
  [1m[36mAREL (1.0ms)[0m  [1mINSERT INTO "products" ("title", "description", "image_url", "price", "created_at", "updated_at") VALUES ('jQuery, Kuchařka programátora', '<p>
 <em>Rails Test Prescriptions</em> is a comprehensive guide to testing
 Rails applications, covering Test-Driven Development from both a
 theoretical perspective (why to test) and from a practical perspective
 (how to test effectively). It covers the core Rails testing tools and
 procedures for Rails 2 and Rails 3, and introduces popular add-ons,
 including Cucumber, Shoulda, Machinist, Mocha, and Rcov.
 </p>', '/images/jqkp.jpg', 502.0, '2011-06-11 08:00:45.507359', '2011-06-11 08:00:45.507359')[0m


Started GET "/products" for 127.0.0.1 at 2011-06-11 10:02:37 +0200
  Processing by ProductsController#index as HTML
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products"[0m
Rendered products/index.html.erb within layouts/application (307.0ms)
Completed 200 OK in 350ms (Views: 331.0ms | ActiveRecord: 1.0ms)


Started GET "/products/new" for 127.0.0.1 at 2011-06-11 10:28:00 +0200
  Processing by ProductsController#new as HTML
Rendered products/_form.html.erb (14.0ms)
Rendered products/new.html.erb within layouts/application (25.0ms)
Completed 200 OK in 69ms (Views: 48.0ms | ActiveRecord: 0.0ms)


Started GET "/products/new" for 127.0.0.1 at 2011-06-11 10:28:04 +0200
  Processing by ProductsController#new as HTML
Rendered products/_form.html.erb (13.0ms)
Rendered products/new.html.erb within layouts/application (24.0ms)
Completed 200 OK in 67ms (Views: 46.0ms | ActiveRecord: 0.0ms)


Started POST "/products" for 127.0.0.1 at 2011-06-11 10:28:08 +0200
  Processing by ProductsController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product"=>{"title"=>"", "description"=>"", "image_url"=>"", "price"=>""}, "commit"=>"Create Product"}
Rendered products/_form.html.erb (13.0ms)
Rendered products/new.html.erb within layouts/application (25.0ms)
Completed 200 OK in 109ms (Views: 47.0ms | ActiveRecord: 0.0ms)


Started GET "/products" for 127.0.0.1 at 2011-06-11 10:30:45 +0200
  Processing by ProductsController#index as HTML
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products"
Rendered products/index.html.erb within layouts/application (24.0ms)
Completed 200 OK in 65ms (Views: 46.0ms | ActiveRecord: 0.0ms)


Started GET "/products/new" for 127.0.0.1 at 2011-06-11 10:30:49 +0200
  Processing by ProductsController#new as HTML
Rendered products/_form.html.erb (13.0ms)
Rendered products/new.html.erb within layouts/application (24.0ms)
Completed 200 OK in 67ms (Views: 46.0ms | ActiveRecord: 0.0ms)


Started GET "/products/new" for 127.0.0.1 at 2011-06-11 10:30:51 +0200
  Processing by ProductsController#new as HTML
Rendered products/_form.html.erb (13.0ms)
Rendered products/new.html.erb within layouts/application (23.0ms)
Completed 200 OK in 97ms (Views: 47.0ms | ActiveRecord: 0.0ms)


Started POST "/products" for 127.0.0.1 at 2011-06-11 10:32:15 +0200
  Processing by ProductsController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product"=>{"title"=>"Začínáme programovat v Ruby on Rails", "description"=>"<p>Ruby on Rails je revoluční programovací nástroj, jenž urychluje a zjednodušuje tvorbu webových stránek a jejich aplikací. Díky zapojení přímočarého jazyka Ruby a vývojové platformy, kterou poskytuje Rails, můžete ve velmi krátkém čase vytvořit plnohodnotné webové aplikace, i když nejste zkušenými programátory.</p>", "image_url"=>"/images/zprr.jpg", "price"=>"blabla"}, "commit"=>"Create Product"}
Rendered products/_form.html.erb (9.0ms)
Rendered products/new.html.erb within layouts/application (19.0ms)
Completed 200 OK in 74ms (Views: 42.0ms | ActiveRecord: 0.0ms)
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (1.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mSQL (0.0ms)[0m  select sqlite_version(*)
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (55.0ms)[0m  CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "image_url" varchar(255), "price" decimal(8,2), "created_at" datetime, "updated_at" datetime) 
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (59.0ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("schema_migrations")[0m
  [1m[35mSQL (58.0ms)[0m  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  SELECT version FROM "schema_migrations"
  [1m[36mSQL (65.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110609140659')[0m
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mSQL (1.0ms)[0m  select sqlite_version(*)
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (826.0ms)[0m  CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "image_url" varchar(255), "price" decimal(8,2), "created_at" datetime, "updated_at" datetime) 
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (65.0ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("schema_migrations")[0m
  [1m[35mSQL (77.0ms)[0m  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  SELECT version FROM "schema_migrations"
  [1m[36mSQL (73.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110609140659')[0m
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mSQL (1.0ms)[0m  select sqlite_version(*)
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (99.0ms)[0m  CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "image_url" varchar(255), "price" decimal(8,2), "created_at" datetime, "updated_at" datetime) 
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (96.0ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
  [1m[36mSQL (1.0ms)[0m  [1mPRAGMA index_list("schema_migrations")[0m
  [1m[35mSQL (199.0ms)[0m  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (1.0ms)[0m  SELECT version FROM "schema_migrations"
  [1m[36mSQL (129.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110609140659')[0m
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mSQL (0.0ms)[0m  select sqlite_version(*)
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (128.0ms)[0m  CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "image_url" varchar(255), "price" decimal(8,2), "created_at" datetime, "updated_at" datetime) 
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (96.0ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("schema_migrations")[0m
  [1m[35mSQL (147.0ms)[0m  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  SELECT version FROM "schema_migrations"
  [1m[36mSQL (84.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110609140659')[0m


Started GET "/" for 127.0.0.1 at 2011-06-13 14:42:53 +0200
  Processing by StoreController#index as HTML
Rendered store/index.html.erb within layouts/application (5.0ms)
Completed 200 OK in 43ms (Views: 43.0ms | ActiveRecord: 0.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-13 15:03:38 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (20.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
Rendered store/index.html.erb within layouts/application (283.0ms)
Completed 200 OK in 661ms (Views: 331.0ms | ActiveRecord: 20.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-13 16:26:08 +0200
  Processing by StoreController#index as HTML
  [1m[35mProduct Load (64.0ms)[0m  SELECT "products".* FROM "products" ORDER BY title
Rendered store/index.html.erb within layouts/application (308.0ms)
Completed 200 OK in 815ms (Views: 456.0ms | ActiveRecord: 64.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-13 16:28:33 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (11.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
Rendered store/index.html.erb within layouts/application (46.0ms)
Completed 200 OK in 109ms (Views: 79.0ms | ActiveRecord: 11.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-13 16:44:46 +0200
  Processing by StoreController#index as HTML
  [1m[35mProduct Load (10.0ms)[0m  SELECT "products".* FROM "products" ORDER BY title
Rendered store/index.html.erb within layouts/application (532.0ms)
Completed 200 OK in 623ms (Views: 565.0ms | ActiveRecord: 10.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-13 16:48:49 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
Rendered store/index.html.erb within layouts/application (74.0ms)
Completed 200 OK in 210ms (Views: 165.0ms | ActiveRecord: 1.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-13 16:49:32 +0200
  Processing by StoreController#index as HTML
  [1m[35mProduct Load (2.0ms)[0m  SELECT "products".* FROM "products" ORDER BY title
Rendered store/index.html.erb within layouts/application (19.0ms)
Completed 200 OK in 61ms (Views: 41.0ms | ActiveRecord: 2.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-13 16:58:14 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (20.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
Rendered store/index.html.erb within layouts/application (29.0ms)
Completed 200 OK in 90ms (Views: 50.0ms | ActiveRecord: 20.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-13 17:05:56 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
Rendered store/index.html.erb within layouts/application (305.0ms)
Completed 200 OK in 606ms (Views: 326.0ms | ActiveRecord: 1.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-13 17:06:13 +0200
  Processing by StoreController#index as HTML
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" ORDER BY title
Rendered store/index.html.erb within layouts/application (20.0ms)
Completed 200 OK in 76ms (Views: 43.0ms | ActiveRecord: 0.0ms)


Started GET "/products" for 127.0.0.1 at 2011-06-13 17:07:31 +0200
  Processing by ProductsController#index as HTML
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
Rendered products/index.html.erb within layouts/application (179.0ms)
Completed 200 OK in 248ms (Views: 228.0ms | ActiveRecord: 1.0ms)


Started GET "/products/new" for 127.0.0.1 at 2011-06-13 17:07:37 +0200
  Processing by ProductsController#new as HTML
Rendered products/_form.html.erb (13.0ms)
Rendered products/new.html.erb within layouts/application (34.0ms)
Completed 200 OK in 80ms (Views: 57.0ms | ActiveRecord: 0.0ms)


Started POST "/products" for 127.0.0.1 at 2011-06-13 17:07:43 +0200
  Processing by ProductsController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product"=>{"title"=>"", "description"=>"", "image_url"=>"", "price"=>""}, "commit"=>"Create Product"}
  [1m[35mSQL (1.0ms)[0m  SELECT 1 FROM "products" WHERE ("products"."title" = '') LIMIT 1
Rendered products/_form.html.erb (66.0ms)
Rendered products/new.html.erb within layouts/application (76.0ms)
Completed 200 OK in 141ms (Views: 99.0ms | ActiveRecord: 1.0ms)
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mSQL (1.0ms)[0m  select sqlite_version(*)
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (93.0ms)[0m  CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "image_url" varchar(255), "price" decimal(8,2), "created_at" datetime, "updated_at" datetime) 
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (57.0ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("schema_migrations")[0m
  [1m[35mSQL (57.0ms)[0m  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  SELECT version FROM "schema_migrations"
  [1m[36mSQL (56.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110609140659')[0m
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (1.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mSQL (1.0ms)[0m  select sqlite_version(*)
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (92.0ms)[0m  CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "image_url" varchar(255), "price" decimal(8,2), "created_at" datetime, "updated_at" datetime) 
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (91.0ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("schema_migrations")[0m
  [1m[35mSQL (92.0ms)[0m  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  SELECT version FROM "schema_migrations"
  [1m[36mSQL (73.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110609140659')[0m
  [1m[36mSQL (14.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (1.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
Migrating to CreateProducts (20110609140659)
Migrating to CreateCarts (20110613194406)
  [1m[35mSQL (0.0ms)[0m  select sqlite_version(*)
  [1m[36mSQL (11.0ms)[0m  [1mCREATE TABLE "carts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
  [1m[35mSQL (0.0ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20110613194406')
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations"
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  PRAGMA index_list("carts")
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("products")[0m
  [1m[36mSQL (13.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (1.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
Migrating to CreateProducts (20110609140659)
Migrating to CreateCarts (20110613194406)
Migrating to CreateLineItems (20110614073328)
  [1m[35mSQL (0.0ms)[0m  select sqlite_version(*)
  [1m[36mSQL (1.0ms)[0m  [1mCREATE TABLE "line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_id" integer, "cart_id" integer, "created_at" datetime, "updated_at" datetime) [0m
  [1m[35mSQL (0.0ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20110614073328')
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations"
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  PRAGMA index_list("carts")
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("line_items")[0m
  [1m[35mSQL (0.0ms)[0m  PRAGMA index_list("products")


Started GET "/" for 127.0.0.1 at 2011-06-14 12:31:36 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (184.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
Rendered store/index.html.erb within layouts/application (1056.0ms)
Completed 200 OK in 2389ms (Views: 1311.0ms | ActiveRecord: 184.0ms)
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mSQL (13.0ms)[0m  select sqlite_version(*)
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (100.0ms)[0m  CREATE TABLE "carts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (50.0ms)[0m  CREATE TABLE "line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_id" integer, "cart_id" integer, "created_at" datetime, "updated_at" datetime) 
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (65.0ms)[0m  CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "image_url" varchar(255), "price" decimal(8,2), "created_at" datetime, "updated_at" datetime) 
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (66.0ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("schema_migrations")[0m
  [1m[35mSQL (72.0ms)[0m  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  SELECT version FROM "schema_migrations"
  [1m[36mSQL (73.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110614073328')[0m
  [1m[35mSQL (67.0ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20110609140659')
  [1m[36mSQL (65.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110613194406')[0m


Started GET "/" for 127.0.0.1 at 2011-06-14 13:28:32 +0200
  Processing by StoreController#index as HTML
  [1m[35mProduct Load (14.0ms)[0m  SELECT "products".* FROM "products" ORDER BY title
Rendered store/index.html.erb within layouts/application (66.0ms)
Completed 200 OK in 166ms (Views: 88.0ms | ActiveRecord: 14.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-14 13:28:36 +0200
  Processing by LineItemsController#create as HTML
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mAREL (2.0ms)[0m  INSERT INTO "carts" ("created_at", "updated_at") VALUES ('2011-06-14 11:28:36.279000', '2011-06-14 11:28:36.279000')
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
  [1m[35mAREL (1.0ms)[0m  INSERT INTO "line_items" ("product_id", "cart_id", "created_at", "updated_at") VALUES (2, 1, '2011-06-14 11:28:36.657000', '2011-06-14 11:28:36.657000')
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 1 LIMIT 1[0m
Redirected to http://localhost:3000/carts/1
Completed 302 Found in 519ms


Started GET "/carts/1" for 127.0.0.1 at 2011-06-14 13:28:36 +0200
  Processing by CartsController#show as HTML
  Parameters: {"id"=>"1"}
  [1m[35mCart Load (0.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 1 LIMIT 1
Rendered carts/show.html.erb within layouts/application (11.0ms)
Completed 200 OK in 55ms (Views: 33.0ms | ActiveRecord: 0.0ms)


Started GET "/carts/1" for 127.0.0.1 at 2011-06-14 13:34:03 +0200
  Processing by CartsController#show as HTML
  Parameters: {"id"=>"1"}
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 1 LIMIT 1[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 1)
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
Rendered carts/show.html.erb within layouts/application (123.0ms)
Completed 200 OK in 169ms (Views: 144.0ms | ActiveRecord: 3.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-14 13:34:33 +0200
  Processing by StoreController#index as HTML
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" ORDER BY title
Rendered store/index.html.erb within layouts/application (23.0ms)
Completed 200 OK in 70ms (Views: 46.0ms | ActiveRecord: 1.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-14 13:34:36 +0200
  Processing by LineItemsController#create as HTML
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 1 LIMIT 1[0m
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mAREL (14.0ms)[0m  [1mINSERT INTO "line_items" ("product_id", "cart_id", "created_at", "updated_at") VALUES (2, 1, '2011-06-14 11:34:36.706000', '2011-06-14 11:34:36.706000')[0m
  [1m[35mCart Load (0.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 1 LIMIT 1
Redirected to http://localhost:3000/carts/1
Completed 302 Found in 272ms


Started GET "/carts/1" for 127.0.0.1 at 2011-06-14 13:34:36 +0200
  Processing by CartsController#show as HTML
  Parameters: {"id"=>"1"}
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 1 LIMIT 1[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 1)
  [1m[36mProduct Load (0.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
  [1m[35mCACHE (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
Rendered carts/show.html.erb within layouts/application (147.0ms)
Completed 200 OK in 193ms (Views: 170.0ms | ActiveRecord: 2.0ms)
  [1m[36mSQL (14.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (1.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
Migrating to CreateProducts (20110609140659)
Migrating to CreateCarts (20110613194406)
Migrating to CreateLineItems (20110614073328)
Migrating to AddQuantityToLineItems (20110614164949)
  [1m[35mSQL (1.0ms)[0m  select sqlite_version(*)
  [1m[36mSQL (2.0ms)[0m  [1mALTER TABLE "line_items" ADD "quantity" integer DEFAULT 1[0m
  [1m[35mSQL (1.0ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20110614164949')
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (1.0ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations"
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  PRAGMA index_list("carts")
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("line_items")[0m
  [1m[35mSQL (0.0ms)[0m  PRAGMA index_list("products")
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (1.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
Migrating to CreateProducts (20110609140659)
Migrating to CreateCarts (20110613194406)
Migrating to CreateLineItems (20110614073328)
Migrating to AddQuantityToLineItems (20110614164949)
Migrating to CombineItemsInCart (20110614171625)
  [1m[35mSQL (0.0ms)[0m  select sqlite_version(*)
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts"[0m
  [1m[35mSQL (1.0ms)[0m  SELECT SUM("line_items"."quantity") AS sum_quantity, product_id AS product_id FROM "line_items" WHERE ("line_items".cart_id = 1) GROUP BY product_id
  [1m[36mAREL (1.0ms)[0m  [1mDELETE FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 1)[0m
  [1m[35mAREL (1.0ms)[0m  INSERT INTO "line_items" ("product_id", "cart_id", "created_at", "updated_at", "quantity") VALUES (2, 1, '2011-06-14 18:40:35.085000', '2011-06-14 18:40:35.085000', 2)
  [1m[36mSQL (0.0ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20110614171625')[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (1.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mSQL (1.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("carts")[0m
  [1m[35mSQL (0.0ms)[0m  PRAGMA index_list("line_items")
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("products")[0m


Started POST "/line_items?product_id=3" for 127.0.0.1 at 2011-06-14 20:44:31 +0200
  Processing by LineItemsController#create as HTML
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"3"}
  [1m[36mCart Load (25.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 1 LIMIT 1[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 3 ORDER BY title LIMIT 1
  [1m[36mLineItem Load (10.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 3 AND ("line_items".cart_id = 1) LIMIT 1[0m
  [1m[35mAREL (2.0ms)[0m  INSERT INTO "line_items" ("product_id", "cart_id", "created_at", "updated_at", "quantity") VALUES (3, 1, '2011-06-14 18:44:35.748000', '2011-06-14 18:44:35.748000', 1)
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 1 LIMIT 1[0m
Redirected to http://localhost:3000/carts/1
Completed 302 Found in 2167ms


Started GET "/carts/1" for 127.0.0.1 at 2011-06-14 20:44:36 +0200
  Processing by CartsController#show as HTML
  Parameters: {"id"=>"1"}
  [1m[35mCart Load (0.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 1 LIMIT 1
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 1)[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 3 ORDER BY title LIMIT 1[0m
Rendered carts/show.html.erb within layouts/application (218.0ms)
Completed 200 OK in 411ms (Views: 379.0ms | ActiveRecord: 41.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-14 20:44:51 +0200
  Processing by LineItemsController#create as HTML
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[35mCart Load (1.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 1 LIMIT 1
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 1) LIMIT 1
  [1m[36mAREL (2.0ms)[0m  [1mUPDATE "line_items" SET "quantity" = 3, "updated_at" = '2011-06-14 18:44:51.273000' WHERE "line_items"."id" = 3[0m
  [1m[35mCart Load (1.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 1 LIMIT 1
Redirected to http://localhost:3000/carts/1
Completed 302 Found in 222ms


Started GET "/carts/1" for 127.0.0.1 at 2011-06-14 20:44:51 +0200
  Processing by CartsController#show as HTML
  Parameters: {"id"=>"1"}
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 1 LIMIT 1[0m
  [1m[35mLineItem Load (0.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 1)
  [1m[36mProduct Load (0.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 3 ORDER BY title LIMIT 1
Rendered carts/show.html.erb within layouts/application (189.0ms)
Completed 200 OK in 238ms (Views: 215.0ms | ActiveRecord: 0.0ms)
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (1.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
Migrating to CombineItemsInCart (20110614171625)
  [1m[35mSQL (1.0ms)[0m  select sqlite_version(*)
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE (quantity > 1)[0m
  [1m[35mAREL (1.0ms)[0m  INSERT INTO "line_items" ("product_id", "cart_id", "created_at", "updated_at", "quantity") VALUES (2, 1, '2011-06-14 18:48:30.499000', '2011-06-14 18:48:30.499000', 1)
  [1m[36mAREL (0.0ms)[0m  [1mINSERT INTO "line_items" ("product_id", "cart_id", "created_at", "updated_at", "quantity") VALUES (2, 1, '2011-06-14 18:48:30.573000', '2011-06-14 18:48:30.573000', 1)[0m
  [1m[35mAREL (0.0ms)[0m  INSERT INTO "line_items" ("product_id", "cart_id", "created_at", "updated_at", "quantity") VALUES (2, 1, '2011-06-14 18:48:30.575000', '2011-06-14 18:48:30.575000', 1)
  [1m[36mAREL (0.0ms)[0m  [1mDELETE FROM "line_items" WHERE "line_items"."id" = 3[0m
  [1m[35mAREL (1.0ms)[0m  DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20110614171625'
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations"
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  PRAGMA index_list("carts")
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("line_items")[0m
  [1m[35mSQL (0.0ms)[0m  PRAGMA index_list("products")


Started GET "/carts/1" for 127.0.0.1 at 2011-06-14 20:49:07 +0200
  Processing by CartsController#show as HTML
  Parameters: {"id"=>"1"}
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 1 LIMIT 1[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 1)
  [1m[36mProduct Load (0.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 3 ORDER BY title LIMIT 1[0m
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mCACHE (0.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
  [1m[35mCACHE (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
Rendered carts/show.html.erb within layouts/application (125.0ms)
Completed 200 OK in 199ms (Views: 154.0ms | ActiveRecord: 2.0ms)
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (1.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
Migrating to CreateProducts (20110609140659)
Migrating to CreateCarts (20110613194406)
Migrating to CreateLineItems (20110614073328)
Migrating to AddQuantityToLineItems (20110614164949)
Migrating to CombineItemsInCart (20110614171625)
  [1m[35mSQL (0.0ms)[0m  select sqlite_version(*)
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts"[0m
  [1m[35mSQL (0.0ms)[0m  SELECT SUM("line_items"."quantity") AS sum_quantity, product_id AS product_id FROM "line_items" WHERE ("line_items".cart_id = 1) GROUP BY product_id
  [1m[36mAREL (1.0ms)[0m  [1mDELETE FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 1)[0m
  [1m[35mAREL (0.0ms)[0m  INSERT INTO "line_items" ("product_id", "cart_id", "created_at", "updated_at", "quantity") VALUES (2, 1, '2011-06-14 18:50:05.099000', '2011-06-14 18:50:05.099000', 3)
  [1m[36mSQL (0.0ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20110614171625')[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("carts")[0m
  [1m[35mSQL (0.0ms)[0m  PRAGMA index_list("line_items")
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("products")[0m


Started GET "/carts/blabla" for 127.0.0.1 at 2011-06-14 21:09:45 +0200
  Processing by CartsController#show as HTML
  Parameters: {"id"=>"blabla"}
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 0 LIMIT 1[0m
Completed   in 24ms

ActiveRecord::RecordNotFound (Couldn't find Cart with ID=blabla):
  app/controllers/carts_controller.rb:16:in `show'

Rendered C:/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.0ms)
Rendered C:/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (73.0ms)
Rendered C:/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (137.0ms)


Started GET "/carts/blabla" for 127.0.0.1 at 2011-06-14 21:39:58 +0200
  Processing by CartsController#show as HTML
  Parameters: {"id"=>"blabla"}
  [1m[35mCart Load (1.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 0 LIMIT 1
Pokus o přístup k neplatnému košíku blabla
Redirected to http://localhost:3000/
Completed 302 Found in 27ms


Started GET "/" for 127.0.0.1 at 2011-06-14 21:39:58 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (15.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
Rendered store/index.html.erb within layouts/application (215.0ms)
Completed 200 OK in 291ms (Views: 239.0ms | ActiveRecord: 16.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-15 09:42:41 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (23.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
Rendered store/index.html.erb within layouts/application (445.0ms)
Completed 200 OK in 1118ms (Views: 485.0ms | ActiveRecord: 23.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-15 09:42:57 +0200
  Processing by LineItemsController#create as HTML
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[35mSQL (1.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 1 LIMIT 1[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 1) LIMIT 1[0m
  [1m[35mAREL (2.0ms)[0m  UPDATE "line_items" SET "quantity" = 4, "updated_at" = '2011-06-15 07:42:57.983155' WHERE "line_items"."id" = 8
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 1 LIMIT 1[0m
Redirected to http://localhost:3000/carts/1
Completed 302 Found in 474ms


Started GET "/carts/1" for 127.0.0.1 at 2011-06-15 09:42:58 +0200
  Processing by CartsController#show as HTML
  Parameters: {"id"=>"1"}
  [1m[35mCart Load (1.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 1 LIMIT 1
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 1)[0m
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 3 ORDER BY title LIMIT 1
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
Rendered carts/show.html.erb within layouts/application (148.0ms)
Completed 200 OK in 198ms (Views: 173.0ms | ActiveRecord: 2.0ms)


Started POST "/carts/1" for 127.0.0.1 at 2011-06-15 09:43:05 +0200
  Processing by CartsController#destroy as HTML
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "id"=>"1"}
  [1m[35mCart Load (0.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 1 LIMIT 1
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 1)[0m
  [1m[35mAREL (3.0ms)[0m  DELETE FROM "line_items" WHERE "line_items"."id" = 4
  [1m[36mAREL (0.0ms)[0m  [1mDELETE FROM "line_items" WHERE "line_items"."id" = 8[0m
  [1m[35mAREL (0.0ms)[0m  DELETE FROM "carts" WHERE "carts"."id" = 1
Redirected to http://localhost:3000/
Completed 302 Found in 152ms


Started GET "/" for 127.0.0.1 at 2011-06-15 09:43:05 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
Rendered store/index.html.erb within layouts/application (24.0ms)
Completed 200 OK in 77ms (Views: 51.0ms | ActiveRecord: 1.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-15 10:25:34 +0200
  Processing by LineItemsController#create as HTML
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[35mAREL (1.0ms)[0m  INSERT INTO "carts" ("created_at", "updated_at") VALUES ('2011-06-15 08:25:35.103155', '2011-06-15 08:25:35.103155')
  [1m[36mProduct Load (0.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 2) LIMIT 1
  [1m[36mAREL (2.0ms)[0m  [1mINSERT INTO "line_items" ("product_id", "cart_id", "created_at", "updated_at", "quantity") VALUES (2, 2, '2011-06-15 08:25:35.322155', '2011-06-15 08:25:35.322155', 1)[0m
  [1m[35mCart Load (0.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 2 LIMIT 1
Redirected to http://localhost:3000/carts/2
Completed 302 Found in 328ms


Started GET "/carts/2" for 127.0.0.1 at 2011-06-15 10:25:35 +0200
  Processing by CartsController#show as HTML
  Parameters: {"id"=>"2"}
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 2 LIMIT 1[0m
  [1m[35mLineItem Load (0.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 2)
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
Rendered carts/show.html.erb within layouts/application (128.0ms)
Completed 200 OK in 182ms (Views: 156.0ms | ActiveRecord: 6.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-15 10:25:45 +0200
  Processing by LineItemsController#create as HTML
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[35mCart Load (1.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 2 LIMIT 1
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
  [1m[35mLineItem Load (0.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 2) LIMIT 1
  [1m[36mAREL (2.0ms)[0m  [1mUPDATE "line_items" SET "quantity" = 2, "updated_at" = '2011-06-15 08:25:45.263155' WHERE "line_items"."id" = 9[0m
  [1m[35mCart Load (0.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 2 LIMIT 1
Redirected to http://localhost:3000/carts/2
Completed 302 Found in 189ms


Started GET "/carts/2" for 127.0.0.1 at 2011-06-15 10:25:45 +0200
  Processing by CartsController#show as HTML
  Parameters: {"id"=>"2"}
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 2 LIMIT 1[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 2)
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
Rendered carts/show.html.erb within layouts/application (158.0ms)
Completed 200 OK in 210ms (Views: 182.0ms | ActiveRecord: 3.0ms)


Started POST "/line_items?product_id=3" for 127.0.0.1 at 2011-06-15 10:25:49 +0200
  Processing by LineItemsController#create as HTML
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"3"}
  [1m[35mCart Load (0.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 2 LIMIT 1
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 3 ORDER BY title LIMIT 1[0m
  [1m[35mLineItem Load (0.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 3 AND ("line_items".cart_id = 2) LIMIT 1
  [1m[36mAREL (2.0ms)[0m  [1mINSERT INTO "line_items" ("product_id", "cart_id", "created_at", "updated_at", "quantity") VALUES (3, 2, '2011-06-15 08:25:49.475155', '2011-06-15 08:25:49.475155', 1)[0m
  [1m[35mCart Load (1.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 2 LIMIT 1
Redirected to http://localhost:3000/carts/2
Completed 302 Found in 244ms


Started GET "/carts/2" for 127.0.0.1 at 2011-06-15 10:25:49 +0200
  Processing by CartsController#show as HTML
  Parameters: {"id"=>"2"}
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 2 LIMIT 1[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 2)
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 3 ORDER BY title LIMIT 1
Rendered carts/show.html.erb within layouts/application (102.0ms)
Completed 200 OK in 150ms (Views: 122.0ms | ActiveRecord: 8.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-15 17:25:02 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (139.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
  [1m[35mCart Load (0.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 2 LIMIT 1
  [1m[36mLineItem Load (8.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 2)[0m
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 3 ORDER BY title LIMIT 1[0m
Rendered line_items/_line_item.html.erb (66.0ms)
Rendered carts/_cart.html.erb (203.0ms)
Rendered store/index.html.erb within layouts/application (602.0ms)
Completed 200 OK in 2090ms (Views: 922.0ms | ActiveRecord: 148.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-15 17:27:56 +0200
  Processing by StoreController#index as HTML
  [1m[35mProduct Load (27.0ms)[0m  SELECT "products".* FROM "products" ORDER BY title
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 2 LIMIT 1[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 2)
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 3 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (60.0ms)
Rendered carts/_cart.html.erb (109.0ms)
Rendered store/index.html.erb within layouts/application (160.0ms)
Completed 200 OK in 307ms (Views: 182.0ms | ActiveRecord: 30.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-15 17:28:47 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (11.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
  [1m[35mCart Load (1.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 2 LIMIT 1
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 2)[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 3 ORDER BY title LIMIT 1[0m
Rendered line_items/_line_item.html.erb (33.0ms)
Rendered carts/_cart.html.erb (76.0ms)
Rendered store/index.html.erb within layouts/application (117.0ms)
Completed 200 OK in 245ms (Views: 140.0ms | ActiveRecord: 14.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-15 17:30:13 +0200
  Processing by StoreController#index as HTML
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" ORDER BY title
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 2 LIMIT 1[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 2)
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 3 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (33.0ms)
Rendered carts/_cart.html.erb (75.0ms)
Rendered store/index.html.erb within layouts/application (109.0ms)
Completed 200 OK in 207ms (Views: 129.0ms | ActiveRecord: 4.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-15 17:30:29 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
  [1m[35mCart Load (1.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 2 LIMIT 1
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 2)[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 3 ORDER BY title LIMIT 1[0m
Rendered line_items/_line_item.html.erb (47.0ms)
Rendered carts/_cart.html.erb (89.0ms)
Rendered store/index.html.erb within layouts/application (192.0ms)
Completed 200 OK in 263ms (Views: 212.0ms | ActiveRecord: 5.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-15 22:06:32 +0200
  Processing by StoreController#index as HTML
  [1m[35mProduct Load (136.0ms)[0m  SELECT "products".* FROM "products" ORDER BY title
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 2 LIMIT 1[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 2)
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 3 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (247.0ms)
Rendered carts/_cart.html.erb (802.0ms)
Rendered store/index.html.erb within layouts/application (1833.0ms)
Completed 200 OK in 3747ms (Views: 2020.0ms | ActiveRecord: 138.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-15 22:06:50 +0200
  Processing by LineItemsController#create as JS
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 2 LIMIT 1[0m
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 2) LIMIT 1[0m
  [1m[35mAREL (1.0ms)[0m  UPDATE "line_items" SET "quantity" = 3, "updated_at" = '2011-06-15 20:06:50.613000' WHERE "line_items"."id" = 9
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 2)[0m
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mProduct Load (0.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 3 ORDER BY title LIMIT 1[0m
Rendered line_items/_line_item.html.erb (27.0ms)
Rendered carts/_cart.html.erb (37.0ms)
Rendered line_items/create.js.rjs (77.0ms)
Completed 200 OK in 1158ms (Views: 466.0ms | ActiveRecord: 3.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-16 12:08:17 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (25.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 2 LIMIT 1[0m
  [1m[35mLineItem Load (0.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 2)
  [1m[36mProduct Load (0.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 3 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (22.0ms)
Rendered carts/_cart.html.erb (194.0ms)
Rendered store/index.html.erb within layouts/application (871.0ms)
Completed 200 OK in 1544ms (Views: 924.0ms | ActiveRecord: 26.0ms)


Started POST "/carts/2" for 127.0.0.1 at 2011-06-16 12:10:41 +0200
  Processing by CartsController#destroy as HTML
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "id"=>"2"}
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 2 LIMIT 1[0m
  [1m[35mLineItem Load (3.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 2)
  [1m[36mAREL (2.0ms)[0m  [1mDELETE FROM "line_items" WHERE "line_items"."id" = 9[0m
  [1m[35mAREL (0.0ms)[0m  DELETE FROM "line_items" WHERE "line_items"."id" = 10
  [1m[36mAREL (0.0ms)[0m  [1mDELETE FROM "carts" WHERE "carts"."id" = 2[0m
Redirected to http://localhost:3000/
Completed 302 Found in 139ms


Started GET "/" for 127.0.0.1 at 2011-06-16 12:10:41 +0200
  Processing by StoreController#index as HTML
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" ORDER BY title
  [1m[36mAREL (1.0ms)[0m  [1mINSERT INTO "carts" ("created_at", "updated_at") VALUES ('2011-06-16 10:10:41.798200', '2011-06-16 10:10:41.798200')[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 3)
Rendered collection (0.0ms)
Rendered carts/_cart.html.erb (33.0ms)
Rendered store/index.html.erb within layouts/application (60.0ms)
Completed 200 OK in 275ms (Views: 81.0ms | ActiveRecord: 9.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-16 12:10:52 +0200
  Processing by LineItemsController#create as JS
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 3 LIMIT 1[0m
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 3) LIMIT 1[0m
  [1m[35mAREL (2.0ms)[0m  INSERT INTO "line_items" ("product_id", "cart_id", "created_at", "updated_at", "quantity") VALUES (2, 3, '2011-06-16 10:10:52.764200', '2011-06-16 10:10:52.764200', 1)
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 3)[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (15.0ms)
Rendered carts/_cart.html.erb (26.0ms)
Rendered line_items/create.js.rjs (35.0ms)
Completed 200 OK in 480ms (Views: 175.0ms | ActiveRecord: 6.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-16 12:11:32 +0200
  Processing by LineItemsController#create as JS
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 3 LIMIT 1[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 3) LIMIT 1[0m
  [1m[35mAREL (12.0ms)[0m  UPDATE "line_items" SET "quantity" = 2, "updated_at" = '2011-06-16 10:11:32.559200' WHERE "line_items"."id" = 11
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 3)[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (14.0ms)
Rendered carts/_cart.html.erb (51.0ms)
Rendered line_items/create.js.rjs (58.0ms)
Completed 200 OK in 287ms (Views: 101.0ms | ActiveRecord: 15.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-16 12:11:41 +0200
  Processing by LineItemsController#create as JS
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 3 LIMIT 1[0m
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 3) LIMIT 1[0m
  [1m[35mAREL (1.0ms)[0m  UPDATE "line_items" SET "quantity" = 3, "updated_at" = '2011-06-16 10:11:41.438200' WHERE "line_items"."id" = 11
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 3)[0m
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (14.0ms)
Rendered carts/_cart.html.erb (25.0ms)
Rendered line_items/create.js.rjs (32.0ms)
Completed 200 OK in 324ms (Views: 77.0ms | ActiveRecord: 3.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-16 12:11:44 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (2.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
  [1m[35mCart Load (0.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 3 LIMIT 1
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 3)[0m
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (28.0ms)
Rendered carts/_cart.html.erb (123.0ms)
Rendered store/index.html.erb within layouts/application (157.0ms)
Completed 200 OK in 230ms (Views: 178.0ms | ActiveRecord: 3.0ms)


Started POST "/carts/3" for 127.0.0.1 at 2011-06-16 12:12:31 +0200
  Processing by CartsController#destroy as HTML
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "id"=>"3"}
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 3 LIMIT 1[0m
  [1m[35mLineItem Load (0.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 3)
  [1m[36mAREL (1.0ms)[0m  [1mDELETE FROM "line_items" WHERE "line_items"."id" = 11[0m
  [1m[35mAREL (0.0ms)[0m  DELETE FROM "carts" WHERE "carts"."id" = 3
Redirected to http://localhost:3000/
Completed 302 Found in 137ms


Started GET "/" for 127.0.0.1 at 2011-06-16 12:12:31 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
  [1m[35mAREL (1.0ms)[0m  INSERT INTO "carts" ("created_at", "updated_at") VALUES ('2011-06-16 10:12:31.967200', '2011-06-16 10:12:31.967200')
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 4)[0m
Rendered collection (0.0ms)
Rendered carts/_cart.html.erb (32.0ms)
Rendered store/index.html.erb within layouts/application (60.0ms)
Completed 200 OK in 199ms (Views: 82.0ms | ActiveRecord: 3.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-16 12:12:34 +0200
  Processing by StoreController#index as HTML
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" ORDER BY title
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 4 LIMIT 1[0m
  [1m[35mLineItem Load (0.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 4)
Rendered collection (0.0ms)
Rendered carts/_cart.html.erb (154.0ms)
Rendered store/index.html.erb within layouts/application (187.0ms)
Completed 200 OK in 259ms (Views: 210.0ms | ActiveRecord: 1.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-16 12:12:37 +0200
  Processing by LineItemsController#create as JS
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 4 LIMIT 1[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 4) LIMIT 1[0m
  [1m[35mAREL (1.0ms)[0m  INSERT INTO "line_items" ("product_id", "cart_id", "created_at", "updated_at", "quantity") VALUES (2, 4, '2011-06-16 10:12:37.777200', '2011-06-16 10:12:37.777200', 1)
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 4)[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (14.0ms)
Rendered carts/_cart.html.erb (25.0ms)
Rendered line_items/create.js.rjs (33.0ms)
Completed 200 OK in 359ms (Views: 78.0ms | ActiveRecord: 5.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-16 12:12:41 +0200
  Processing by LineItemsController#create as JS
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 4 LIMIT 1[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 4) LIMIT 1[0m
  [1m[35mAREL (1.0ms)[0m  UPDATE "line_items" SET "quantity" = 2, "updated_at" = '2011-06-16 10:12:41.997200' WHERE "line_items"."id" = 12
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 4)[0m
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (14.0ms)
Rendered carts/_cart.html.erb (24.0ms)
Rendered line_items/create.js.rjs (32.0ms)
Completed 200 OK in 267ms (Views: 77.0ms | ActiveRecord: 4.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-16 13:13:44 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
  [1m[35mCart Load (0.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 4 LIMIT 1
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 4)[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (30.0ms)
Rendered carts/_cart.html.erb (71.0ms)
Rendered store/index.html.erb within layouts/application (155.0ms)
Completed 200 OK in 249ms (Views: 199.0ms | ActiveRecord: 3.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-16 13:13:49 +0200
  Processing by LineItemsController#create as JS
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 4 LIMIT 1[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 4) LIMIT 1[0m
  [1m[35mAREL (3.0ms)[0m  UPDATE "line_items" SET "quantity" = 3, "updated_at" = '2011-06-16 11:13:49.417200' WHERE "line_items"."id" = 12
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 4)[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (14.0ms)
Rendered carts/_cart.html.erb (25.0ms)
Rendered line_items/create.js.rjs (32.0ms)
Completed 200 OK in 334ms (Views: 79.0ms | ActiveRecord: 5.0ms)


Started POST "/carts/4" for 127.0.0.1 at 2011-06-16 13:17:26 +0200
  Processing by CartsController#destroy as HTML
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "id"=>"4"}
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 4 LIMIT 1[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 4)
  [1m[36mAREL (1.0ms)[0m  [1mDELETE FROM "line_items" WHERE "line_items"."id" = 12[0m
  [1m[35mAREL (1.0ms)[0m  DELETE FROM "carts" WHERE "carts"."id" = 4
Redirected to http://localhost:3000/
Completed 302 Found in 149ms


Started GET "/" for 127.0.0.1 at 2011-06-16 13:17:26 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
  [1m[35mAREL (2.0ms)[0m  INSERT INTO "carts" ("created_at", "updated_at") VALUES ('2011-06-16 11:17:26.478200', '2011-06-16 11:17:26.478200')
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 5)[0m
Rendered collection (0.0ms)
Rendered carts/_cart.html.erb (35.0ms)
Rendered store/index.html.erb within layouts/application (66.0ms)
Completed 200 OK in 225ms (Views: 88.0ms | ActiveRecord: 6.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-16 13:17:29 +0200
  Processing by StoreController#index as HTML
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" ORDER BY title
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 5 LIMIT 1[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 5)
Rendered collection (0.0ms)
Rendered carts/_cart.html.erb (37.0ms)
Rendered store/index.html.erb within layouts/application (70.0ms)
Completed 200 OK in 143ms (Views: 94.0ms | ActiveRecord: 3.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-16 13:17:32 +0200
  Processing by LineItemsController#create as JS
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 5 LIMIT 1[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 5) LIMIT 1[0m
  [1m[35mAREL (1.0ms)[0m  INSERT INTO "line_items" ("product_id", "cart_id", "created_at", "updated_at", "quantity") VALUES (2, 5, '2011-06-16 11:17:32.778200', '2011-06-16 11:17:32.778200', 1)
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 5)[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (14.0ms)
Rendered carts/_cart.html.erb (25.0ms)
Rendered line_items/create.js.rjs (32.0ms)
Completed 200 OK in 310ms (Views: 73.0ms | ActiveRecord: 5.0ms)


Started POST "/carts/5" for 127.0.0.1 at 2011-06-16 13:18:04 +0200
  Processing by CartsController#destroy as HTML
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "id"=>"5"}
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 5 LIMIT 1[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 5)
  [1m[36mAREL (1.0ms)[0m  [1mDELETE FROM "line_items" WHERE "line_items"."id" = 13[0m
  [1m[35mAREL (0.0ms)[0m  DELETE FROM "carts" WHERE "carts"."id" = 5
Redirected to http://localhost:3000/
Completed 302 Found in 146ms


Started GET "/" for 127.0.0.1 at 2011-06-16 13:18:04 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
  [1m[35mAREL (1.0ms)[0m  INSERT INTO "carts" ("created_at", "updated_at") VALUES ('2011-06-16 11:18:05.035200', '2011-06-16 11:18:05.035200')
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 6)[0m
Rendered collection (0.0ms)
Rendered carts/_cart.html.erb (33.0ms)
Rendered store/index.html.erb within layouts/application (61.0ms)
Completed 200 OK in 212ms (Views: 82.0ms | ActiveRecord: 6.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-16 13:18:07 +0200
  Processing by StoreController#index as HTML
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" ORDER BY title
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 6 LIMIT 1[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 6)
Rendered collection (0.0ms)
Rendered carts/_cart.html.erb (33.0ms)
Rendered store/index.html.erb within layouts/application (67.0ms)
Completed 200 OK in 138ms (Views: 88.0ms | ActiveRecord: 2.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-16 13:18:09 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
  [1m[35mCart Load (1.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 6 LIMIT 1
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 6)[0m
Rendered collection (0.0ms)
Rendered carts/_cart.html.erb (33.0ms)
Rendered store/index.html.erb within layouts/application (96.0ms)
Completed 200 OK in 172ms (Views: 120.0ms | ActiveRecord: 2.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-16 13:18:11 +0200
  Processing by LineItemsController#create as JS
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[35mCart Load (1.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 6 LIMIT 1
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
  [1m[35mLineItem Load (0.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 6) LIMIT 1
  [1m[36mAREL (1.0ms)[0m  [1mINSERT INTO "line_items" ("product_id", "cart_id", "created_at", "updated_at", "quantity") VALUES (2, 6, '2011-06-16 11:18:11.401200', '2011-06-16 11:18:11.401200', 1)[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 6)
  [1m[36mProduct Load (0.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
Rendered line_items/_line_item.html.erb (14.0ms)
Rendered carts/_cart.html.erb (26.0ms)
Rendered line_items/create.js.rjs (33.0ms)
Completed 200 OK in 288ms (Views: 76.0ms | ActiveRecord: 4.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-16 13:21:04 +0200
  Processing by LineItemsController#create as JS
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[35mCart Load (0.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 6 LIMIT 1
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
  [1m[35mLineItem Load (0.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 6) LIMIT 1
  [1m[36mAREL (2.0ms)[0m  [1mUPDATE "line_items" SET "quantity" = 2, "updated_at" = '2011-06-16 11:21:04.506200' WHERE "line_items"."id" = 14[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 6)
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
Rendered line_items/_line_item.html.erb (14.0ms)
Rendered carts/_cart.html.erb (24.0ms)
Rendered line_items/create.js.rjs (32.0ms)
Completed 200 OK in 271ms (Views: 76.0ms | ActiveRecord: 5.0ms)


Started POST "/carts/6" for 127.0.0.1 at 2011-06-16 13:21:51 +0200
  Processing by CartsController#destroy as HTML
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "id"=>"6"}
  [1m[35mCart Load (0.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 6 LIMIT 1
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 6)[0m
  [1m[35mAREL (2.0ms)[0m  DELETE FROM "line_items" WHERE "line_items"."id" = 14
  [1m[36mAREL (0.0ms)[0m  [1mDELETE FROM "carts" WHERE "carts"."id" = 6[0m
Redirected to http://localhost:3000/
Completed 302 Found in 162ms


Started GET "/" for 127.0.0.1 at 2011-06-16 13:21:52 +0200
  Processing by StoreController#index as HTML
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" ORDER BY title
  [1m[36mAREL (1.0ms)[0m  [1mINSERT INTO "carts" ("created_at", "updated_at") VALUES ('2011-06-16 11:21:52.396200', '2011-06-16 11:21:52.396200')[0m
  [1m[35mLineItem Load (0.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 7)
Rendered collection (0.0ms)
Rendered carts/_cart.html.erb (32.0ms)
Rendered store/index.html.erb within layouts/application (61.0ms)
Completed 200 OK in 246ms (Views: 83.0ms | ActiveRecord: 4.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-16 13:21:55 +0200
  Processing by LineItemsController#create as JS
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 7 LIMIT 1[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 7) LIMIT 1[0m
  [1m[35mAREL (2.0ms)[0m  INSERT INTO "line_items" ("product_id", "cart_id", "created_at", "updated_at", "quantity") VALUES (2, 7, '2011-06-16 11:21:56.030200', '2011-06-16 11:21:56.030200', 1)
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 7)[0m
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (13.0ms)
Rendered carts/_cart.html.erb (24.0ms)
Rendered line_items/create.js.rjs (32.0ms)
Completed 200 OK in 292ms (Views: 104.0ms | ActiveRecord: 6.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-16 13:21:58 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
  [1m[35mCart Load (0.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 7 LIMIT 1
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 7)[0m
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (33.0ms)
Rendered carts/_cart.html.erb (106.0ms)
Rendered store/index.html.erb within layouts/application (140.0ms)
Completed 200 OK in 213ms (Views: 164.0ms | ActiveRecord: 1.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-16 13:22:04 +0200
  Processing by LineItemsController#create as JS
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 7 LIMIT 1[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 7) LIMIT 1[0m
  [1m[35mAREL (1.0ms)[0m  UPDATE "line_items" SET "quantity" = 2, "updated_at" = '2011-06-16 11:22:04.278200' WHERE "line_items"."id" = 15
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 7)[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (15.0ms)
Rendered carts/_cart.html.erb (26.0ms)
Rendered line_items/create.js.rjs (33.0ms)
Completed 200 OK in 275ms (Views: 76.0ms | ActiveRecord: 5.0ms)


Started POST "/carts/7" for 127.0.0.1 at 2011-06-16 13:22:47 +0200
  Processing by CartsController#destroy as HTML
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "id"=>"7"}
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 7 LIMIT 1[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 7)
  [1m[36mAREL (2.0ms)[0m  [1mDELETE FROM "line_items" WHERE "line_items"."id" = 15[0m
  [1m[35mAREL (0.0ms)[0m  DELETE FROM "carts" WHERE "carts"."id" = 7
Redirected to http://localhost:3000/
Completed 302 Found in 196ms


Started GET "/" for 127.0.0.1 at 2011-06-16 13:22:47 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
  [1m[35mAREL (2.0ms)[0m  INSERT INTO "carts" ("created_at", "updated_at") VALUES ('2011-06-16 11:22:47.532200', '2011-06-16 11:22:47.532200')
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 8)[0m
Rendered collection (0.0ms)
Rendered carts/_cart.html.erb (66.0ms)
Rendered store/index.html.erb within layouts/application (95.0ms)
Completed 200 OK in 256ms (Views: 123.0ms | ActiveRecord: 7.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-16 13:22:50 +0200
  Processing by StoreController#index as HTML
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" ORDER BY title
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 8 LIMIT 1[0m
  [1m[35mLineItem Load (0.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 8)
Rendered collection (0.0ms)
Rendered carts/_cart.html.erb (32.0ms)
Rendered store/index.html.erb within layouts/application (93.0ms)
Completed 200 OK in 166ms (Views: 115.0ms | ActiveRecord: 1.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-16 13:22:51 +0200
  Processing by LineItemsController#create as JS
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 8 LIMIT 1[0m
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 8) LIMIT 1[0m
  [1m[35mAREL (2.0ms)[0m  INSERT INTO "line_items" ("product_id", "cart_id", "created_at", "updated_at", "quantity") VALUES (2, 8, '2011-06-16 11:22:52.147200', '2011-06-16 11:22:52.147200', 1)
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 8)[0m
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (14.0ms)
Rendered carts/_cart.html.erb (25.0ms)
Rendered line_items/create.js.rjs (32.0ms)
Completed 200 OK in 301ms (Views: 78.0ms | ActiveRecord: 4.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-16 13:23:09 +0200
  Processing by LineItemsController#create as JS
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 8 LIMIT 1[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 8) LIMIT 1[0m
  [1m[35mAREL (1.0ms)[0m  UPDATE "line_items" SET "quantity" = 2, "updated_at" = '2011-06-16 11:23:09.397200' WHERE "line_items"."id" = 16
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 8)[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (15.0ms)
Rendered carts/_cart.html.erb (26.0ms)
Rendered line_items/create.js.rjs (38.0ms)
Completed 200 OK in 349ms (Views: 85.0ms | ActiveRecord: 5.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-16 14:40:21 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (187.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
  [1m[35mCart Load (1.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 8 LIMIT 1
  [1m[36mSQL (0.0ms)[0m  [1mSELECT COUNT(*) FROM "line_items" WHERE ("line_items".cart_id = 8)[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 8)
  [1m[36mProduct Load (9.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
Rendered line_items/_line_item.html.erb (126.0ms)
Rendered carts/_cart.html.erb (162.0ms)
Rendered store/index.html.erb within layouts/application (759.0ms)
Completed 200 OK in 1772ms (Views: 929.0ms | ActiveRecord: 198.0ms)


Started POST "/carts/8" for 127.0.0.1 at 2011-06-16 14:40:52 +0200

SyntaxError (c:/_Projects/_code/K1958/depot/app/controllers/carts_controller.rb:19: invalid multibyte char (US-ASCII)
c:/_Projects/_code/K1958/depot/app/controllers/carts_controller.rb:19: invalid multibyte char (US-ASCII)
c:/_Projects/_code/K1958/depot/app/controllers/carts_controller.rb:19: syntax error, unexpected $end, expecting keyword_end
...      logger.error "Pokus o p��stup k neplatn�mu ko��ku #{pa...
...                               ^):
  

Rendered C:/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/_trace.erb (26.0ms)
Rendered C:/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (13.0ms)
Rendered C:/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (130.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-16 14:41:27 +0200
  Processing by StoreController#index as HTML
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" ORDER BY title
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 8 LIMIT 1[0m
  [1m[35mSQL (0.0ms)[0m  SELECT COUNT(*) FROM "line_items" WHERE ("line_items".cart_id = 8)
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 8)[0m
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (57.0ms)
Rendered carts/_cart.html.erb (67.0ms)
Rendered store/index.html.erb within layouts/application (131.0ms)
Completed 200 OK in 231ms (Views: 152.0ms | ActiveRecord: 1.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-16 14:42:02 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
  [1m[35mCart Load (1.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 8 LIMIT 1
  [1m[36mSQL (0.0ms)[0m  [1mSELECT COUNT(*) FROM "line_items" WHERE ("line_items".cart_id = 8)[0m
  [1m[35mLineItem Load (0.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 8)
  [1m[36mProduct Load (0.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
Rendered line_items/_line_item.html.erb (40.0ms)
Rendered carts/_cart.html.erb (50.0ms)
DEPRECATION WARNING: <% %> style block helpers are deprecated. Please use <%= %>. (called from _app_views_layouts_application_html_erb__733953799_34384200_167011947 at c:/_Projects/_code/K1958/depot/app/views/layouts/application.html.erb:17)
Rendered store/index.html.erb within layouts/application (180.0ms)
Completed 200 OK in 256ms (Views: 202.0ms | ActiveRecord: 2.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-16 14:42:47 +0200
  Processing by StoreController#index as HTML
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" ORDER BY title
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 8 LIMIT 1[0m
  [1m[35mSQL (1.0ms)[0m  SELECT COUNT(*) FROM "line_items" WHERE ("line_items".cart_id = 8)
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 8)[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (26.0ms)
Rendered carts/_cart.html.erb (36.0ms)
DEPRECATION WARNING: <% %> style block helpers are deprecated. Please use <%= %>. (called from _app_views_layouts_application_html_erb__733953799_34385208_167011947 at c:/_Projects/_code/K1958/depot/app/views/layouts/application.html.erb:17)
Rendered store/index.html.erb within layouts/application (129.0ms)
Completed 200 OK in 199ms (Views: 148.0ms | ActiveRecord: 4.0ms)


Started POST "/carts/8" for 127.0.0.1 at 2011-06-16 14:42:50 +0200
  Processing by CartsController#destroy as HTML
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "id"=>"8"}
  [1m[36mCart Load (1.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 8 LIMIT 1[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 8)
  [1m[36mAREL (15.0ms)[0m  [1mDELETE FROM "line_items" WHERE "line_items"."id" = 16[0m
  [1m[35mAREL (0.0ms)[0m  DELETE FROM "carts" WHERE "carts"."id" = 8
Redirected to http://localhost:3000/
Completed 302 Found in 335ms


Started GET "/" for 127.0.0.1 at 2011-06-16 14:42:51 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
  [1m[35mAREL (2.0ms)[0m  INSERT INTO "carts" ("created_at", "updated_at") VALUES ('2011-06-16 12:42:51.696200', '2011-06-16 12:42:51.696200')
  [1m[36mSQL (1.0ms)[0m  [1mSELECT COUNT(*) FROM "line_items" WHERE ("line_items".cart_id = 9)[0m
Rendered collection (0.0ms)
Rendered carts/_cart.html.erb (3.0ms)
DEPRECATION WARNING: <% %> style block helpers are deprecated. Please use <%= %>. (called from _app_views_layouts_application_html_erb__733953799_35553324_167011947 at c:/_Projects/_code/K1958/depot/app/views/layouts/application.html.erb:17)
Rendered store/index.html.erb within layouts/application (64.0ms)
Completed 200 OK in 335ms (Views: 85.0ms | ActiveRecord: 4.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-16 14:42:59 +0200
  Processing by LineItemsController#create as JS
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[35mCart Load (0.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 9 LIMIT 1
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
  [1m[35mLineItem Load (0.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 9) LIMIT 1
  [1m[36mAREL (2.0ms)[0m  [1mINSERT INTO "line_items" ("product_id", "cart_id", "created_at", "updated_at", "quantity") VALUES (2, 9, '2011-06-16 12:42:59.824200', '2011-06-16 12:42:59.824200', 1)[0m
  [1m[35mLineItem Load (0.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 9)
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
Rendered line_items/_line_item.html.erb (14.0ms)
Rendered carts/_cart.html.erb (36.0ms)
  [1m[35mSQL (1.0ms)[0m  SELECT SUM("line_items"."quantity") AS sum_id FROM "line_items" WHERE ("line_items".cart_id = 9)
Rendered line_items/create.js.rjs (57.0ms)
Completed 200 OK in 442ms (Views: 99.0ms | ActiveRecord: 5.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-16 14:43:04 +0200
  Processing by LineItemsController#create as JS
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 9 LIMIT 1[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 9) LIMIT 1[0m
  [1m[35mAREL (2.0ms)[0m  UPDATE "line_items" SET "quantity" = 2, "updated_at" = '2011-06-16 12:43:04.947200' WHERE "line_items"."id" = 17
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 9)[0m
  [1m[35mProduct Load (0.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (15.0ms)
Rendered carts/_cart.html.erb (25.0ms)
  [1m[36mSQL (1.0ms)[0m  [1mSELECT SUM("line_items"."quantity") AS sum_id FROM "line_items" WHERE ("line_items".cart_id = 9)[0m
Rendered line_items/create.js.rjs (35.0ms)
Completed 200 OK in 295ms (Views: 78.0ms | ActiveRecord: 22.0ms)


Started POST "/carts/9" for 127.0.0.1 at 2011-06-16 14:43:08 +0200
  Processing by CartsController#destroy as HTML
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "id"=>"9"}
  [1m[35mCart Load (1.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 9 LIMIT 1
  [1m[36mLineItem Load (1.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 9)[0m
  [1m[35mAREL (1.0ms)[0m  DELETE FROM "line_items" WHERE "line_items"."id" = 17
  [1m[36mAREL (0.0ms)[0m  [1mDELETE FROM "carts" WHERE "carts"."id" = 9[0m
Redirected to http://localhost:3000/
Completed 302 Found in 196ms


Started GET "/" for 127.0.0.1 at 2011-06-16 14:43:09 +0200
  Processing by StoreController#index as HTML
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" ORDER BY title
  [1m[36mAREL (2.0ms)[0m  [1mINSERT INTO "carts" ("created_at", "updated_at") VALUES ('2011-06-16 12:43:09.149200', '2011-06-16 12:43:09.149200')[0m
  [1m[35mSQL (0.0ms)[0m  SELECT COUNT(*) FROM "line_items" WHERE ("line_items".cart_id = 10)
Rendered collection (0.0ms)
Rendered carts/_cart.html.erb (3.0ms)
DEPRECATION WARNING: <% %> style block helpers are deprecated. Please use <%= %>. (called from _app_views_layouts_application_html_erb__733953799_47318040_167011947 at c:/_Projects/_code/K1958/depot/app/views/layouts/application.html.erb:17)
Rendered store/index.html.erb within layouts/application (63.0ms)
Completed 200 OK in 363ms (Views: 84.0ms | ActiveRecord: 3.0ms)


Started GET "/" for 127.0.0.1 at 2011-06-16 14:43:52 +0200
  Processing by StoreController#index as HTML
  [1m[36mProduct Load (1.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
  [1m[35mCart Load (1.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 10 LIMIT 1
  [1m[36mSQL (1.0ms)[0m  [1mSELECT COUNT(*) FROM "line_items" WHERE ("line_items".cart_id = 10)[0m
Rendered collection (0.0ms)
Rendered carts/_cart.html.erb (3.0ms)
Rendered store/index.html.erb within layouts/application (120.0ms)
Completed 200 OK in 191ms (Views: 141.0ms | ActiveRecord: 3.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-16 14:43:54 +0200
  Processing by LineItemsController#create as JS
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[35mCart Load (0.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 10 LIMIT 1
  [1m[36mProduct Load (0.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 10) LIMIT 1
  [1m[36mAREL (2.0ms)[0m  [1mINSERT INTO "line_items" ("product_id", "cart_id", "created_at", "updated_at", "quantity") VALUES (2, 10, '2011-06-16 12:43:55.073200', '2011-06-16 12:43:55.073200', 1)[0m
  [1m[35mLineItem Load (1.0ms)[0m  SELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 10)
  [1m[36mProduct Load (0.0ms)[0m  [1mSELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1[0m
Rendered line_items/_line_item.html.erb (14.0ms)
Rendered carts/_cart.html.erb (26.0ms)
  [1m[35mSQL (1.0ms)[0m  SELECT SUM("line_items"."quantity") AS sum_id FROM "line_items" WHERE ("line_items".cart_id = 10)
Rendered line_items/create.js.rjs (35.0ms)
Completed 200 OK in 418ms (Views: 79.0ms | ActiveRecord: 5.0ms)


Started POST "/line_items?product_id=2" for 127.0.0.1 at 2011-06-16 14:43:57 +0200
  Processing by LineItemsController#create as JS
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "product_id"=>"2"}
  [1m[36mCart Load (0.0ms)[0m  [1mSELECT "carts".* FROM "carts" WHERE "carts"."id" = 10 LIMIT 1[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE "line_items"."product_id" = 2 AND ("line_items".cart_id = 10) LIMIT 1[0m
  [1m[35mAREL (2.0ms)[0m  UPDATE "line_items" SET "quantity" = 2, "updated_at" = '2011-06-16 12:43:57.707200' WHERE "line_items"."id" = 18
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 10)[0m
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" WHERE "products"."id" = 2 ORDER BY title LIMIT 1
Rendered line_items/_line_item.html.erb (15.0ms)
Rendered carts/_cart.html.erb (25.0ms)
  [1m[36mSQL (0.0ms)[0m  [1mSELECT SUM("line_items"."quantity") AS sum_id FROM "line_items" WHERE ("line_items".cart_id = 10)[0m
Rendered line_items/create.js.rjs (57.0ms)
Completed 200 OK in 331ms (Views: 102.0ms | ActiveRecord: 4.0ms)


Started POST "/carts/10" for 127.0.0.1 at 2011-06-16 14:44:05 +0200
  Processing by CartsController#destroy as HTML
  Parameters: {"authenticity_token"=>"+RFRPLNVKNz5CoCwnxHuNo48L7H9vUBx+0U3V/n/vWI=", "id"=>"10"}
  [1m[35mCart Load (0.0ms)[0m  SELECT "carts".* FROM "carts" WHERE "carts"."id" = 10 LIMIT 1
  [1m[36mLineItem Load (0.0ms)[0m  [1mSELECT "line_items".* FROM "line_items" WHERE ("line_items".cart_id = 10)[0m
  [1m[35mAREL (2.0ms)[0m  DELETE FROM "line_items" WHERE "line_items"."id" = 18
  [1m[36mAREL (0.0ms)[0m  [1mDELETE FROM "carts" WHERE "carts"."id" = 10[0m
Redirected to http://localhost:3000/
Completed 302 Found in 264ms


Started GET "/" for 127.0.0.1 at 2011-06-16 14:44:05 +0200
  Processing by StoreController#index as HTML
  [1m[35mProduct Load (1.0ms)[0m  SELECT "products".* FROM "products" ORDER BY title
  [1m[36mAREL (2.0ms)[0m  [1mINSERT INTO "carts" ("created_at", "updated_at") VALUES ('2011-06-16 12:44:05.823200', '2011-06-16 12:44:05.823200')[0m
  [1m[35mSQL (1.0ms)[0m  SELECT COUNT(*) FROM "line_items" WHERE ("line_items".cart_id = 11)
Rendered collection (0.0ms)
Rendered carts/_cart.html.erb (2.0ms)
Rendered store/index.html.erb within layouts/application (67.0ms)
Completed 200 OK in 359ms (Views: 88.0ms | ActiveRecord: 4.0ms)
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mSQL (1.0ms)[0m  select sqlite_version(*)
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (251.0ms)[0m  CREATE TABLE "carts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (215.0ms)[0m  CREATE TABLE "line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_id" integer, "cart_id" integer, "created_at" datetime, "updated_at" datetime, "quantity" integer DEFAULT 1) 
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (501.0ms)[0m  CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "image_url" varchar(255), "price" decimal(8,2), "created_at" datetime, "updated_at" datetime) 
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (220.0ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("schema_migrations")[0m
  [1m[35mSQL (298.0ms)[0m  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  SELECT version FROM "schema_migrations"
  [1m[36mSQL (471.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110614171625')[0m
  [1m[35mSQL (286.0ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20110609140659')
  [1m[36mSQL (250.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110613194406')[0m
  [1m[35mSQL (480.0ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20110614073328')
  [1m[36mSQL (284.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110614164949')[0m


Started GET "/products/" for 127.0.0.1 at 2011-06-16 16:22:33 +0200
  Processing by ProductsController#index as HTML
  [1m[36mProduct Load (58.0ms)[0m  [1mSELECT "products".* FROM "products" ORDER BY title[0m
Rendered products/index.html.erb within layouts/application (1270.0ms)
Completed   in 2426ms

ActionView::Template::Error (undefined method `line_items' for nil:NilClass):
    14:   </div>

    15:   <div id="columns">                                

    16:     <div id="side">

    17:       <%= hidden_div_if(@cart.line_items.empty?, :id => "cart") do %>

    18:         <%= render @cart %>

    19:       <% end %>

    20: 

  app/views/layouts/application.html.erb:17:in `_app_views_layouts_application_html_erb__733953799_35211072_167011947'
  app/controllers/products_controller.rb:7:in `index'

Rendered C:/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.0ms)
Rendered C:/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (160.0ms)
Rendered C:/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (274.0ms)
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mSQL (1.0ms)[0m  select sqlite_version(*)
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (61.0ms)[0m  CREATE TABLE "carts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (56.0ms)[0m  CREATE TABLE "line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_id" integer, "cart_id" integer, "created_at" datetime, "updated_at" datetime, "quantity" integer DEFAULT 1) 
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (73.0ms)[0m  CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "image_url" varchar(255), "price" decimal(8,2), "created_at" datetime, "updated_at" datetime) 
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (74.0ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("schema_migrations")[0m
  [1m[35mSQL (74.0ms)[0m  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (1.0ms)[0m  SELECT version FROM "schema_migrations"
  [1m[36mSQL (73.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110614171625')[0m
  [1m[35mSQL (74.0ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20110609140659')
  [1m[36mSQL (75.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110613194406')[0m
  [1m[35mSQL (74.0ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20110614073328')
  [1m[36mSQL (75.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110614164949')[0m
  [1m[36mSQL (2.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mSQL (1.0ms)[0m  select sqlite_version(*)
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (90.0ms)[0m  CREATE TABLE "carts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (65.0ms)[0m  CREATE TABLE "line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_id" integer, "cart_id" integer, "created_at" datetime, "updated_at" datetime, "quantity" integer DEFAULT 1) 
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (72.0ms)[0m  CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "image_url" varchar(255), "price" decimal(8,2), "created_at" datetime, "updated_at" datetime) 
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (66.0ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("schema_migrations")[0m
  [1m[35mSQL (74.0ms)[0m  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  SELECT version FROM "schema_migrations"
  [1m[36mSQL (74.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110614171625')[0m
  [1m[35mSQL (74.0ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20110609140659')
  [1m[36mSQL (67.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110613194406')[0m
  [1m[35mSQL (66.0ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20110614073328')
  [1m[36mSQL (66.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110614164949')[0m
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (1.0ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mSQL (0.0ms)[0m  select sqlite_version(*)
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (106.0ms)[0m  CREATE TABLE "carts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (51.0ms)[0m  CREATE TABLE "line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_id" integer, "cart_id" integer, "created_at" datetime, "updated_at" datetime, "quantity" integer DEFAULT 1) 
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (65.0ms)[0m  CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "image_url" varchar(255), "price" decimal(8,2), "created_at" datetime, "updated_at" datetime) 
  [1m[36mSQL (0.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (57.0ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("schema_migrations")[0m
  [1m[35mSQL (66.0ms)[0m  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
  [1m[36mSQL (1.0ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  SELECT version FROM "schema_migrations"
  [1m[36mSQL (65.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110614171625')[0m
  [1m[35mSQL (83.0ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20110609140659')
  [1m[36mSQL (50.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110613194406')[0m
  [1m[35mSQL (57.0ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20110614073328')
  [1m[36mSQL (51.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20110614164949')[0m
