simple_cart 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/simple_cart/address.rb +12 -0
  3. data/app/models/simple_cart/asda.rb +4 -0
  4. data/app/models/simple_cart/billing_address.rb +4 -0
  5. data/app/models/simple_cart/cart.rb +74 -0
  6. data/app/models/simple_cart/credit_card.rb +24 -0
  7. data/app/models/simple_cart/delivery.rb +6 -0
  8. data/app/models/simple_cart/order.rb +60 -0
  9. data/app/models/simple_cart/order_item.rb +6 -0
  10. data/app/models/simple_cart/shipping_address.rb +4 -0
  11. data/app/views/simple_cart/checkout/_address.html.haml +1 -1
  12. data/app/views/simple_cart/checkout/_summary.html.haml +4 -4
  13. data/app/views/simple_cart/checkout/billing.html.haml +1 -1
  14. data/app/views/simple_cart/checkout/delivery.html.haml +2 -2
  15. data/app/views/simple_cart/checkout/payment.html.haml +2 -2
  16. data/db/migrate/{20160312121928_create_order_item.rb → 20160312121928_create_simple_cart_order_item.rb} +5 -5
  17. data/db/migrate/{20160312124050_create_order.rb → 20160312124050_create_simple_cart_order.rb} +3 -3
  18. data/db/migrate/{20160312142534_address.rb → 20160312142534_create_simple_cart_address.rb} +4 -4
  19. data/db/migrate/{20160312145452_delivery.rb → 20160312145452_create_simple_cart_delivery.rb} +3 -2
  20. data/db/migrate/{20160312151237_add_credit_card.rb → 20160312151237_create_simple_cart_credit_card.rb} +3 -3
  21. data/db/migrate/20160314183842_create_simple_cart_asdas.rb +10 -0
  22. data/lib/simple_cart/version.rb +1 -1
  23. data/lib/tasks/simple_cart_tasks.rake +19 -4
  24. data/test/dummy/app/assets/javascripts/things.js +2 -0
  25. data/test/dummy/app/assets/stylesheets/things.scss +3 -0
  26. data/test/dummy/app/controllers/application_controller.rb +0 -2
  27. data/test/dummy/app/controllers/things_controller.rb +58 -0
  28. data/test/dummy/app/helpers/things_helper.rb +2 -0
  29. data/test/dummy/app/models/thing.rb +2 -0
  30. data/test/dummy/app/views/{items → things}/_form.html.erb +4 -4
  31. data/test/dummy/app/views/things/edit.html.erb +6 -0
  32. data/test/dummy/app/views/things/index.html.erb +31 -0
  33. data/test/dummy/app/views/things/new.html.erb +5 -0
  34. data/test/dummy/app/views/things/show.html.erb +21 -0
  35. data/test/dummy/config/routes.rb +1 -0
  36. data/test/dummy/db/development.sqlite3 +0 -0
  37. data/test/dummy/db/migrate/{20160312124601_create_order_items.simple_cart.rb → 20160314184432_create_simple_cart_order_item.simple_cart.rb} +5 -5
  38. data/test/dummy/db/migrate/{20160312124602_create_order.simple_cart.rb → 20160314184433_create_simple_cart_order.simple_cart.rb} +4 -4
  39. data/test/dummy/db/migrate/{20160312142752_address.simple_cart.rb → 20160314184434_create_simple_cart_address.simple_cart.rb} +4 -4
  40. data/test/dummy/db/migrate/{20160312145636_delivery.simple_cart.rb → 20160314184435_create_simple_cart_delivery.simple_cart.rb} +3 -2
  41. data/test/dummy/db/migrate/{20160312151409_add_credit_card.simple_cart.rb → 20160314184436_create_simple_cart_credit_card.simple_cart.rb} +3 -3
  42. data/test/dummy/db/migrate/20160314184437_create_simple_cart_asdas.simple_cart.rb +11 -0
  43. data/test/dummy/db/migrate/{20160307150139_create_items.rb → 20160314184745_create_things.rb} +2 -2
  44. data/test/dummy/db/schema.rb +21 -29
  45. data/test/dummy/log/development.log +3814 -0
  46. data/test/dummy/test/controllers/things_controller_test.rb +49 -0
  47. data/test/dummy/test/models/{item_test.rb → thing_test.rb} +1 -1
  48. data/test/dummy/tmp/cache/assets/sprockets/v3.0/-sMBlUbMCruloZiGwXAkZ5qkMXnSOfizEHh42yfICOo.cache +1 -0
  49. data/test/dummy/tmp/cache/assets/sprockets/v3.0/2do6_0BJY_m-WISNQO55OL7r8EryK6F5GT875Vmdr_I.cache +0 -0
  50. data/test/dummy/tmp/cache/assets/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -0
  51. data/test/dummy/tmp/cache/assets/sprockets/v3.0/6rr48iVYpUE7q2m5J4DGmbU2hoaoT94T1TKw0hx2MgU.cache +0 -0
  52. data/test/dummy/tmp/cache/assets/sprockets/v3.0/83NGEE7Dkkuzj_aphqH3WxVn5hHfKVawDdEztQSpGF8.cache +1 -0
  53. data/test/dummy/tmp/cache/assets/sprockets/v3.0/8DXxFxOs3XK06Mxa2Ob19isXxUDJ28PqKZkHvaWv75Y.cache +0 -0
  54. data/test/dummy/tmp/cache/assets/sprockets/v3.0/AYBEyhZJ0H2jvcUYmWfnUsg-5ecns9BP_8fxyreMlek.cache +1 -0
  55. data/test/dummy/tmp/cache/assets/sprockets/v3.0/BgsENjJNIUiGA7nr7BkOYU8zcNW6XeB6BNNv4MWjWaQ.cache +0 -0
  56. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Cl6gPwmWN2Yt_JZfRenwju2AwmuvMazp847XaP4iwOU.cache +0 -0
  57. data/test/dummy/tmp/cache/assets/sprockets/v3.0/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache +0 -0
  58. data/test/dummy/tmp/cache/assets/sprockets/v3.0/EsPwaYrEK5VY70wbjmozW82BnI3AeMHHznHT1y4or0s.cache +0 -0
  59. data/test/dummy/tmp/cache/assets/sprockets/v3.0/I7zER_NAw46Rh3MUqyIlZQcYUzI_b9jGGDuf8unwfAA.cache +0 -0
  60. data/test/dummy/tmp/cache/assets/sprockets/v3.0/LuVuixjEF7YqVs6naYiDzEQs17oZrgPjH7xBIna-dFk.cache +0 -0
  61. data/test/dummy/tmp/cache/assets/sprockets/v3.0/N3ynYTk1iq-DkvgrkhdDk2fFBaCqcroKAfKK0fOuq4M.cache +1 -0
  62. data/test/dummy/tmp/cache/assets/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -0
  63. data/test/dummy/tmp/cache/assets/sprockets/v3.0/QmeozvaJCXEZgrsu54HdlAztW40N4GgOr5Euwv1_b6I.cache +0 -0
  64. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Rj42BFwHvQpHPnt1iAOPi89OYrjqGtGG_4wceo2BBJU.cache +3 -0
  65. data/test/dummy/tmp/cache/assets/sprockets/v3.0/XnsVm-Zv77KyLk_T1Ir1BbtWmQONMpeQ8oFiw0youEs.cache +0 -0
  66. data/test/dummy/tmp/cache/assets/sprockets/v3.0/XpaMhBmfnKXevKG9G3pnDyi2I__eqrtiSScrPOQISJQ.cache +0 -0
  67. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Z0hYz4kAc0qIHZh2B6PKbQzGp-o9iOHeG4p6UZ5I79g.cache +1 -0
  68. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Z2uWpFgWmN5mCkSLFelYcIHrd3Hg_jZvl3OToBURIx0.cache +1 -0
  69. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZE1rEtR4O5c-wrMABt6kf3KPw9ANKgCvDLl_HKA67tw.cache +0 -0
  70. data/test/dummy/tmp/cache/assets/sprockets/v3.0/_lZdgp3oIruAKbhu6WtQOSgdulGjDuxwvsZYlqQhvgs.cache +1 -0
  71. data/test/dummy/tmp/cache/assets/sprockets/v3.0/a-QY9no1r9wESk0XVZMU9-j4ILaT0dYl4wZXDp81u-Y.cache +0 -0
  72. data/test/dummy/tmp/cache/assets/sprockets/v3.0/bGACHbYazmadJKSmeRj-qOtfk2VhzZVNcCtZeJjWdnQ.cache +1 -0
  73. data/test/dummy/tmp/cache/assets/sprockets/v3.0/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache +0 -0
  74. data/test/dummy/tmp/cache/assets/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +0 -0
  75. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ibD5UKGyxBi5Ku5BUV1vG7rslb0drFn8WSbtt5IIUjI.cache +0 -0
  76. data/test/dummy/tmp/cache/assets/sprockets/v3.0/kQrLKly_-oWaLlXxLU1kJ_f2RGKSegikbCSLB6ngQb0.cache +1 -0
  77. data/test/dummy/tmp/cache/assets/sprockets/v3.0/lK1OKrUN4Aa4ULF5iC8LIO9b_8pD6VtM7QmFoR_Hyq4.cache +3 -0
  78. data/test/dummy/tmp/cache/assets/sprockets/v3.0/nwZ7OlaT5CopAytu4Wj7C2dIhJATxQcr9-llmxhvr24.cache +0 -0
  79. data/test/dummy/tmp/cache/assets/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +0 -0
  80. data/test/dummy/tmp/cache/assets/sprockets/v3.0/qEqxPoB4kreE79i9bMtvzfKkwN0k6R3RiGyGNqfu3hg.cache +1 -0
  81. data/test/dummy/tmp/cache/assets/sprockets/v3.0/qWFB2-t9pKzO4Y2L9nrDJ--Il_NK1G6W1VTOZmp7NEU.cache +1 -0
  82. data/test/dummy/tmp/cache/assets/sprockets/v3.0/rX4eaTmGdGCEW9N1MaxQaGYQf6Ai9y7fx-tYKEkWKSg.cache +0 -0
  83. data/test/dummy/tmp/cache/assets/sprockets/v3.0/tC2-EIZv61P8CEFijr9uxHBmHtSivZyE-y3KOR5Th7k.cache +2 -0
  84. data/test/dummy/tmp/cache/assets/sprockets/v3.0/upXyvpsevxXjLhjtNkXE1yKW2WpRPLP3icept_dAfDc.cache +1 -0
  85. data/test/dummy/tmp/cache/assets/sprockets/v3.0/vo2uJ1UBvSksPJ8Tv0I29pH8zcKe_PwMZa2RIXHCyfU.cache +1 -0
  86. data/test/dummy/tmp/pids/server.pid +1 -1
  87. data/test/{dummy/test/fixtures/items.yml → fixtures/simple_cart/asdas.yml} +4 -6
  88. data/test/fixtures/simple_cart/sssses.yml +11 -0
  89. data/test/fixtures/simple_cart/tests.yml +11 -0
  90. data/test/models/simple_cart/asda_test.rb +9 -0
  91. data/test/models/simple_cart/ssss_test.rb +9 -0
  92. data/test/models/simple_cart/test_test.rb +9 -0
  93. metadata +164 -101
  94. data/README.rdoc +0 -3
  95. data/app/models/address.rb +0 -10
  96. data/app/models/billing_address.rb +0 -2
  97. data/app/models/cart.rb +0 -71
  98. data/app/models/credit_card.rb +0 -22
  99. data/app/models/delivery.rb +0 -4
  100. data/app/models/order.rb +0 -58
  101. data/app/models/order_item.rb +0 -4
  102. data/app/models/shipping_address.rb +0 -2
  103. data/test/dummy/app/models/bicycle.rb +0 -2
  104. data/test/dummy/app/models/coupon.rb +0 -2
  105. data/test/dummy/app/models/item.rb +0 -2
  106. data/test/dummy/app/views/bicycles/_form.html.erb +0 -29
  107. data/test/dummy/app/views/bicycles/edit.html.erb +0 -6
  108. data/test/dummy/app/views/bicycles/index.html.erb +0 -31
  109. data/test/dummy/app/views/bicycles/new.html.erb +0 -5
  110. data/test/dummy/app/views/bicycles/show.html.erb +0 -21
  111. data/test/dummy/app/views/items/edit.html.erb +0 -6
  112. data/test/dummy/app/views/items/index.html.erb +0 -31
  113. data/test/dummy/app/views/items/new.html.erb +0 -5
  114. data/test/dummy/app/views/items/show.html.erb +0 -25
  115. data/test/dummy/db/migrate/20160310215421_create_bicycles.rb +0 -11
  116. data/test/dummy/db/migrate/20160310231528_create_coupons.rb +0 -10
  117. data/test/dummy/db/migrate/20160312142751_create_order_item.simple_cart.rb +0 -17
  118. data/test/dummy/db/migrate/20160312151033_fix.simple_cart.rb +0 -6
  119. data/test/dummy/test/models/bicycle_test.rb +0 -7
  120. /data/test/dummy/app/views/layouts/{application2.html.erb → application.html.erb} +0 -0
  121. /data/test/dummy/test/fixtures/{bicycles.yml → things.yml} +0 -0
@@ -49045,3 +49045,3817 @@ Processing by SimpleCart::CartsController#show as HTML
49045
49045
  CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49046
49046
  Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (25.2ms)
49047
49047
  Completed 200 OK in 227ms (Views: 226.1ms | ActiveRecord: 0.5ms)
49048
+
49049
+
49050
+ Started GET "/" for 127.0.0.1 at 2016-03-14 20:09:52 +0200
49051
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
49052
+ Processing by Rails::WelcomeController#index as HTML
49053
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/railties-4.2.5.2/lib/rails/templates/rails/welcome/index.html.erb (1.0ms)
49054
+ Completed 200 OK in 14ms (Views: 7.0ms | ActiveRecord: 0.0ms)
49055
+
49056
+
49057
+ Started GET "/items" for 127.0.0.1 at 2016-03-14 20:09:55 +0200
49058
+ Processing by ItemsController#index as HTML
49059
+ Item Load (0.2ms) SELECT "items".* FROM "items"
49060
+ Rendered items/index.html.erb (7.2ms)
49061
+ Completed 200 OK in 13ms (Views: 10.8ms | ActiveRecord: 0.5ms)
49062
+
49063
+
49064
+ Started GET "/items" for 127.0.0.1 at 2016-03-14 20:09:55 +0200
49065
+ Processing by ItemsController#index as HTML
49066
+ Item Load (0.2ms) SELECT "items".* FROM "items"
49067
+ Rendered items/index.html.erb (2.3ms)
49068
+ Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
49069
+
49070
+
49071
+ Started GET "/items/new" for 127.0.0.1 at 2016-03-14 20:09:57 +0200
49072
+ Processing by ItemsController#new as HTML
49073
+ Rendered items/_form.html.erb (8.5ms)
49074
+ Rendered items/new.html.erb (11.5ms)
49075
+ Completed 200 OK in 15ms (Views: 14.0ms | ActiveRecord: 0.0ms)
49076
+
49077
+
49078
+ Started POST "/items" for 127.0.0.1 at 2016-03-14 20:09:59 +0200
49079
+ Processing by ItemsController#create as HTML
49080
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"5Qv2qwwaVdsdlFg1zbc2ElJHlEPKmA/ImF+5yJ9xdljRoUGKQwpBhwLfQNsKgLihPxp3ftoenVzRPFqkVRdXSw==", "item"=>{"name"=>"fvdsg", "price"=>"dsg", "qty"=>"1"}, "commit"=>"Create Item"}
49081
+  (0.1ms) begin transaction
49082
+ SQL (0.4ms) INSERT INTO "items" ("name", "price", "qty", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "fvdsg"], ["price", 0.0], ["qty", 1], ["created_at", "2016-03-14 18:09:59.699452"], ["updated_at", "2016-03-14 18:09:59.699452"]]
49083
+  (234.2ms) commit transaction
49084
+ Redirected to http://localhost:3000/items/4
49085
+ Completed 302 Found in 241ms (ActiveRecord: 234.6ms)
49086
+
49087
+
49088
+ Started GET "/items/4" for 127.0.0.1 at 2016-03-14 20:09:59 +0200
49089
+ Processing by ItemsController#show as HTML
49090
+ Parameters: {"id"=>"4"}
49091
+ Item Load (0.3ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
49092
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (11.2ms)
49093
+ Rendered items/show.html.erb (12.7ms)
49094
+ Completed 200 OK in 21ms (Views: 14.4ms | ActiveRecord: 0.3ms)
49095
+
49096
+
49097
+ Started POST "/simple_cart/cart/4" for 127.0.0.1 at 2016-03-14 20:10:03 +0200
49098
+ Processing by SimpleCart::CartsController#add as HTML
49099
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"0arxNvtQ4G39t1xmN8+N3gxFuM4bE5NRDi8aDC9oHD7lAEYXtED0MeL8RIjw+ANtYRhb8wuVAcVHTPlg5Q49LQ==", "qty"=>"3", "klass"=>"Item", "commit"=>"Add to cart", "item_id"=>"4"}
49100
+ Redirected to http://localhost:3000/simple_cart/cart
49101
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
49102
+
49103
+
49104
+ Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 20:10:03 +0200
49105
+ Processing by SimpleCart::CartsController#show as HTML
49106
+ Bicycle Load (0.2ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
49107
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
49108
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
49109
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49110
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49111
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49112
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49113
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49114
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49115
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (45.5ms)
49116
+ Completed 200 OK in 247ms (Views: 245.4ms | ActiveRecord: 0.6ms)
49117
+
49118
+
49119
+ Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 20:10:06 +0200
49120
+ Processing by SimpleCart::CartsController#checkout as HTML
49121
+ Parameters: {"authenticity_token"=>"Y4+DwxntlM0bHv8+G/ixx9r/D3mxa0VjNz11yB1m6aRXJTTiVv2AkQRV59Dczz90t6LsRKHt1/d+Xpak1wDItw=="}
49122
+ Bicycle Load (0.1ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
49123
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
49124
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
49125
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49126
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49127
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49128
+  (0.1ms) begin transaction
49129
+ SQL (0.3ms) INSERT INTO "orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 69.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 18:10:06.601878"], ["updated_at", "2016-03-14 18:10:06.601878"]]
49130
+ SQL (0.2ms) INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 22.0], ["qty", 2], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["order_id", "19"], ["created_at", "2016-03-14 18:10:06.604182"], ["updated_at", "2016-03-14 18:10:06.604182"]]
49131
+ SQL (0.1ms) INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 25.0], ["qty", 1], ["itemable_id", 3], ["itemable_type", "Item"], ["order_id", "19"], ["created_at", "2016-03-14 18:10:06.606634"], ["updated_at", "2016-03-14 18:10:06.606634"]]
49132
+ SQL (0.1ms) INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 0.0], ["qty", 3], ["itemable_id", 4], ["itemable_type", "Item"], ["order_id", "19"], ["created_at", "2016-03-14 18:10:06.608150"], ["updated_at", "2016-03-14 18:10:06.608150"]]
49133
+  (50.8ms) commit transaction
49134
+ Redirected to http://localhost:3000/simple_cart/orders/19/checkout
49135
+ Completed 302 Found in 131ms (ActiveRecord: 52.3ms)
49136
+
49137
+
49138
+ Started GET "/simple_cart/orders/19/checkout" for 127.0.0.1 at 2016-03-14 20:10:06 +0200
49139
+ Processing by SimpleCart::CheckoutController#index as HTML
49140
+ Parameters: {"order_id"=>"19"}
49141
+ Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 19]]
49142
+ Redirected to http://localhost:3000/simple_cart/orders/19/checkout/billing
49143
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
49144
+
49145
+
49146
+ Started GET "/simple_cart/orders/19/checkout/billing" for 127.0.0.1 at 2016-03-14 20:10:06 +0200
49147
+ Processing by SimpleCart::CheckoutController#show as HTML
49148
+ Parameters: {"order_id"=>"19", "id"=>"billing"}
49149
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 19]]
49150
+ BillingAddress Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 19]]
49151
+ ShippingAddress Load (0.8ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 19]]
49152
+ CreditCard Load (0.2ms) SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 19]]
49153
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.9ms)
49154
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (14.6ms)
49155
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (34.1ms)
49156
+ Completed 200 OK in 129ms (Views: 52.5ms | ActiveRecord: 1.7ms)
49157
+
49158
+
49159
+ Started PATCH "/simple_cart/orders/19/checkout/billing" for 127.0.0.1 at 2016-03-14 20:12:48 +0200
49160
+ Processing by SimpleCart::CheckoutController#update as HTML
49161
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"vMPo3Gvbn8NquzLRd+O8ofKamvmVDq+JGPDGVsZL8PuIaV/9JMuLn3XwKj+w1DISn8d5xIWIPR1RkyU6DC3R6A==", "order"=>{"billing_address_attributes"=>{"firstname"=>"", "lastname"=>"", "address"=>"", "zipcode"=>"", "city"=>"", "phone"=>"", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"19", "id"=>"billing"}
49162
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 19]]
49163
+  (0.2ms) begin transaction
49164
+ BillingAddress Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 19]]
49165
+  (0.1ms) rollback transaction
49166
+  (0.0ms) begin transaction
49167
+  (0.1ms) rollback transaction
49168
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.4ms)
49169
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (6.9ms)
49170
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (15.2ms)
49171
+ Completed 200 OK in 48ms (Views: 31.0ms | ActiveRecord: 0.7ms)
49172
+
49173
+
49174
+ Started PATCH "/simple_cart/orders/19/checkout/billing" for 127.0.0.1 at 2016-03-14 20:12:54 +0200
49175
+ Processing by SimpleCart::CheckoutController#update as HTML
49176
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"QpRn8M7+pR5zZKpEptSSrzyiBkWH3eXlH84NcjPCbTt2PtDRge6xQmwvsqph4xwcUf/leJdbd3FWre4e+aRMKA==", "order"=>{"billing_address_attributes"=>{"firstname"=>"cvxz", "lastname"=>"xzvxzv", "address"=>"xzvxzv", "zipcode"=>"xzvxzv", "city"=>"xzvxz", "phone"=>"xzvxzv", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"19", "id"=>"billing"}
49177
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 19]]
49178
+  (0.1ms) begin transaction
49179
+ BillingAddress Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 19]]
49180
+ SQL (0.4ms) INSERT INTO "addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "BillingAddress"], ["firstname", "cvxz"], ["lastname", "xzvxzv"], ["address", "xzvxzv"], ["zipcode", "xzvxzv"], ["city", "xzvxz"], ["phone", "xzvxzv"], ["country", "Afghanistan"], ["order_id", 19], ["created_at", "2016-03-14 18:12:54.461203"], ["updated_at", "2016-03-14 18:12:54.461203"]]
49181
+  (76.0ms) commit transaction
49182
+ ShippingAddress Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 19]]
49183
+  (0.1ms) begin transaction
49184
+ SQL (0.4ms) INSERT INTO "addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "ShippingAddress"], ["order_id", 19], ["address", "xzvxzv"], ["zipcode", "xzvxzv"], ["city", "xzvxz"], ["phone", "xzvxzv"], ["country", "Afghanistan"], ["created_at", "2016-03-14 18:12:54.461203"], ["updated_at", "2016-03-14 18:12:54.461203"], ["firstname", "cvxz"], ["lastname", "xzvxzv"]]
49185
+  (231.9ms) commit transaction
49186
+ Redirected to http://localhost:3000/simple_cart/orders/19/checkout/delivery
49187
+ Completed 302 Found in 320ms (ActiveRecord: 309.1ms)
49188
+
49189
+
49190
+ Started GET "/simple_cart/orders/19/checkout/delivery" for 127.0.0.1 at 2016-03-14 20:12:54 +0200
49191
+ Processing by SimpleCart::CheckoutController#show as HTML
49192
+ Parameters: {"order_id"=>"19", "id"=>"delivery"}
49193
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 19]]
49194
+ ShippingAddress Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 19]]
49195
+ BillingAddress Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 19]]
49196
+ CreditCard Load (0.1ms) SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 19]]
49197
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.9ms)
49198
+ Delivery Load (0.2ms) SELECT "deliveries".* FROM "deliveries"
49199
+ Delivery Load (0.2ms) SELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1
49200
+ CACHE (0.0ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "19"]]
49201
+ CACHE (0.0ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "19"]]
49202
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.9ms)
49203
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (24.5ms)
49204
+ Completed 200 OK in 49ms (Views: 42.2ms | ActiveRecord: 1.3ms)
49205
+
49206
+
49207
+ Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 20:17:24 +0200
49208
+ Processing by SimpleCart::CartsController#show as HTML
49209
+ Bicycle Load (0.1ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
49210
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
49211
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
49212
+ CACHE (0.1ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49213
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49214
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49215
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49216
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49217
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49218
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (20.7ms)
49219
+ Completed 200 OK in 38ms (Views: 36.8ms | ActiveRecord: 0.5ms)
49220
+
49221
+
49222
+ Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 20:17:24 +0200
49223
+ Processing by SimpleCart::CartsController#show as HTML
49224
+ Bicycle Load (0.1ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
49225
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
49226
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
49227
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49228
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49229
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49230
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49231
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49232
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49233
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (19.7ms)
49234
+ Completed 200 OK in 38ms (Views: 37.0ms | ActiveRecord: 0.3ms)
49235
+
49236
+
49237
+ Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 20:17:26 +0200
49238
+ Processing by SimpleCart::CartsController#checkout as HTML
49239
+ Parameters: {"authenticity_token"=>"M4qbbkJsO5s6rsTdsffBhSjpfghZoFOagTkEGbWeAFEHICxPDXwvxyXl3DN2wE82RbSdNUkmwQ7IWud1f/ghQg=="}
49240
+ Bicycle Load (0.2ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
49241
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
49242
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
49243
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49244
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49245
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49246
+  (0.2ms) begin transaction
49247
+ SQL (0.6ms) INSERT INTO "orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 69.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 18:17:26.239759"], ["updated_at", "2016-03-14 18:17:26.239759"]]
49248
+ SQL (0.7ms) INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 22.0], ["qty", 2], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["order_id", "20"], ["created_at", "2016-03-14 18:17:26.243036"], ["updated_at", "2016-03-14 18:17:26.243036"]]
49249
+ SQL (0.2ms) INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 25.0], ["qty", 1], ["itemable_id", 3], ["itemable_type", "Item"], ["order_id", "20"], ["created_at", "2016-03-14 18:17:26.246177"], ["updated_at", "2016-03-14 18:17:26.246177"]]
49250
+ SQL (0.1ms) INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 0.0], ["qty", 3], ["itemable_id", 4], ["itemable_type", "Item"], ["order_id", "20"], ["created_at", "2016-03-14 18:17:26.249045"], ["updated_at", "2016-03-14 18:17:26.249045"]]
49251
+  (214.2ms) commit transaction
49252
+ Redirected to http://localhost:3000/simple_cart/orders/20/checkout
49253
+ Completed 302 Found in 239ms (ActiveRecord: 216.7ms)
49254
+
49255
+
49256
+ Started GET "/simple_cart/orders/20/checkout" for 127.0.0.1 at 2016-03-14 20:17:26 +0200
49257
+ Processing by SimpleCart::CheckoutController#index as HTML
49258
+ Parameters: {"order_id"=>"20"}
49259
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 20]]
49260
+ Redirected to http://localhost:3000/simple_cart/orders/20/checkout/billing
49261
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
49262
+
49263
+
49264
+ Started GET "/simple_cart/orders/20/checkout/billing" for 127.0.0.1 at 2016-03-14 20:17:26 +0200
49265
+ Processing by SimpleCart::CheckoutController#show as HTML
49266
+ Parameters: {"order_id"=>"20", "id"=>"billing"}
49267
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 20]]
49268
+ BillingAddress Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 20]]
49269
+ ShippingAddress Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 20]]
49270
+ CreditCard Load (0.1ms) SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 20]]
49271
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms)
49272
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (8.0ms)
49273
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (12.8ms)
49274
+ Completed 200 OK in 45ms (Views: 38.5ms | ActiveRecord: 0.4ms)
49275
+
49276
+
49277
+ Started GET "/" for 127.0.0.1 at 2016-03-14 20:17:29 +0200
49278
+ Processing by Rails::WelcomeController#index as HTML
49279
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/railties-4.2.5.2/lib/rails/templates/rails/welcome/index.html.erb (0.6ms)
49280
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
49281
+
49282
+
49283
+ Started GET "/" for 127.0.0.1 at 2016-03-14 20:17:35 +0200
49284
+ Processing by Rails::WelcomeController#index as HTML
49285
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/railties-4.2.5.2/lib/rails/templates/rails/welcome/index.html.erb (0.1ms)
49286
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
49287
+
49288
+
49289
+ Started GET "/items" for 127.0.0.1 at 2016-03-14 20:17:39 +0200
49290
+ Processing by ItemsController#index as HTML
49291
+ Item Load (0.2ms) SELECT "items".* FROM "items"
49292
+ Rendered items/index.html.erb (1.9ms)
49293
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
49294
+
49295
+
49296
+ Started GET "/items" for 127.0.0.1 at 2016-03-14 20:17:39 +0200
49297
+ Processing by ItemsController#index as HTML
49298
+ Item Load (0.1ms) SELECT "items".* FROM "items"
49299
+ Rendered items/index.html.erb (2.5ms)
49300
+ Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)
49301
+
49302
+
49303
+ Started GET "/items/2" for 127.0.0.1 at 2016-03-14 20:17:41 +0200
49304
+ Processing by ItemsController#show as HTML
49305
+ Parameters: {"id"=>"2"}
49306
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
49307
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.4ms)
49308
+ Rendered items/show.html.erb (8.0ms)
49309
+ Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.1ms)
49310
+
49311
+
49312
+ Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-14 20:17:42 +0200
49313
+ Processing by SimpleCart::CartsController#add as HTML
49314
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"KN2gxh+Yz0iIiTZAv3Eawh9YAbg3e2OmhnuThiwXWMccdxfnUIjbFJfCLq54RpRxcgXihSf98TLPGHDq5nF51A==", "qty"=>"1", "klass"=>"Item", "commit"=>"Add to cart", "item_id"=>"2"}
49315
+ Redirected to http://localhost:3000/simple_cart/cart
49316
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
49317
+
49318
+
49319
+ Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 20:17:42 +0200
49320
+ Processing by SimpleCart::CartsController#show as HTML
49321
+ Bicycle Load (0.2ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
49322
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
49323
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
49324
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
49325
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49326
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49327
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49328
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
49329
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49330
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49331
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49332
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
49333
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (25.2ms)
49334
+ Completed 200 OK in 44ms (Views: 42.3ms | ActiveRecord: 0.6ms)
49335
+
49336
+
49337
+ Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 20:17:46 +0200
49338
+ Processing by SimpleCart::CartsController#show as HTML
49339
+ Bicycle Load (0.1ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
49340
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
49341
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
49342
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
49343
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49344
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49345
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49346
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
49347
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49348
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49349
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49350
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
49351
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (26.9ms)
49352
+ Completed 200 OK in 45ms (Views: 44.3ms | ActiveRecord: 0.5ms)
49353
+
49354
+
49355
+ Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 20:17:46 +0200
49356
+ Processing by SimpleCart::CartsController#show as HTML
49357
+ Bicycle Load (0.1ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
49358
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
49359
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
49360
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
49361
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49362
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49363
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49364
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
49365
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49366
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49367
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49368
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
49369
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (18.9ms)
49370
+ Completed 200 OK in 36ms (Views: 34.8ms | ActiveRecord: 0.4ms)
49371
+
49372
+
49373
+ Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 20:17:51 +0200
49374
+ Processing by SimpleCart::CartsController#checkout as HTML
49375
+ Parameters: {"authenticity_token"=>"cdFXcCdBZxhoM6FNS5n7cNTg+xjbqaXJvnebt2vViABFe+BRaFFzRHd4uaOMrnXDub0YJcsvN133FHjbobOpEw=="}
49376
+ Bicycle Load (0.2ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
49377
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
49378
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
49379
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
49380
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49381
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49382
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49383
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
49384
+  (0.1ms) begin transaction
49385
+ SQL (0.3ms) INSERT INTO "orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 25481.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 18:17:51.904296"], ["updated_at", "2016-03-14 18:17:51.904296"]]
49386
+ SQL (0.2ms) INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 22.0], ["qty", 2], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["order_id", "21"], ["created_at", "2016-03-14 18:17:51.906390"], ["updated_at", "2016-03-14 18:17:51.906390"]]
49387
+ SQL (0.1ms) INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 25.0], ["qty", 1], ["itemable_id", 3], ["itemable_type", "Item"], ["order_id", "21"], ["created_at", "2016-03-14 18:17:51.908536"], ["updated_at", "2016-03-14 18:17:51.908536"]]
49388
+ SQL (0.1ms) INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 0.0], ["qty", 3], ["itemable_id", 4], ["itemable_type", "Item"], ["order_id", "21"], ["created_at", "2016-03-14 18:17:51.909891"], ["updated_at", "2016-03-14 18:17:51.909891"]]
49389
+ SQL (0.1ms) INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 25412.0], ["qty", 1], ["itemable_id", 2], ["itemable_type", "Item"], ["order_id", "21"], ["created_at", "2016-03-14 18:17:51.910893"], ["updated_at", "2016-03-14 18:17:51.910893"]]
49390
+  (60.7ms) commit transaction
49391
+ Redirected to http://localhost:3000/simple_cart/orders/21/checkout
49392
+ Completed 302 Found in 77ms (ActiveRecord: 62.0ms)
49393
+
49394
+
49395
+ Started GET "/simple_cart/orders/21/checkout" for 127.0.0.1 at 2016-03-14 20:17:51 +0200
49396
+ Processing by SimpleCart::CheckoutController#index as HTML
49397
+ Parameters: {"order_id"=>"21"}
49398
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 21]]
49399
+ Redirected to http://localhost:3000/simple_cart/orders/21/checkout/billing
49400
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
49401
+
49402
+
49403
+ Started GET "/simple_cart/orders/21/checkout/billing" for 127.0.0.1 at 2016-03-14 20:17:51 +0200
49404
+ Processing by SimpleCart::CheckoutController#show as HTML
49405
+ Parameters: {"order_id"=>"21", "id"=>"billing"}
49406
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 21]]
49407
+ BillingAddress Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 21]]
49408
+ ShippingAddress Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 21]]
49409
+ CreditCard Load (0.1ms) SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 21]]
49410
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.1ms)
49411
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (10.4ms)
49412
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (15.6ms)
49413
+ Completed 200 OK in 40ms (Views: 33.6ms | ActiveRecord: 0.4ms)
49414
+
49415
+
49416
+ Started PATCH "/simple_cart/orders/21/checkout/billing" for 127.0.0.1 at 2016-03-14 20:21:36 +0200
49417
+ Processing by SimpleCart::CheckoutController#update as HTML
49418
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"DFExv7ZJV5gvh23axgTtlore2oMLm+PkLDsSF4zuQ5c4+4ae+VlDxDDMdTQBM2Ml54M5vhsdcXBlWPF7RohihA==", "order"=>{"billing_address_attributes"=>{"firstname"=>"", "lastname"=>"", "address"=>"", "zipcode"=>"", "city"=>"", "phone"=>"", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"21", "id"=>"billing"}
49419
+ Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 21]]
49420
+  (0.1ms) begin transaction
49421
+ BillingAddress Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 21]]
49422
+  (0.1ms) rollback transaction
49423
+  (0.0ms) begin transaction
49424
+  (0.1ms) rollback transaction
49425
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms)
49426
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (13.0ms)
49427
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (21.2ms)
49428
+ Completed 200 OK in 50ms (Views: 36.3ms | ActiveRecord: 0.6ms)
49429
+
49430
+
49431
+ Started PATCH "/simple_cart/orders/21/checkout/billing" for 127.0.0.1 at 2016-03-14 20:21:41 +0200
49432
+ Processing by SimpleCart::CheckoutController#update as HTML
49433
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"uqffxpUrO9Z1M3ND8kmmKepLQZ5EAu7Pp92eS1/iaimODWjn2jsvimp4a601fiiahxaio1SEfFvuvn0nlYRLOg==", "order"=>{"billing_address_attributes"=>{"firstname"=>"fdsg", "lastname"=>"sdg", "address"=>"xcbxcb", "zipcode"=>"bxcb", "city"=>"xcbxcb", "phone"=>"cxbcx", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"21", "id"=>"billing"}
49434
+ Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 21]]
49435
+  (0.1ms) begin transaction
49436
+ BillingAddress Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 21]]
49437
+ SQL (0.7ms) INSERT INTO "addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "BillingAddress"], ["firstname", "fdsg"], ["lastname", "sdg"], ["address", "xcbxcb"], ["zipcode", "bxcb"], ["city", "xcbxcb"], ["phone", "cxbcx"], ["country", "Afghanistan"], ["order_id", 21], ["created_at", "2016-03-14 18:21:41.896149"], ["updated_at", "2016-03-14 18:21:41.896149"]]
49438
+  (244.7ms) commit transaction
49439
+ ShippingAddress Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 21]]
49440
+  (0.1ms) begin transaction
49441
+ SQL (0.2ms) INSERT INTO "addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "ShippingAddress"], ["order_id", 21], ["address", "xcbxcb"], ["zipcode", "bxcb"], ["city", "xcbxcb"], ["phone", "cxbcx"], ["country", "Afghanistan"], ["created_at", "2016-03-14 18:21:41.896149"], ["updated_at", "2016-03-14 18:21:41.896149"], ["firstname", "fdsg"], ["lastname", "sdg"]]
49442
+  (47.9ms) commit transaction
49443
+ Redirected to http://localhost:3000/simple_cart/orders/21/checkout/delivery
49444
+ Completed 302 Found in 306ms (ActiveRecord: 293.9ms)
49445
+
49446
+
49447
+ Started GET "/simple_cart/orders/21/checkout/delivery" for 127.0.0.1 at 2016-03-14 20:21:42 +0200
49448
+ Processing by SimpleCart::CheckoutController#show as HTML
49449
+ Parameters: {"order_id"=>"21", "id"=>"delivery"}
49450
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 21]]
49451
+ ShippingAddress Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 21]]
49452
+ BillingAddress Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 21]]
49453
+ CreditCard Load (0.1ms) SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 21]]
49454
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
49455
+ Delivery Load (0.2ms) SELECT "deliveries".* FROM "deliveries"
49456
+ Delivery Load (0.2ms) SELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1
49457
+ CACHE (0.0ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "21"]]
49458
+ CACHE (0.0ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "21"]]
49459
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.2ms)
49460
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (9.0ms)
49461
+ Completed 200 OK in 35ms (Views: 28.9ms | ActiveRecord: 1.0ms)
49462
+
49463
+
49464
+ Started PATCH "/simple_cart/orders/21/checkout/delivery" for 127.0.0.1 at 2016-03-14 20:21:44 +0200
49465
+ Processing by SimpleCart::CheckoutController#update as HTML
49466
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"i+tEWszwNlCG6NBms28DKXMa/jYP2HnVAsRyoLbHeMm/QfN7g+AiDJmjyIh0WI2aHkcdCx9e60FLp5HMfKFZ2g==", "order"=>{"delivery_id"=>"1"}, "commit"=>"Continue", "order_id"=>"21", "id"=>"delivery"}
49467
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 21]]
49468
+ Delivery Load (0.2ms) SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
49469
+  (0.1ms) begin transaction
49470
+ SQL (0.2ms) UPDATE "orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "orders"."id" = ? [["delivery_id", 1], ["updated_at", "2016-03-14 18:21:44.236222"], ["id", 21]]
49471
+  (229.5ms) commit transaction
49472
+ Redirected to http://localhost:3000/simple_cart/orders/21/checkout/payment
49473
+ Completed 302 Found in 237ms (ActiveRecord: 230.1ms)
49474
+
49475
+
49476
+ Started GET "/simple_cart/orders/21/checkout/payment" for 127.0.0.1 at 2016-03-14 20:21:44 +0200
49477
+ Processing by SimpleCart::CheckoutController#show as HTML
49478
+ Parameters: {"order_id"=>"21", "id"=>"payment"}
49479
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 21]]
49480
+ Delivery Load (0.1ms) SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
49481
+ BillingAddress Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 21]]
49482
+ ShippingAddress Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 21]]
49483
+ CreditCard Load (0.1ms) SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 21]]
49484
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.1ms)
49485
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (14.9ms)
49486
+ Completed 200 OK in 37ms (Views: 30.4ms | ActiveRecord: 0.6ms)
49487
+
49488
+
49489
+ Started PATCH "/simple_cart/orders/21/checkout/payment" for 127.0.0.1 at 2016-03-14 20:21:54 +0200
49490
+ Processing by SimpleCart::CheckoutController#update as HTML
49491
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"DF2X14JQ8dav8eE7nboZMKVamvzgqz7LSIwy+G4PehQ49yD2zUDlirC6+dVajZeDyAd5wfAtrF8B79GUpGlbBw==", "order"=>{"credit_card_attributes"=>{"number"=>"4444222255552222", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"123", "firstname"=>"fds", "lastname"=>"gsd"}}, "commit"=>"Continue", "order_id"=>"21", "id"=>"payment"}
49492
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 21]]
49493
+  (0.1ms) begin transaction
49494
+ CreditCard Load (0.1ms) SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 21]]
49495
+ SQL (0.5ms) INSERT INTO "credit_cards" ("number", "expiration_month", "expiration_year", "cvv", "firstname", "lastname", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "4444222255552222"], ["expiration_month", "01"], ["expiration_year", "2017"], ["cvv", "123"], ["firstname", "fds"], ["lastname", "gsd"], ["order_id", 21], ["created_at", "2016-03-14 18:21:54.449370"], ["updated_at", "2016-03-14 18:21:54.449370"]]
49496
+  (74.5ms) commit transaction
49497
+  (0.1ms) begin transaction
49498
+  (0.1ms) commit transaction
49499
+ Redirected to http://localhost:3000/simple_cart/orders/21/checkout/confirm
49500
+ Completed 302 Found in 85ms (ActiveRecord: 75.4ms)
49501
+
49502
+
49503
+ Started GET "/simple_cart/orders/21/checkout/confirm" for 127.0.0.1 at 2016-03-14 20:21:54 +0200
49504
+ Processing by SimpleCart::CheckoutController#show as HTML
49505
+ Parameters: {"order_id"=>"21", "id"=>"confirm"}
49506
+ Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 21]]
49507
+ CreditCard Load (0.1ms) SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 21]]
49508
+ BillingAddress Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 21]]
49509
+ ShippingAddress Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 21]]
49510
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms)
49511
+ Delivery Load (0.1ms) SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
49512
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (7.1ms)
49513
+ OrderItem Exists (0.2ms) SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "21"]]
49514
+ OrderItem Load (0.1ms) SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "21"]]
49515
+ Bicycle Load (0.1ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
49516
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
49517
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
49518
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
49519
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (29.8ms)
49520
+ Completed 200 OK in 52ms (Views: 46.2ms | ActiveRecord: 1.2ms)
49521
+
49522
+
49523
+ Started PATCH "/simple_cart/orders/21" for 127.0.0.1 at 2016-03-14 20:22:08 +0200
49524
+ Processing by SimpleCart::OrdersController#update as HTML
49525
+ Parameters: {"authenticity_token"=>"eZj0YhDHnyHOTLL000Bgo6W8J9CILNaa17gveXTRUYFNMkNDX9eLfdEHqhoUd+4QyOHE7ZiqRA6e28wVvrdwkg==", "id"=>"21"}
49526
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 21]]
49527
+  (0.1ms) begin transaction
49528
+ SQL (0.2ms) UPDATE "orders" SET "aasm_state" = ?, "updated_at" = ? WHERE "orders"."id" = ? [["aasm_state", "in_queue"], ["updated_at", "2016-03-14 18:22:08.921195"], ["id", 21]]
49529
+  (52.9ms) commit transaction
49530
+ Delivery Load (0.1ms) SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
49531
+  (0.1ms) begin transaction
49532
+ SQL (0.2ms) UPDATE "orders" SET "total_price" = ?, "updated_at" = ? WHERE "orders"."id" = ? [["total_price", 25501.0], ["updated_at", "2016-03-14 18:22:08.980580"], ["id", 21]]
49533
+  (103.0ms) commit transaction
49534
+ Redirected to http://localhost:3000/simple_cart/orders/21
49535
+ Completed 302 Found in 167ms (ActiveRecord: 156.7ms)
49536
+
49537
+
49538
+ Started GET "/simple_cart/orders/21" for 127.0.0.1 at 2016-03-14 20:22:09 +0200
49539
+ Processing by SimpleCart::OrdersController#show as HTML
49540
+ Parameters: {"id"=>"21"}
49541
+ Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 21]]
49542
+ BillingAddress Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 21]]
49543
+ ShippingAddress Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 21]]
49544
+ Delivery Load (0.1ms) SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
49545
+ CreditCard Load (0.1ms) SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 21]]
49546
+ OrderItem Exists (0.1ms) SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "21"]]
49547
+ OrderItem Load (0.1ms) SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "21"]]
49548
+ Bicycle Load (0.1ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
49549
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
49550
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
49551
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
49552
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (20.2ms)
49553
+ Completed 200 OK in 48ms (Views: 45.2ms | ActiveRecord: 1.1ms)
49554
+
49555
+
49556
+ Started GET "/simple_cart/orders" for 127.0.0.1 at 2016-03-14 20:22:26 +0200
49557
+ Processing by SimpleCart::OrdersController#index as HTML
49558
+  (0.1ms) SELECT COUNT(*) FROM "orders"
49559
+  (0.1ms) SELECT COUNT(*) FROM "orders" WHERE "orders"."aasm_state" = ? [["aasm_state", "in_progress"]]
49560
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."aasm_state" = ? ORDER BY "orders"."id" DESC [["aasm_state", "in_progress"]]
49561
+ OrderItem Exists (0.1ms) SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "20"]]
49562
+ OrderItem Load (0.1ms) SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "20"]]
49563
+ Bicycle Load (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
49564
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
49565
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
49566
+ OrderItem Exists (0.1ms) SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "19"]]
49567
+ OrderItem Load (0.1ms) SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "19"]]
49568
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
49569
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
49570
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
49571
+ OrderItem Exists (0.1ms) SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "16"]]
49572
+ OrderItem Load (0.1ms) SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "16"]]
49573
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
49574
+ OrderItem Exists (0.1ms) SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "15"]]
49575
+ OrderItem Load (0.1ms) SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
49576
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
49577
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
49578
+  (0.1ms) SELECT COUNT(*) FROM "orders" WHERE "orders"."aasm_state" = ? [["aasm_state", "in_queue"]]
49579
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."aasm_state" = ? ORDER BY "orders"."id" DESC [["aasm_state", "in_queue"]]
49580
+  (0.1ms) SELECT COUNT(*) FROM "orders" WHERE "orders"."aasm_state" = ? [["aasm_state", "delivered"]]
49581
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/index.html.haml within layouts/simple_cart/application (26.1ms)
49582
+ Completed 200 OK in 43ms (Views: 40.0ms | ActiveRecord: 1.5ms)
49583
+
49584
+
49585
+ Started GET "/simple_cart/orders/20/checkout" for 127.0.0.1 at 2016-03-14 20:22:51 +0200
49586
+ Processing by SimpleCart::CheckoutController#index as HTML
49587
+ Parameters: {"order_id"=>"20"}
49588
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 20]]
49589
+ Redirected to http://localhost:3000/simple_cart/orders/20/checkout/billing
49590
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
49591
+
49592
+
49593
+ Started GET "/simple_cart/orders/20/checkout/billing" for 127.0.0.1 at 2016-03-14 20:22:51 +0200
49594
+ Processing by SimpleCart::CheckoutController#show as HTML
49595
+ Parameters: {"order_id"=>"20", "id"=>"billing"}
49596
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 20]]
49597
+ BillingAddress Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 20]]
49598
+ ShippingAddress Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 20]]
49599
+ CreditCard Load (0.1ms) SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 20]]
49600
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.6ms)
49601
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (9.4ms)
49602
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (18.7ms)
49603
+ Completed 200 OK in 39ms (Views: 33.9ms | ActiveRecord: 0.3ms)
49604
+
49605
+
49606
+ Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 20:27:29 +0200
49607
+ Processing by SimpleCart::CartsController#show as HTML
49608
+ Bicycle Load (0.1ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
49609
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
49610
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
49611
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
49612
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49613
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49614
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49615
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
49616
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49617
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49618
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49619
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
49620
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (26.0ms)
49621
+ Completed 200 OK in 45ms (Views: 42.5ms | ActiveRecord: 1.1ms)
49622
+
49623
+
49624
+ Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 20:27:29 +0200
49625
+ Processing by SimpleCart::CartsController#show as HTML
49626
+ Bicycle Load (0.1ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
49627
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
49628
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
49629
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
49630
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49631
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49632
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49633
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
49634
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49635
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49636
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49637
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
49638
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (26.6ms)
49639
+ Completed 200 OK in 51ms (Views: 50.3ms | ActiveRecord: 0.4ms)
49640
+
49641
+
49642
+ Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 20:27:31 +0200
49643
+ Processing by SimpleCart::CartsController#checkout as HTML
49644
+ Parameters: {"authenticity_token"=>"Vpa1yuZeflC5u/LdPW8GUSGFr3TvwWhh1eYlNM/2enRiPALrqU5qDKbw6jP6WIjiTNhMSf9H+vWchcZYBZBbZw=="}
49645
+ Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.0ms)
49646
+
49647
+ LoadError (Unable to autoload constant Order, expected /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/order.rb to define it):
49648
+ activesupport (4.2.5.2) lib/active_support/dependencies.rb:495:in `load_missing_constant'
49649
+ activesupport (4.2.5.2) lib/active_support/dependencies.rb:184:in `const_missing'
49650
+ activesupport (4.2.5.2) lib/active_support/dependencies.rb:526:in `load_missing_constant'
49651
+ activesupport (4.2.5.2) lib/active_support/dependencies.rb:184:in `const_missing'
49652
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:39:in `build_order'
49653
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:9:in `checkout'
49654
+ actionpack (4.2.5.2) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
49655
+ actionpack (4.2.5.2) lib/abstract_controller/base.rb:198:in `process_action'
49656
+ actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:10:in `process_action'
49657
+ actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
49658
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call'
49659
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call'
49660
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
49661
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call'
49662
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call'
49663
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:92:in `__run_callbacks__'
49664
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
49665
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
49666
+ actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:19:in `process_action'
49667
+ actionpack (4.2.5.2) lib/action_controller/metal/rescue.rb:29:in `process_action'
49668
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
49669
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument'
49670
+ activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
49671
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument'
49672
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
49673
+ actionpack (4.2.5.2) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
49674
+ activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
49675
+ actionpack (4.2.5.2) lib/abstract_controller/base.rb:137:in `process'
49676
+ actionview (4.2.5.2) lib/action_view/rendering.rb:30:in `process'
49677
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:196:in `dispatch'
49678
+ actionpack (4.2.5.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
49679
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:237:in `block in action'
49680
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `call'
49681
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
49682
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:43:in `serve'
49683
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
49684
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
49685
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
49686
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
49687
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
49688
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `public_send'
49689
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `method_missing'
49690
+ actionpack (4.2.5.2) lib/action_dispatch/routing/mapper.rb:51:in `serve'
49691
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
49692
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
49693
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
49694
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
49695
+ rack (1.6.4) lib/rack/etag.rb:24:in `call'
49696
+ rack (1.6.4) lib/rack/conditionalget.rb:38:in `call'
49697
+ rack (1.6.4) lib/rack/head.rb:13:in `call'
49698
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
49699
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/flash.rb:260:in `call'
49700
+ rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
49701
+ rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
49702
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/cookies.rb:560:in `call'
49703
+ activerecord (4.2.5.2) lib/active_record/query_cache.rb:36:in `call'
49704
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
49705
+ activerecord (4.2.5.2) lib/active_record/migration.rb:377:in `call'
49706
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
49707
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
49708
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
49709
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
49710
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
49711
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/reloader.rb:73:in `call'
49712
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
49713
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
49714
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
49715
+ railties (4.2.5.2) lib/rails/rack/logger.rb:38:in `call_app'
49716
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `block in call'
49717
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
49718
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:26:in `tagged'
49719
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `tagged'
49720
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `call'
49721
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
49722
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
49723
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
49724
+ activesupport (4.2.5.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
49725
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
49726
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/static.rb:116:in `call'
49727
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
49728
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
49729
+ railties (4.2.5.2) lib/rails/application.rb:165:in `call'
49730
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
49731
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
49732
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
49733
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
49734
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
49735
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
49736
+
49737
+
49738
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (8.0ms)
49739
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms)
49740
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
49741
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.8ms)
49742
+
49743
+
49744
+ Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 20:27:54 +0200
49745
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
49746
+ Processing by SimpleCart::CartsController#checkout as HTML
49747
+ Parameters: {"authenticity_token"=>"Vpa1yuZeflC5u/LdPW8GUSGFr3TvwWhh1eYlNM/2enRiPALrqU5qDKbw6jP6WIjiTNhMSf9H+vWchcZYBZBbZw=="}
49748
+ Completed 500 Internal Server Error in 26ms (ActiveRecord: 0.0ms)
49749
+
49750
+ LoadError (Unable to autoload constant Order, expected /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/order.rb to define it):
49751
+ activesupport (4.2.5.2) lib/active_support/dependencies.rb:495:in `load_missing_constant'
49752
+ activesupport (4.2.5.2) lib/active_support/dependencies.rb:184:in `const_missing'
49753
+ activesupport (4.2.5.2) lib/active_support/dependencies.rb:526:in `load_missing_constant'
49754
+ activesupport (4.2.5.2) lib/active_support/dependencies.rb:184:in `const_missing'
49755
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:39:in `build_order'
49756
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:9:in `checkout'
49757
+ actionpack (4.2.5.2) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
49758
+ actionpack (4.2.5.2) lib/abstract_controller/base.rb:198:in `process_action'
49759
+ actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:10:in `process_action'
49760
+ actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
49761
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call'
49762
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call'
49763
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
49764
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call'
49765
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call'
49766
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:92:in `__run_callbacks__'
49767
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
49768
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
49769
+ actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:19:in `process_action'
49770
+ actionpack (4.2.5.2) lib/action_controller/metal/rescue.rb:29:in `process_action'
49771
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
49772
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument'
49773
+ activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
49774
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument'
49775
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
49776
+ actionpack (4.2.5.2) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
49777
+ activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
49778
+ actionpack (4.2.5.2) lib/abstract_controller/base.rb:137:in `process'
49779
+ actionview (4.2.5.2) lib/action_view/rendering.rb:30:in `process'
49780
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:196:in `dispatch'
49781
+ actionpack (4.2.5.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
49782
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:237:in `block in action'
49783
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `call'
49784
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
49785
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:43:in `serve'
49786
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
49787
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
49788
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
49789
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
49790
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
49791
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `public_send'
49792
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `method_missing'
49793
+ actionpack (4.2.5.2) lib/action_dispatch/routing/mapper.rb:51:in `serve'
49794
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
49795
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
49796
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
49797
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
49798
+ rack (1.6.4) lib/rack/etag.rb:24:in `call'
49799
+ rack (1.6.4) lib/rack/conditionalget.rb:38:in `call'
49800
+ rack (1.6.4) lib/rack/head.rb:13:in `call'
49801
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
49802
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/flash.rb:260:in `call'
49803
+ rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
49804
+ rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
49805
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/cookies.rb:560:in `call'
49806
+ activerecord (4.2.5.2) lib/active_record/query_cache.rb:36:in `call'
49807
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
49808
+ activerecord (4.2.5.2) lib/active_record/migration.rb:377:in `call'
49809
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
49810
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
49811
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
49812
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
49813
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
49814
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/reloader.rb:73:in `call'
49815
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
49816
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
49817
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
49818
+ railties (4.2.5.2) lib/rails/rack/logger.rb:38:in `call_app'
49819
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `block in call'
49820
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
49821
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:26:in `tagged'
49822
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `tagged'
49823
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `call'
49824
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
49825
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
49826
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
49827
+ activesupport (4.2.5.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
49828
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
49829
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/static.rb:116:in `call'
49830
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
49831
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
49832
+ railties (4.2.5.2) lib/rails/application.rb:165:in `call'
49833
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
49834
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
49835
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
49836
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
49837
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
49838
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
49839
+
49840
+
49841
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.9ms)
49842
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms)
49843
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)
49844
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (18.1ms)
49845
+
49846
+
49847
+ Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 20:28:24 +0200
49848
+
49849
+ ActionController::RoutingError (No route matches [GET] "/simple_cart/cart/checkout"):
49850
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
49851
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
49852
+ railties (4.2.5.2) lib/rails/rack/logger.rb:38:in `call_app'
49853
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `block in call'
49854
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
49855
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:26:in `tagged'
49856
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `tagged'
49857
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `call'
49858
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
49859
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
49860
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
49861
+ activesupport (4.2.5.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
49862
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
49863
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/static.rb:116:in `call'
49864
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
49865
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
49866
+ railties (4.2.5.2) lib/rails/application.rb:165:in `call'
49867
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
49868
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
49869
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
49870
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
49871
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
49872
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
49873
+
49874
+
49875
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms)
49876
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.2ms)
49877
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
49878
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.2ms)
49879
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms)
49880
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (29.8ms)
49881
+
49882
+
49883
+ Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 20:28:26 +0200
49884
+
49885
+ ActionController::RoutingError (No route matches [GET] "/simple_cart/cart/checkout"):
49886
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
49887
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
49888
+ railties (4.2.5.2) lib/rails/rack/logger.rb:38:in `call_app'
49889
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `block in call'
49890
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
49891
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:26:in `tagged'
49892
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `tagged'
49893
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `call'
49894
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
49895
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
49896
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
49897
+ activesupport (4.2.5.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
49898
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
49899
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/static.rb:116:in `call'
49900
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
49901
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
49902
+ railties (4.2.5.2) lib/rails/application.rb:165:in `call'
49903
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
49904
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
49905
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
49906
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
49907
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
49908
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
49909
+
49910
+
49911
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms)
49912
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.3ms)
49913
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
49914
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.6ms)
49915
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms)
49916
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (29.5ms)
49917
+
49918
+
49919
+ Started GET "/simple_cart/cart/" for 127.0.0.1 at 2016-03-14 20:28:27 +0200
49920
+ Processing by SimpleCart::CartsController#show as HTML
49921
+ Bicycle Load (0.2ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
49922
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
49923
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
49924
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
49925
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49926
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49927
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49928
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
49929
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49930
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49931
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49932
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
49933
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (49.6ms)
49934
+ Completed 200 OK in 256ms (Views: 252.0ms | ActiveRecord: 1.5ms)
49935
+
49936
+
49937
+ Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 20:28:29 +0200
49938
+ Processing by SimpleCart::CartsController#checkout as HTML
49939
+ Parameters: {"authenticity_token"=>"NNccP7a8j2W8ZQ6n8IyIGVdo/vIX9B3zXV0AsdbsOGgAfase+aybOaMuFkk3uwaqOjUdzwdyj2cUPuPdHIoZew=="}
49940
+ Bicycle Load (0.1ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
49941
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
49942
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
49943
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
49944
+ CACHE (0.0ms) SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
49945
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
49946
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
49947
+ CACHE (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
49948
+  (0.1ms) begin transaction
49949
+ SQL (0.3ms) INSERT INTO "orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 25481.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 18:28:29.514395"], ["updated_at", "2016-03-14 18:28:29.514395"]]
49950
+ SQL (0.2ms) INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 22.0], ["qty", 2], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["order_id", "22"], ["created_at", "2016-03-14 18:28:29.516771"], ["updated_at", "2016-03-14 18:28:29.516771"]]
49951
+ SQL (0.1ms) INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 25.0], ["qty", 1], ["itemable_id", 3], ["itemable_type", "Item"], ["order_id", "22"], ["created_at", "2016-03-14 18:28:29.519066"], ["updated_at", "2016-03-14 18:28:29.519066"]]
49952
+ SQL (0.1ms) INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 0.0], ["qty", 3], ["itemable_id", 4], ["itemable_type", "Item"], ["order_id", "22"], ["created_at", "2016-03-14 18:28:29.520542"], ["updated_at", "2016-03-14 18:28:29.520542"]]
49953
+ SQL (0.4ms) INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 25412.0], ["qty", 1], ["itemable_id", 2], ["itemable_type", "Item"], ["order_id", "22"], ["created_at", "2016-03-14 18:28:29.522302"], ["updated_at", "2016-03-14 18:28:29.522302"]]
49954
+  (325.6ms) commit transaction
49955
+ Redirected to http://localhost:3000/simple_cart/orders/22/checkout
49956
+ Completed 302 Found in 404ms (ActiveRecord: 327.5ms)
49957
+
49958
+
49959
+ Started GET "/simple_cart/orders/22/checkout" for 127.0.0.1 at 2016-03-14 20:28:29 +0200
49960
+ Processing by SimpleCart::CheckoutController#index as HTML
49961
+ Parameters: {"order_id"=>"22"}
49962
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.3ms)
49963
+
49964
+ ActiveRecord::StatementInvalid (Could not find table 'simple_cart_orders'):
49965
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:511:in `table_structure'
49966
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:385:in `columns'
49967
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/schema_cache.rb:43:in `columns'
49968
+ activerecord (4.2.5.2) lib/active_record/attributes.rb:93:in `columns'
49969
+ activerecord (4.2.5.2) lib/active_record/attributes.rb:98:in `columns_hash'
49970
+ activerecord (4.2.5.2) lib/active_record/core.rb:135:in `find'
49971
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:46:in `set_order'
49972
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:432:in `block in make_lambda'
49973
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:164:in `call'
49974
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:164:in `block in halting'
49975
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `call'
49976
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `block in call'
49977
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `each'
49978
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `call'
49979
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:92:in `__run_callbacks__'
49980
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
49981
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
49982
+ actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:19:in `process_action'
49983
+ actionpack (4.2.5.2) lib/action_controller/metal/rescue.rb:29:in `process_action'
49984
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
49985
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument'
49986
+ activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
49987
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument'
49988
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
49989
+ actionpack (4.2.5.2) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
49990
+ activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
49991
+ actionpack (4.2.5.2) lib/abstract_controller/base.rb:137:in `process'
49992
+ actionview (4.2.5.2) lib/action_view/rendering.rb:30:in `process'
49993
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:196:in `dispatch'
49994
+ actionpack (4.2.5.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
49995
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:237:in `block in action'
49996
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `call'
49997
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
49998
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:43:in `serve'
49999
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
50000
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
50001
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
50002
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
50003
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
50004
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `public_send'
50005
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `method_missing'
50006
+ actionpack (4.2.5.2) lib/action_dispatch/routing/mapper.rb:51:in `serve'
50007
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
50008
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
50009
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
50010
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
50011
+ rack (1.6.4) lib/rack/etag.rb:24:in `call'
50012
+ rack (1.6.4) lib/rack/conditionalget.rb:25:in `call'
50013
+ rack (1.6.4) lib/rack/head.rb:13:in `call'
50014
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
50015
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/flash.rb:260:in `call'
50016
+ rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
50017
+ rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
50018
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/cookies.rb:560:in `call'
50019
+ activerecord (4.2.5.2) lib/active_record/query_cache.rb:36:in `call'
50020
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
50021
+ activerecord (4.2.5.2) lib/active_record/migration.rb:377:in `call'
50022
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
50023
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
50024
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
50025
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
50026
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
50027
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/reloader.rb:73:in `call'
50028
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
50029
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
50030
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
50031
+ railties (4.2.5.2) lib/rails/rack/logger.rb:38:in `call_app'
50032
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `block in call'
50033
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
50034
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:26:in `tagged'
50035
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `tagged'
50036
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `call'
50037
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
50038
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
50039
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
50040
+ activesupport (4.2.5.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
50041
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
50042
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/static.rb:116:in `call'
50043
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
50044
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
50045
+ railties (4.2.5.2) lib/rails/application.rb:165:in `call'
50046
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
50047
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
50048
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
50049
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
50050
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
50051
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
50052
+
50053
+
50054
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.6ms)
50055
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.1ms)
50056
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)
50057
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (17.2ms)
50058
+
50059
+
50060
+ Started GET "/simple_cart/orders/22/checkout" for 127.0.0.1 at 2016-03-14 20:28:40 +0200
50061
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
50062
+ Processing by SimpleCart::CheckoutController#index as HTML
50063
+ Parameters: {"order_id"=>"22"}
50064
+ Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 22]]
50065
+ Redirected to http://localhost:3000/simple_cart/orders/22/checkout/billing
50066
+ Completed 302 Found in 38ms (ActiveRecord: 0.5ms)
50067
+
50068
+
50069
+ Started GET "/simple_cart/orders/22/checkout/billing" for 127.0.0.1 at 2016-03-14 20:28:40 +0200
50070
+ Processing by SimpleCart::CheckoutController#show as HTML
50071
+ Parameters: {"order_id"=>"22", "id"=>"billing"}
50072
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 22]]
50073
+ BillingAddress Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 22]]
50074
+ ShippingAddress Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 22]]
50075
+ CreditCard Load (0.1ms) SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 22]]
50076
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.6ms)
50077
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (17.5ms)
50078
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (31.1ms)
50079
+ Completed 200 OK in 282ms (Views: 238.1ms | ActiveRecord: 1.2ms)
50080
+
50081
+
50082
+ Started GET "/simple_cart/orders/22/checkout/billing" for 127.0.0.1 at 2016-03-14 20:30:31 +0200
50083
+ Processing by SimpleCart::CheckoutController#show as HTML
50084
+ Parameters: {"order_id"=>"22", "id"=>"billing"}
50085
+ Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.0ms)
50086
+
50087
+ LoadError (Unable to autoload constant Order, expected /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/order.rb to define it):
50088
+ activesupport (4.2.5.2) lib/active_support/dependencies.rb:495:in `load_missing_constant'
50089
+ activesupport (4.2.5.2) lib/active_support/dependencies.rb:184:in `const_missing'
50090
+ activesupport (4.2.5.2) lib/active_support/dependencies.rb:526:in `load_missing_constant'
50091
+ activesupport (4.2.5.2) lib/active_support/dependencies.rb:184:in `const_missing'
50092
+ activesupport (4.2.5.2) lib/active_support/dependencies.rb:526:in `load_missing_constant'
50093
+ activesupport (4.2.5.2) lib/active_support/dependencies.rb:184:in `const_missing'
50094
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:46:in `set_order'
50095
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:432:in `block in make_lambda'
50096
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:164:in `call'
50097
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:164:in `block in halting'
50098
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `call'
50099
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `block in call'
50100
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `each'
50101
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `call'
50102
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:92:in `__run_callbacks__'
50103
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
50104
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
50105
+ actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:19:in `process_action'
50106
+ actionpack (4.2.5.2) lib/action_controller/metal/rescue.rb:29:in `process_action'
50107
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
50108
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument'
50109
+ activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
50110
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument'
50111
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
50112
+ actionpack (4.2.5.2) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
50113
+ activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
50114
+ actionpack (4.2.5.2) lib/abstract_controller/base.rb:137:in `process'
50115
+ actionview (4.2.5.2) lib/action_view/rendering.rb:30:in `process'
50116
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:196:in `dispatch'
50117
+ actionpack (4.2.5.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
50118
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:237:in `block in action'
50119
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `call'
50120
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
50121
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:43:in `serve'
50122
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
50123
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
50124
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
50125
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
50126
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
50127
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `public_send'
50128
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `method_missing'
50129
+ actionpack (4.2.5.2) lib/action_dispatch/routing/mapper.rb:51:in `serve'
50130
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
50131
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
50132
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
50133
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
50134
+ rack (1.6.4) lib/rack/etag.rb:24:in `call'
50135
+ rack (1.6.4) lib/rack/conditionalget.rb:25:in `call'
50136
+ rack (1.6.4) lib/rack/head.rb:13:in `call'
50137
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
50138
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/flash.rb:260:in `call'
50139
+ rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
50140
+ rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
50141
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/cookies.rb:560:in `call'
50142
+ activerecord (4.2.5.2) lib/active_record/query_cache.rb:36:in `call'
50143
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
50144
+ activerecord (4.2.5.2) lib/active_record/migration.rb:377:in `call'
50145
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
50146
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
50147
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
50148
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
50149
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
50150
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/reloader.rb:73:in `call'
50151
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
50152
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
50153
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
50154
+ railties (4.2.5.2) lib/rails/rack/logger.rb:38:in `call_app'
50155
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `block in call'
50156
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
50157
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:26:in `tagged'
50158
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `tagged'
50159
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `call'
50160
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
50161
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
50162
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
50163
+ activesupport (4.2.5.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
50164
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
50165
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/static.rb:116:in `call'
50166
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
50167
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
50168
+ railties (4.2.5.2) lib/rails/application.rb:165:in `call'
50169
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
50170
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
50171
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
50172
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
50173
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
50174
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
50175
+
50176
+
50177
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.5ms)
50178
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.1ms)
50179
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)
50180
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (17.2ms)
50181
+
50182
+
50183
+ Started GET "/simple_cart/orders/22/checkout/billing" for 127.0.0.1 at 2016-03-14 20:31:31 +0200
50184
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
50185
+ Processing by SimpleCart::CheckoutController#show as HTML
50186
+ Parameters: {"order_id"=>"22", "id"=>"billing"}
50187
+ Completed 500 Internal Server Error in 26ms (ActiveRecord: 0.3ms)
50188
+
50189
+ ActiveRecord::StatementInvalid (Could not find table 'simple_cart_orders'):
50190
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:511:in `table_structure'
50191
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:385:in `columns'
50192
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/schema_cache.rb:43:in `columns'
50193
+ activerecord (4.2.5.2) lib/active_record/attributes.rb:93:in `columns'
50194
+ activerecord (4.2.5.2) lib/active_record/attributes.rb:98:in `columns_hash'
50195
+ activerecord (4.2.5.2) lib/active_record/core.rb:135:in `find'
50196
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:46:in `set_order'
50197
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:432:in `block in make_lambda'
50198
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:164:in `call'
50199
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:164:in `block in halting'
50200
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `call'
50201
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `block in call'
50202
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `each'
50203
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `call'
50204
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:92:in `__run_callbacks__'
50205
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
50206
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
50207
+ actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:19:in `process_action'
50208
+ actionpack (4.2.5.2) lib/action_controller/metal/rescue.rb:29:in `process_action'
50209
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
50210
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument'
50211
+ activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
50212
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument'
50213
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
50214
+ actionpack (4.2.5.2) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
50215
+ activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
50216
+ actionpack (4.2.5.2) lib/abstract_controller/base.rb:137:in `process'
50217
+ actionview (4.2.5.2) lib/action_view/rendering.rb:30:in `process'
50218
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:196:in `dispatch'
50219
+ actionpack (4.2.5.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
50220
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:237:in `block in action'
50221
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `call'
50222
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
50223
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:43:in `serve'
50224
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
50225
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
50226
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
50227
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
50228
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
50229
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `public_send'
50230
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `method_missing'
50231
+ actionpack (4.2.5.2) lib/action_dispatch/routing/mapper.rb:51:in `serve'
50232
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
50233
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
50234
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
50235
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
50236
+ rack (1.6.4) lib/rack/etag.rb:24:in `call'
50237
+ rack (1.6.4) lib/rack/conditionalget.rb:25:in `call'
50238
+ rack (1.6.4) lib/rack/head.rb:13:in `call'
50239
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
50240
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/flash.rb:260:in `call'
50241
+ rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
50242
+ rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
50243
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/cookies.rb:560:in `call'
50244
+ activerecord (4.2.5.2) lib/active_record/query_cache.rb:36:in `call'
50245
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
50246
+ activerecord (4.2.5.2) lib/active_record/migration.rb:377:in `call'
50247
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
50248
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
50249
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
50250
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
50251
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
50252
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/reloader.rb:73:in `call'
50253
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
50254
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
50255
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
50256
+ railties (4.2.5.2) lib/rails/rack/logger.rb:38:in `call_app'
50257
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `block in call'
50258
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
50259
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:26:in `tagged'
50260
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `tagged'
50261
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `call'
50262
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
50263
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
50264
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
50265
+ activesupport (4.2.5.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
50266
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
50267
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/static.rb:116:in `call'
50268
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
50269
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
50270
+ railties (4.2.5.2) lib/rails/application.rb:165:in `call'
50271
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
50272
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
50273
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
50274
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
50275
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
50276
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
50277
+
50278
+
50279
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.5ms)
50280
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.1ms)
50281
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms)
50282
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (18.0ms)
50283
+
50284
+
50285
+ Started GET "/simple_cart/orders/22/checkout/" for 127.0.0.1 at 2016-03-14 20:31:39 +0200
50286
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
50287
+ Processing by SimpleCart::CheckoutController#index as HTML
50288
+ Parameters: {"order_id"=>"22"}
50289
+ Completed 500 Internal Server Error in 33ms (ActiveRecord: 0.3ms)
50290
+
50291
+ ActiveRecord::StatementInvalid (Could not find table 'simple_cart_orders'):
50292
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:511:in `table_structure'
50293
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:385:in `columns'
50294
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/schema_cache.rb:43:in `columns'
50295
+ activerecord (4.2.5.2) lib/active_record/attributes.rb:93:in `columns'
50296
+ activerecord (4.2.5.2) lib/active_record/attributes.rb:98:in `columns_hash'
50297
+ activerecord (4.2.5.2) lib/active_record/core.rb:135:in `find'
50298
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:46:in `set_order'
50299
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:432:in `block in make_lambda'
50300
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:164:in `call'
50301
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:164:in `block in halting'
50302
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `call'
50303
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `block in call'
50304
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `each'
50305
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `call'
50306
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:92:in `__run_callbacks__'
50307
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
50308
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
50309
+ actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:19:in `process_action'
50310
+ actionpack (4.2.5.2) lib/action_controller/metal/rescue.rb:29:in `process_action'
50311
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
50312
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument'
50313
+ activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
50314
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument'
50315
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
50316
+ actionpack (4.2.5.2) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
50317
+ activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
50318
+ actionpack (4.2.5.2) lib/abstract_controller/base.rb:137:in `process'
50319
+ actionview (4.2.5.2) lib/action_view/rendering.rb:30:in `process'
50320
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:196:in `dispatch'
50321
+ actionpack (4.2.5.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
50322
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:237:in `block in action'
50323
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `call'
50324
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
50325
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:43:in `serve'
50326
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
50327
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
50328
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
50329
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
50330
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
50331
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `public_send'
50332
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `method_missing'
50333
+ actionpack (4.2.5.2) lib/action_dispatch/routing/mapper.rb:51:in `serve'
50334
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
50335
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
50336
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
50337
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
50338
+ rack (1.6.4) lib/rack/etag.rb:24:in `call'
50339
+ rack (1.6.4) lib/rack/conditionalget.rb:25:in `call'
50340
+ rack (1.6.4) lib/rack/head.rb:13:in `call'
50341
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
50342
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/flash.rb:260:in `call'
50343
+ rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
50344
+ rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
50345
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/cookies.rb:560:in `call'
50346
+ activerecord (4.2.5.2) lib/active_record/query_cache.rb:36:in `call'
50347
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
50348
+ activerecord (4.2.5.2) lib/active_record/migration.rb:377:in `call'
50349
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
50350
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
50351
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
50352
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
50353
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
50354
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/reloader.rb:73:in `call'
50355
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
50356
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
50357
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
50358
+ railties (4.2.5.2) lib/rails/rack/logger.rb:38:in `call_app'
50359
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `block in call'
50360
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
50361
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:26:in `tagged'
50362
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `tagged'
50363
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `call'
50364
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
50365
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
50366
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
50367
+ activesupport (4.2.5.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
50368
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
50369
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/static.rb:116:in `call'
50370
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
50371
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
50372
+ railties (4.2.5.2) lib/rails/application.rb:165:in `call'
50373
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
50374
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
50375
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
50376
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
50377
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
50378
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
50379
+
50380
+
50381
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.1ms)
50382
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms)
50383
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)
50384
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.2ms)
50385
+
50386
+
50387
+ Started GET "/simple_cart/orders/22/checkout/" for 127.0.0.1 at 2016-03-14 20:32:21 +0200
50388
+ Processing by SimpleCart::CheckoutController#index as HTML
50389
+ Parameters: {"order_id"=>"22"}
50390
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)
50391
+
50392
+ ActiveRecord::StatementInvalid (Could not find table 'simple_cart_orders'):
50393
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:511:in `table_structure'
50394
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:385:in `columns'
50395
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/schema_cache.rb:43:in `columns'
50396
+ activerecord (4.2.5.2) lib/active_record/attributes.rb:93:in `columns'
50397
+ activerecord (4.2.5.2) lib/active_record/attributes.rb:98:in `columns_hash'
50398
+ activerecord (4.2.5.2) lib/active_record/core.rb:135:in `find'
50399
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:46:in `set_order'
50400
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:432:in `block in make_lambda'
50401
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:164:in `call'
50402
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:164:in `block in halting'
50403
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `call'
50404
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `block in call'
50405
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `each'
50406
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `call'
50407
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:92:in `__run_callbacks__'
50408
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
50409
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
50410
+ actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:19:in `process_action'
50411
+ actionpack (4.2.5.2) lib/action_controller/metal/rescue.rb:29:in `process_action'
50412
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
50413
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument'
50414
+ activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
50415
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument'
50416
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
50417
+ actionpack (4.2.5.2) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
50418
+ activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
50419
+ actionpack (4.2.5.2) lib/abstract_controller/base.rb:137:in `process'
50420
+ actionview (4.2.5.2) lib/action_view/rendering.rb:30:in `process'
50421
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:196:in `dispatch'
50422
+ actionpack (4.2.5.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
50423
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:237:in `block in action'
50424
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `call'
50425
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
50426
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:43:in `serve'
50427
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
50428
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
50429
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
50430
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
50431
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
50432
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `public_send'
50433
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `method_missing'
50434
+ actionpack (4.2.5.2) lib/action_dispatch/routing/mapper.rb:51:in `serve'
50435
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
50436
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
50437
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
50438
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
50439
+ rack (1.6.4) lib/rack/etag.rb:24:in `call'
50440
+ rack (1.6.4) lib/rack/conditionalget.rb:25:in `call'
50441
+ rack (1.6.4) lib/rack/head.rb:13:in `call'
50442
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
50443
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/flash.rb:260:in `call'
50444
+ rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
50445
+ rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
50446
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/cookies.rb:560:in `call'
50447
+ activerecord (4.2.5.2) lib/active_record/query_cache.rb:36:in `call'
50448
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
50449
+ activerecord (4.2.5.2) lib/active_record/migration.rb:377:in `call'
50450
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
50451
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
50452
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
50453
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
50454
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
50455
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/reloader.rb:73:in `call'
50456
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
50457
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
50458
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
50459
+ railties (4.2.5.2) lib/rails/rack/logger.rb:38:in `call_app'
50460
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `block in call'
50461
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
50462
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:26:in `tagged'
50463
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `tagged'
50464
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `call'
50465
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
50466
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
50467
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
50468
+ activesupport (4.2.5.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
50469
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
50470
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/static.rb:116:in `call'
50471
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
50472
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
50473
+ railties (4.2.5.2) lib/rails/application.rb:165:in `call'
50474
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
50475
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
50476
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
50477
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
50478
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
50479
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
50480
+
50481
+
50482
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.7ms)
50483
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms)
50484
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms)
50485
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (16.3ms)
50486
+  (68.9ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" varchar, "zipcode" varchar, "city" varchar, "phone" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "order_id" integer, "firstname" varchar, "lastname" varchar, "type" varchar) 
50487
+  (0.1ms) select sqlite_version(*)
50488
+  (64.9ms) CREATE INDEX "index_addresses_on_order_id" ON "addresses" ("order_id")
50489
+  (51.2ms) CREATE TABLE "bicycles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
50490
+  (51.4ms) CREATE TABLE "coupons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar, "discount" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
50491
+  (160.4ms) CREATE TABLE "credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "cvv" varchar, "expiration_year" varchar, "expiration_month" varchar, "firstname" varchar, "lastname" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "user_id" integer, "order_id" integer)
50492
+  (50.7ms) CREATE INDEX "index_credit_cards_on_order_id" ON "credit_cards" ("order_id")
50493
+  (105.7ms) CREATE TABLE "deliveries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "company" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "costs" decimal DEFAULT 0.0)
50494
+  (51.0ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
50495
+  (76.6ms) CREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "itemable_id" integer, "itemable_type" varchar, "order_id" varchar)
50496
+  (161.2ms) CREATE INDEX "index_order_items_on_itemable_id" ON "order_items" ("itemable_id")
50497
+  (0.2ms) SELECT sql
50498
+ FROM sqlite_master
50499
+ WHERE name='index_order_items_on_itemable_id' AND type='index'
50500
+ UNION ALL
50501
+ SELECT sql
50502
+ FROM sqlite_temp_master
50503
+ WHERE name='index_order_items_on_itemable_id' AND type='index'
50504
+
50505
+  (50.1ms) CREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")
50506
+  (68.7ms) CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "total_price" decimal(10,2), "completed_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "delivery_id" integer, "aasm_state" varchar)
50507
+  (195.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
50508
+  (51.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
50509
+  (0.4ms) SELECT version FROM "schema_migrations"
50510
+  (67.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160312151409')
50511
+  (68.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160310231528')
50512
+  (77.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160312142752')
50513
+  (51.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160310215421')
50514
+  (51.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160312124602')
50515
+  (152.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160312124601')
50516
+  (51.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160312145636')
50517
+  (51.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160312151033')
50518
+  (51.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160307150139')
50519
+  (146.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20160312142751')
50520
+  (88.3ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" varchar, "zipcode" varchar, "city" varchar, "phone" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "order_id" integer, "firstname" varchar, "lastname" varchar, "type" varchar)
50521
+  (0.1ms) select sqlite_version(*)
50522
+  (50.6ms) CREATE INDEX "index_addresses_on_order_id" ON "addresses" ("order_id")
50523
+  (68.5ms) CREATE TABLE "bicycles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
50524
+  (159.7ms) CREATE TABLE "coupons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar, "discount" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
50525
+  (50.7ms) CREATE TABLE "credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "cvv" varchar, "expiration_year" varchar, "expiration_month" varchar, "firstname" varchar, "lastname" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "user_id" integer, "order_id" integer) 
50526
+  (68.2ms) CREATE INDEX "index_credit_cards_on_order_id" ON "credit_cards" ("order_id")
50527
+  (59.5ms) CREATE TABLE "deliveries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "company" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "costs" decimal DEFAULT 0.0) 
50528
+  (93.7ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
50529
+  (51.0ms) CREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "itemable_id" integer, "itemable_type" varchar, "order_id" varchar) 
50530
+  (68.0ms) CREATE INDEX "index_order_items_on_itemable_id" ON "order_items" ("itemable_id")
50531
+  (0.1ms)  SELECT sql
50532
+ FROM sqlite_master
50533
+ WHERE name='index_order_items_on_itemable_id' AND type='index'
50534
+ UNION ALL
50535
+ SELECT sql
50536
+ FROM sqlite_temp_master
50537
+ WHERE name='index_order_items_on_itemable_id' AND type='index'
50538
+ 
50539
+  (143.3ms) CREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")
50540
+  (51.9ms) CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "total_price" decimal(10,2), "completed_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "delivery_id" integer, "aasm_state" varchar) 
50541
+  (51.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
50542
+  (76.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
50543
+  (1.1ms) SELECT version FROM "schema_migrations"
50544
+  (119.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160312151409')
50545
+  (51.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160310231528')
50546
+  (202.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160312142752')
50547
+  (51.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160310215421')
50548
+  (51.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160312124602')
50549
+  (51.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160312124601')
50550
+  (186.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160312145636')
50551
+  (51.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160312151033')
50552
+  (68.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160307150139')
50553
+  (51.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160312142751')
50554
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
50555
+  (64.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
50556
+  (0.1ms) select sqlite_version(*)
50557
+  (68.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
50558
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
50559
+ Migrating to CreateItems (20160307150139)
50560
+  (0.1ms) begin transaction
50561
+  (0.5ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
50562
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160307150139"]]
50563
+  (122.9ms) commit transaction
50564
+ Migrating to CreateBicycles (20160310215421)
50565
+  (0.1ms) begin transaction
50566
+  (0.3ms) CREATE TABLE "bicycles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
50567
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160310215421"]]
50568
+  (283.6ms) commit transaction
50569
+ Migrating to CreateCoupons (20160310231528)
50570
+  (0.1ms) begin transaction
50571
+  (0.3ms) CREATE TABLE "coupons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar, "discount" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
50572
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160310231528"]]
50573
+  (82.2ms) commit transaction
50574
+ Migrating to CreateOrderItems (20160312124601)
50575
+  (0.1ms) begin transaction
50576
+  (0.2ms) CREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "itemable_id" integer, "itemable_type" varchar, "order_id" varchar)
50577
+  (0.1ms) CREATE INDEX "index_order_items_on_itemable_id" ON "order_items" ("itemable_id")
50578
+  (0.1ms) SELECT sql
50579
+ FROM sqlite_master
50580
+ WHERE name='index_order_items_on_itemable_id' AND type='index'
50581
+ UNION ALL
50582
+ SELECT sql
50583
+ FROM sqlite_temp_master
50584
+ WHERE name='index_order_items_on_itemable_id' AND type='index'
50585
+
50586
+  (0.1ms) CREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")
50587
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312124601"]]
50588
+  (82.2ms) commit transaction
50589
+ Migrating to CreateOrder (20160312124602)
50590
+  (0.1ms) begin transaction
50591
+  (0.4ms) CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "total_price" decimal(10,2), "completed_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "shipping_id" integer, "aasm_state" varchar) 
50592
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312124602"]]
50593
+  (87.0ms) commit transaction
50594
+ Migrating to CreateOrderItem (20160312142751)
50595
+  (0.1ms) begin transaction
50596
+  (0.4ms) DROP TABLE "order_items"
50597
+  (0.2ms) CREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "itemable_id" integer, "itemable_type" varchar, "order_id" varchar)
50598
+  (0.2ms) CREATE INDEX "index_order_items_on_itemable_id" ON "order_items" ("itemable_id")
50599
+  (0.1ms) SELECT sql
50600
+ FROM sqlite_master
50601
+ WHERE name='index_order_items_on_itemable_id' AND type='index'
50602
+ UNION ALL
50603
+ SELECT sql
50604
+ FROM sqlite_temp_master
50605
+ WHERE name='index_order_items_on_itemable_id' AND type='index'
50606
+
50607
+  (0.2ms) CREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")
50608
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312142751"]]
50609
+  (95.7ms) commit transaction
50610
+ Migrating to Address (20160312142752)
50611
+  (0.1ms) begin transaction
50612
+  (0.2ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" varchar, "zipcode" varchar, "city" varchar, "phone" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "order_id" integer, "firstname" varchar, "lastname" varchar, "type" varchar) 
50613
+  (0.1ms) CREATE INDEX "index_addresses_on_order_id" ON "addresses" ("order_id")
50614
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312142752"]]
50615
+  (86.9ms) commit transaction
50616
+ Migrating to Delivery (20160312145636)
50617
+  (0.1ms) begin transaction
50618
+  (0.2ms) CREATE TABLE "deliveries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "company" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "costs" decimal DEFAULT 0.0)
50619
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312145636"]]
50620
+  (106.8ms) commit transaction
50621
+ Migrating to Fix (20160312151033)
50622
+  (0.1ms) begin transaction
50623
+  (0.5ms) CREATE TEMPORARY TABLE "aorders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "total_price" decimal(10,2), "completed_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "delivery_id" integer, "aasm_state" varchar)
50624
+  (0.1ms) SELECT * FROM "orders"
50625
+  (0.3ms) DROP TABLE "orders"
50626
+  (0.3ms) CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "total_price" decimal(10,2), "completed_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "delivery_id" integer, "aasm_state" varchar) 
50627
+  (0.1ms) SELECT * FROM "aorders"
50628
+  (0.3ms) DROP TABLE "aorders"
50629
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312151033"]]
50630
+  (75.5ms) commit transaction
50631
+ Migrating to AddCreditCard (20160312151409)
50632
+  (0.1ms) begin transaction
50633
+  (0.2ms) CREATE TABLE "credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "cvv" varchar, "expiration_year" varchar, "expiration_month" varchar, "firstname" varchar, "lastname" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "user_id" integer, "order_id" integer) 
50634
+  (0.2ms) CREATE INDEX "index_credit_cards_on_order_id" ON "credit_cards" ("order_id")
50635
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312151409"]]
50636
+  (80.6ms) commit transaction
50637
+ Migrating to CreateSimpleCartOrderItem (20160314184235)
50638
+  (0.1ms) begin transaction
50639
+  (0.4ms) CREATE TABLE "simple_cart_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "itemable_id" integer, "itemable_type" varchar, "order_id" varchar)
50640
+  (0.2ms) CREATE INDEX "index_simple_cart_order_items_on_itemable_id" ON "simple_cart_order_items" ("itemable_id")
50641
+  (0.2ms) SELECT sql
50642
+ FROM sqlite_master
50643
+ WHERE name='index_simple_cart_order_items_on_itemable_id' AND type='index'
50644
+ UNION ALL
50645
+ SELECT sql
50646
+ FROM sqlite_temp_master
50647
+ WHERE name='index_simple_cart_order_items_on_itemable_id' AND type='index'
50648
+
50649
+  (0.2ms) CREATE INDEX "index_simple_cart_order_items_on_order_id" ON "simple_cart_order_items" ("order_id")
50650
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160314184235"]]
50651
+  (94.4ms) commit transaction
50652
+ Migrating to CreateSimpleCartOrder (20160314184236)
50653
+  (0.1ms) begin transaction
50654
+  (0.3ms) CREATE TABLE "simple_cart_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "total_price" decimal(10,2), "completed_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "delivery_id" integer, "aasm_state" varchar) 
50655
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160314184236"]]
50656
+  (80.5ms) commit transaction
50657
+ Migrating to CreateSimpleCartAddress (20160314184237)
50658
+  (0.1ms) begin transaction
50659
+  (0.2ms) CREATE TABLE "simple_cart_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" varchar, "zipcode" varchar, "city" varchar, "phone" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "order_id" integer, "firstname" varchar, "lastname" varchar, "type" varchar) 
50660
+  (0.1ms) CREATE INDEX "index_addresses_on_order_id" ON "simple_cart_addresses" ("order_id")
50661
+  (0.1ms) rollback transaction
50662
+  (62.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
50663
+  (0.1ms) select sqlite_version(*)
50664
+  (67.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
50665
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
50666
+ Migrating to CreateSimpleCartOrderItem (20160314184432)
50667
+  (0.1ms) begin transaction
50668
+  (0.5ms) CREATE TABLE "simple_cart_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "itemable_id" integer, "itemable_type" varchar, "order_id" varchar)
50669
+  (0.2ms) CREATE INDEX "index_simple_cart_order_items_on_itemable_id" ON "simple_cart_order_items" ("itemable_id")
50670
+  (0.1ms) SELECT sql
50671
+ FROM sqlite_master
50672
+ WHERE name='index_simple_cart_order_items_on_itemable_id' AND type='index'
50673
+ UNION ALL
50674
+ SELECT sql
50675
+ FROM sqlite_temp_master
50676
+ WHERE name='index_simple_cart_order_items_on_itemable_id' AND type='index'
50677
+
50678
+  (0.2ms) CREATE INDEX "index_simple_cart_order_items_on_order_id" ON "simple_cart_order_items" ("order_id")
50679
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160314184432"]]
50680
+  (106.2ms) commit transaction
50681
+ Migrating to CreateSimpleCartOrder (20160314184433)
50682
+  (0.1ms) begin transaction
50683
+  (0.2ms) CREATE TABLE "simple_cart_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "total_price" decimal(10,2), "completed_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "delivery_id" integer, "aasm_state" varchar) 
50684
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160314184433"]]
50685
+  (49.9ms) commit transaction
50686
+ Migrating to CreateSimpleCartAddress (20160314184434)
50687
+  (0.1ms) begin transaction
50688
+  (0.4ms) CREATE TABLE "simple_cart_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" varchar, "zipcode" varchar, "city" varchar, "phone" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "order_id" integer, "firstname" varchar, "lastname" varchar, "type" varchar) 
50689
+  (0.2ms) CREATE INDEX "index_simple_cart_addresses_on_order_id" ON "simple_cart_addresses" ("order_id")
50690
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160314184434"]]
50691
+  (110.2ms) commit transaction
50692
+ Migrating to CreateSimpleCartDelivery (20160314184435)
50693
+  (0.1ms) begin transaction
50694
+  (0.3ms) CREATE TABLE "simple_cart_deliveries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "company" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "costs" decimal DEFAULT 0.0)
50695
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160314184435"]]
50696
+  (90.7ms) commit transaction
50697
+ Migrating to AddCreditCard (20160314184436)
50698
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
50699
+ Migrating to CreateSimpleCartCreditCard (20160314184436)
50700
+  (0.1ms) begin transaction
50701
+  (0.2ms) CREATE TABLE "simple_cart_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "cvv" varchar, "expiration_year" varchar, "expiration_month" varchar, "firstname" varchar, "lastname" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "user_id" integer, "order_id" integer) 
50702
+  (0.0ms) select sqlite_version(*)
50703
+  (0.1ms) CREATE INDEX "index_simple_cart_credit_cards_on_order_id" ON "simple_cart_credit_cards" ("order_id")
50704
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160314184436"]]
50705
+  (67.5ms) commit transaction
50706
+ Migrating to CreateSimpleCartAsdas (20160314184437)
50707
+  (0.1ms) begin transaction
50708
+  (0.3ms) CREATE TABLE "simple_cart_asdas" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asg" varchar, "asgf" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
50709
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160314184437"]]
50710
+  (50.7ms) commit transaction
50711
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
50712
+  (0.1ms)  SELECT sql
50713
+ FROM sqlite_master
50714
+ WHERE name='index_simple_cart_addresses_on_order_id' AND type='index'
50715
+ UNION ALL
50716
+ SELECT sql
50717
+ FROM sqlite_temp_master
50718
+ WHERE name='index_simple_cart_addresses_on_order_id' AND type='index'
50719
+ 
50720
+  (0.1ms) SELECT sql
50721
+ FROM sqlite_master
50722
+ WHERE name='index_simple_cart_credit_cards_on_order_id' AND type='index'
50723
+ UNION ALL
50724
+ SELECT sql
50725
+ FROM sqlite_temp_master
50726
+ WHERE name='index_simple_cart_credit_cards_on_order_id' AND type='index'
50727
+
50728
+  (0.1ms)  SELECT sql
50729
+ FROM sqlite_master
50730
+ WHERE name='index_simple_cart_order_items_on_order_id' AND type='index'
50731
+ UNION ALL
50732
+ SELECT sql
50733
+ FROM sqlite_temp_master
50734
+ WHERE name='index_simple_cart_order_items_on_order_id' AND type='index'
50735
+ 
50736
+  (0.1ms) SELECT sql
50737
+ FROM sqlite_master
50738
+ WHERE name='index_simple_cart_order_items_on_itemable_id' AND type='index'
50739
+ UNION ALL
50740
+ SELECT sql
50741
+ FROM sqlite_temp_master
50742
+ WHERE name='index_simple_cart_order_items_on_itemable_id' AND type='index'
50743
+
50744
+
50745
+
50746
+ Started GET "/items" for 127.0.0.1 at 2016-03-14 20:45:53 +0200
50747
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
50748
+ Processing by ItemsController#index as HTML
50749
+ Item Load (0.2ms) SELECT "items".* FROM "items"
50750
+ Rendered items/index.html.erb (1.4ms)
50751
+ Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.2ms)
50752
+
50753
+ ActionView::Template::Error (SQLite3::SQLException: no such table: items: SELECT "items".* FROM "items"):
50754
+ 13: </thead>
50755
+ 14:
50756
+ 15: <tbody>
50757
+ 16: <% @items.each do |item| %>
50758
+ 17: <tr>
50759
+ 18: <td><%= item.name %></td>
50760
+ 19: <td><%= item.price %></td>
50761
+ app/views/items/index.html.erb:16:in `_app_views_items_index_html_erb__2721162110122551462_38745420'
50762
+
50763
+
50764
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.6ms)
50765
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.7ms)
50766
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)
50767
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.7ms)
50768
+
50769
+
50770
+ Started GET "/items" for 127.0.0.1 at 2016-03-14 20:45:53 +0200
50771
+ Processing by ItemsController#index as HTML
50772
+ Item Load (0.2ms) SELECT "items".* FROM "items"
50773
+ Rendered items/index.html.erb (0.8ms)
50774
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.2ms)
50775
+
50776
+ ActionView::Template::Error (SQLite3::SQLException: no such table: items: SELECT "items".* FROM "items"):
50777
+ 13: </thead>
50778
+ 14:
50779
+ 15: <tbody>
50780
+ 16: <% @items.each do |item| %>
50781
+ 17: <tr>
50782
+ 18: <td><%= item.name %></td>
50783
+ 19: <td><%= item.price %></td>
50784
+ app/views/items/index.html.erb:16:in `_app_views_items_index_html_erb__2721162110122551462_38745420'
50785
+
50786
+
50787
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.2ms)
50788
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
50789
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms)
50790
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.4ms)
50791
+
50792
+
50793
+ Started GET "/things" for 127.0.0.1 at 2016-03-14 20:47:54 +0200
50794
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
50795
+
50796
+ ActiveRecord::PendingMigrationError (
50797
+
50798
+ Migrations are pending. To resolve this issue, run:
50799
+
50800
+ bin/rake db:migrate RAILS_ENV=development
50801
+
50802
+ ):
50803
+ activerecord (4.2.5.2) lib/active_record/migration.rb:392:in `check_pending!'
50804
+ activerecord (4.2.5.2) lib/active_record/migration.rb:373:in `call'
50805
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
50806
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
50807
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
50808
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
50809
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
50810
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/reloader.rb:73:in `call'
50811
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
50812
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
50813
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
50814
+ railties (4.2.5.2) lib/rails/rack/logger.rb:38:in `call_app'
50815
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `block in call'
50816
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
50817
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:26:in `tagged'
50818
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `tagged'
50819
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `call'
50820
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
50821
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
50822
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
50823
+ activesupport (4.2.5.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
50824
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
50825
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/static.rb:116:in `call'
50826
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
50827
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
50828
+ railties (4.2.5.2) lib/rails/application.rb:165:in `call'
50829
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
50830
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
50831
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
50832
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
50833
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
50834
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
50835
+
50836
+
50837
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.1ms)
50838
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms)
50839
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms)
50840
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (18.5ms)
50841
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
50842
+ Migrating to CreateThings (20160314184745)
50843
+  (0.1ms) begin transaction
50844
+  (0.3ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
50845
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160314184745"]]
50846
+  (79.9ms) commit transaction
50847
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
50848
+  (0.1ms)  SELECT sql
50849
+ FROM sqlite_master
50850
+ WHERE name='index_simple_cart_addresses_on_order_id' AND type='index'
50851
+ UNION ALL
50852
+ SELECT sql
50853
+ FROM sqlite_temp_master
50854
+ WHERE name='index_simple_cart_addresses_on_order_id' AND type='index'
50855
+ 
50856
+  (0.1ms) SELECT sql
50857
+ FROM sqlite_master
50858
+ WHERE name='index_simple_cart_credit_cards_on_order_id' AND type='index'
50859
+ UNION ALL
50860
+ SELECT sql
50861
+ FROM sqlite_temp_master
50862
+ WHERE name='index_simple_cart_credit_cards_on_order_id' AND type='index'
50863
+
50864
+  (0.1ms)  SELECT sql
50865
+ FROM sqlite_master
50866
+ WHERE name='index_simple_cart_order_items_on_order_id' AND type='index'
50867
+ UNION ALL
50868
+ SELECT sql
50869
+ FROM sqlite_temp_master
50870
+ WHERE name='index_simple_cart_order_items_on_order_id' AND type='index'
50871
+ 
50872
+  (0.1ms) SELECT sql
50873
+ FROM sqlite_master
50874
+ WHERE name='index_simple_cart_order_items_on_itemable_id' AND type='index'
50875
+ UNION ALL
50876
+ SELECT sql
50877
+ FROM sqlite_temp_master
50878
+ WHERE name='index_simple_cart_order_items_on_itemable_id' AND type='index'
50879
+
50880
+
50881
+
50882
+ Started GET "/things" for 127.0.0.1 at 2016-03-14 20:48:01 +0200
50883
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
50884
+ Processing by ThingsController#index as HTML
50885
+ Thing Load (0.1ms) SELECT "things".* FROM "things"
50886
+ Rendered things/index.html.erb within layouts/application (1.8ms)
50887
+ Completed 200 OK in 299ms (Views: 296.0ms | ActiveRecord: 0.2ms)
50888
+
50889
+
50890
+ Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-14 20:48:01 +0200
50891
+
50892
+
50893
+ Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-14 20:48:01 +0200
50894
+
50895
+
50896
+ Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-14 20:48:01 +0200
50897
+
50898
+
50899
+ Started GET "/assets/scaffolds.self-a292cc26f60e7f7bad7cfbbbb7e5b67ad3b7fb5a457ace846c62d539e4c7518c.css?body=1" for 127.0.0.1 at 2016-03-14 20:48:01 +0200
50900
+
50901
+
50902
+ Started GET "/assets/things.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-14 20:48:01 +0200
50903
+
50904
+
50905
+ Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-14 20:48:01 +0200
50906
+
50907
+
50908
+ Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-14 20:48:01 +0200
50909
+
50910
+
50911
+ Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-14 20:48:01 +0200
50912
+
50913
+
50914
+ Started GET "/assets/things.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-14 20:48:01 +0200
50915
+
50916
+
50917
+ Started GET "/things/new" for 127.0.0.1 at 2016-03-14 20:48:02 +0200
50918
+ Processing by ThingsController#new as HTML
50919
+ Rendered things/_form.html.erb (30.2ms)
50920
+ Rendered things/new.html.erb within layouts/application (37.7ms)
50921
+ Completed 200 OK in 87ms (Views: 74.9ms | ActiveRecord: 0.3ms)
50922
+
50923
+
50924
+ Started POST "/things" for 127.0.0.1 at 2016-03-14 20:48:05 +0200
50925
+ Processing by ThingsController#create as HTML
50926
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"iI/M3fdlg7mQ+5Z4LuJAAvaCd0CPMsPd4P3JAvu1yBW8JXv8uHWX5Y+wjpbp1c6xm9+UfZ+0UUmpnipuMdPpBg==", "thing"=>{"name"=>"225", "price"=>"52251", "qty"=>"1"}, "commit"=>"Create Thing"}
50927
+  (0.1ms) begin transaction
50928
+ SQL (0.3ms) INSERT INTO "things" ("name", "price", "qty", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "225"], ["price", 52251.0], ["qty", 1], ["created_at", "2016-03-14 18:48:05.862197"], ["updated_at", "2016-03-14 18:48:05.862197"]]
50929
+  (55.4ms) commit transaction
50930
+ Redirected to http://localhost:3000/things/1
50931
+ Completed 302 Found in 63ms (ActiveRecord: 55.8ms)
50932
+
50933
+
50934
+ Started GET "/things/1" for 127.0.0.1 at 2016-03-14 20:48:05 +0200
50935
+ Processing by ThingsController#show as HTML
50936
+ Parameters: {"id"=>"1"}
50937
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
50938
+ Rendered things/show.html.erb within layouts/application (2.2ms)
50939
+ Completed 200 OK in 33ms (Views: 25.7ms | ActiveRecord: 0.2ms)
50940
+
50941
+
50942
+ Started GET "/things/1" for 127.0.0.1 at 2016-03-14 20:48:26 +0200
50943
+ Processing by ThingsController#show as HTML
50944
+ Parameters: {"id"=>"1"}
50945
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
50946
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (12.2ms)
50947
+ Rendered things/show.html.erb within layouts/application (14.2ms)
50948
+ Completed 200 OK in 27ms (Views: 25.3ms | ActiveRecord: 0.1ms)
50949
+
50950
+
50951
+ Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-14 20:48:29 +0200
50952
+ Processing by SimpleCart::CartsController#add as HTML
50953
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"o56Bi/F7i6SAnENGy9/RMGTMyTo19juCvcXz1Puq3FuXNDaqvmuf+J/XW6gM6F+DCZEqByVwqRb0phC4Mcz9SA==", "qty"=>"5", "klass"=>"Thing", "commit"=>"Add to cart", "item_id"=>"1"}
50954
+ Redirected to http://localhost:3000/simple_cart/cart
50955
+ Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
50956
+
50957
+
50958
+ Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 20:48:29 +0200
50959
+ Processing by SimpleCart::CartsController#show as HTML
50960
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (7.2ms)
50961
+ Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.0ms)
50962
+
50963
+ ActionView::Template::Error (uninitialized constant Bicycle):
50964
+ 9: .thumbnail
50965
+ 10: .caption-full
50966
+ 11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
50967
+ 12: - if @cart.items.nil?
50968
+ 13: empty
50969
+ 14: - else
50970
+ 15: %table.table.table-hover
50971
+ activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:261:in `const_get'
50972
+ activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:261:in `block in constantize'
50973
+ activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
50974
+ activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
50975
+ activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
50976
+ activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
50977
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/simple_cart/cart.rb:26:in `block in items'
50978
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/simple_cart/cart.rb:25:in `each'
50979
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/simple_cart/cart.rb:25:in `items'
50980
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__3057589455894867635_69863731654280'
50981
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:118:in `call'
50982
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:118:in `block (2 levels) in form_tag_with_haml'
50983
+ haml (4.0.7) lib/haml/helpers.rb:278:in `with_tabs'
50984
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:118:in `block in form_tag_with_haml'
50985
+ haml (4.0.7) lib/haml/helpers.rb:631:in `call'
50986
+ haml (4.0.7) lib/haml/helpers.rb:631:in `block in haml_bind_proc'
50987
+ haml (4.0.7) lib/haml/helpers.rb:368:in `call'
50988
+ haml (4.0.7) lib/haml/helpers.rb:368:in `block in capture_haml'
50989
+ haml (4.0.7) lib/haml/helpers.rb:608:in `with_haml_buffer'
50990
+ haml (4.0.7) lib/haml/helpers.rb:364:in `capture_haml'
50991
+ haml (4.0.7) lib/haml/helpers/xss_mods.rb:61:in `capture_haml_with_haml_xss'
50992
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:45:in `capture_with_haml'
50993
+ actionview (4.2.5.2) lib/action_view/helpers/form_tag_helper.rb:70:in `form_tag'
50994
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:121:in `form_tag_with_haml'
50995
+ haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:18:in `form_tag_with_haml_xss'
50996
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:11:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__3057589455894867635_69863731654280'
50997
+ actionview (4.2.5.2) lib/action_view/template.rb:145:in `block in render'
50998
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:166:in `instrument'
50999
+ actionview (4.2.5.2) lib/action_view/template.rb:333:in `instrument'
51000
+ actionview (4.2.5.2) lib/action_view/template.rb:143:in `render'
51001
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
51002
+ actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
51003
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument'
51004
+ activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
51005
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument'
51006
+ actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
51007
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
51008
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
51009
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:52:in `render_template'
51010
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:14:in `render'
51011
+ actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:46:in `render_template'
51012
+ actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:27:in `render'
51013
+ actionview (4.2.5.2) lib/action_view/rendering.rb:100:in `_render_template'
51014
+ actionpack (4.2.5.2) lib/action_controller/metal/streaming.rb:217:in `_render_template'
51015
+ actionview (4.2.5.2) lib/action_view/rendering.rb:83:in `render_to_body'
51016
+ actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:32:in `render_to_body'
51017
+ actionpack (4.2.5.2) lib/action_controller/metal/renderers.rb:37:in `render_to_body'
51018
+ actionpack (4.2.5.2) lib/abstract_controller/rendering.rb:25:in `render'
51019
+ actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:16:in `render'
51020
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
51021
+ activesupport (4.2.5.2) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
51022
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'
51023
+ activesupport (4.2.5.2) lib/active_support/core_ext/benchmark.rb:12:in `ms'
51024
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:44:in `block in render'
51025
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
51026
+ activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
51027
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:43:in `render'
51028
+ actionpack (4.2.5.2) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
51029
+ actionpack (4.2.5.2) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
51030
+ actionpack (4.2.5.2) lib/abstract_controller/base.rb:198:in `process_action'
51031
+ actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:10:in `process_action'
51032
+ actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
51033
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call'
51034
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call'
51035
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
51036
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call'
51037
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call'
51038
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:92:in `__run_callbacks__'
51039
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
51040
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
51041
+ actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:19:in `process_action'
51042
+ actionpack (4.2.5.2) lib/action_controller/metal/rescue.rb:29:in `process_action'
51043
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
51044
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument'
51045
+ activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
51046
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument'
51047
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
51048
+ actionpack (4.2.5.2) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
51049
+ activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
51050
+ actionpack (4.2.5.2) lib/abstract_controller/base.rb:137:in `process'
51051
+ actionview (4.2.5.2) lib/action_view/rendering.rb:30:in `process'
51052
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:196:in `dispatch'
51053
+ actionpack (4.2.5.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
51054
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:237:in `block in action'
51055
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `call'
51056
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
51057
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:43:in `serve'
51058
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
51059
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
51060
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
51061
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
51062
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
51063
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `public_send'
51064
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `method_missing'
51065
+ actionpack (4.2.5.2) lib/action_dispatch/routing/mapper.rb:51:in `serve'
51066
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
51067
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
51068
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
51069
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
51070
+ rack (1.6.4) lib/rack/etag.rb:24:in `call'
51071
+ rack (1.6.4) lib/rack/conditionalget.rb:25:in `call'
51072
+ rack (1.6.4) lib/rack/head.rb:13:in `call'
51073
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
51074
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/flash.rb:260:in `call'
51075
+ rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
51076
+ rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
51077
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/cookies.rb:560:in `call'
51078
+ activerecord (4.2.5.2) lib/active_record/query_cache.rb:36:in `call'
51079
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
51080
+ activerecord (4.2.5.2) lib/active_record/migration.rb:377:in `call'
51081
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
51082
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
51083
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
51084
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
51085
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
51086
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/reloader.rb:73:in `call'
51087
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
51088
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
51089
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
51090
+ railties (4.2.5.2) lib/rails/rack/logger.rb:38:in `call_app'
51091
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `block in call'
51092
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
51093
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:26:in `tagged'
51094
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `tagged'
51095
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `call'
51096
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
51097
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
51098
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
51099
+ activesupport (4.2.5.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
51100
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
51101
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/static.rb:116:in `call'
51102
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
51103
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
51104
+ railties (4.2.5.2) lib/rails/application.rb:165:in `call'
51105
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
51106
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
51107
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
51108
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
51109
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
51110
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
51111
+
51112
+
51113
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (8.4ms)
51114
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.0ms)
51115
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)
51116
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (23.8ms)
51117
+
51118
+
51119
+ Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 20:48:48 +0200
51120
+ Processing by SimpleCart::CartsController#show as HTML
51121
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.1ms)
51122
+ Completed 200 OK in 69ms (Views: 68.0ms | ActiveRecord: 0.0ms)
51123
+
51124
+
51125
+ Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 20:48:48 +0200
51126
+
51127
+
51128
+ Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 20:48:48 +0200
51129
+
51130
+
51131
+ Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 20:48:48 +0200
51132
+
51133
+
51134
+ Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 20:48:48 +0200
51135
+
51136
+
51137
+ Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 20:48:48 +0200
51138
+
51139
+
51140
+ Started GET "/things" for 127.0.0.1 at 2016-03-14 20:48:54 +0200
51141
+ Processing by ThingsController#index as HTML
51142
+ Thing Load (0.3ms) SELECT "things".* FROM "things"
51143
+ Rendered things/index.html.erb within layouts/application (3.1ms)
51144
+ Completed 200 OK in 19ms (Views: 17.8ms | ActiveRecord: 0.3ms)
51145
+
51146
+
51147
+ Started GET "/things/1" for 127.0.0.1 at 2016-03-14 20:48:56 +0200
51148
+ Processing by ThingsController#show as HTML
51149
+ Parameters: {"id"=>"1"}
51150
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
51151
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.9ms)
51152
+ Rendered things/show.html.erb within layouts/application (8.2ms)
51153
+ Completed 200 OK in 27ms (Views: 25.1ms | ActiveRecord: 0.1ms)
51154
+
51155
+
51156
+ Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-14 20:48:58 +0200
51157
+ Processing by SimpleCart::CartsController#add as HTML
51158
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"ARVWwRmJjimeSRxiUTfu4s/M5L4fBjKChE4A+T6NprhpTxMDcrGO9JJC297M0fwl9VDBNqsJRDgVDtP3wXxpsQ==", "qty"=>"2", "klass"=>"Thing", "commit"=>"Add to cart", "item_id"=>"1"}
51159
+ Redirected to http://localhost:3000/simple_cart/cart
51160
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
51161
+
51162
+
51163
+ Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 20:48:58 +0200
51164
+ Processing by SimpleCart::CartsController#show as HTML
51165
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
51166
+ CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
51167
+ CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
51168
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.0ms)
51169
+ Completed 200 OK in 26ms (Views: 25.4ms | ActiveRecord: 0.1ms)
51170
+
51171
+
51172
+ Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 20:49:03 +0200
51173
+ Processing by SimpleCart::CartsController#checkout as HTML
51174
+ Parameters: {"authenticity_token"=>"yOjmeECxx8RAukH/95ez/IGKZtPo+MamHPYlf/tnAp+gsqO6K4nHGUyxhkNqcaE7uxZDW1z3sByNtvZxBJbNlg=="}
51175
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
51176
+ CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
51177
+  (0.1ms) begin transaction
51178
+ SQL (0.2ms) INSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 104502.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 18:49:03.241718"], ["updated_at", "2016-03-14 18:49:03.241718"]]
51179
+ SQL (0.1ms) INSERT INTO "simple_cart_order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 52251.0], ["qty", 2], ["itemable_id", 1], ["itemable_type", "Thing"], ["order_id", "1"], ["created_at", "2016-03-14 18:49:03.243099"], ["updated_at", "2016-03-14 18:49:03.243099"]]
51180
+  (68.6ms) commit transaction
51181
+ Redirected to http://localhost:3000/simple_cart/orders/1/checkout
51182
+ Completed 302 Found in 112ms (ActiveRecord: 69.7ms)
51183
+
51184
+
51185
+ Started GET "/simple_cart/orders/1/checkout" for 127.0.0.1 at 2016-03-14 20:49:03 +0200
51186
+ Processing by SimpleCart::CheckoutController#index as HTML
51187
+ Parameters: {"order_id"=>"1"}
51188
+ SimpleCart::Order Load (0.4ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
51189
+ Redirected to http://localhost:3000/simple_cart/orders/1/checkout/billing
51190
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
51191
+
51192
+
51193
+ Started GET "/simple_cart/orders/1/checkout/billing" for 127.0.0.1 at 2016-03-14 20:49:03 +0200
51194
+ Processing by SimpleCart::CheckoutController#show as HTML
51195
+ Parameters: {"order_id"=>"1", "id"=>"billing"}
51196
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
51197
+ SimpleCart::BillingAddress Load (0.3ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
51198
+ SimpleCart::ShippingAddress Load (0.3ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
51199
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
51200
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.1ms)
51201
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (22.6ms)
51202
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (29.9ms)
51203
+ Completed 500 Internal Server Error in 74ms (ActiveRecord: 1.3ms)
51204
+
51205
+ ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Address):
51206
+ 18: = ff.text_field :phone, class: 'form-control'
51207
+ 19: .form-group
51208
+ 20: = ff.label :country
51209
+ 21: = ff.collection_select :country, Address.countries, :to_s, :to_s, {}, {class: 'form-control'}
51210
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml:21:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout__address_html_haml___2651792928338168151_69863760223060'
51211
+ actionview (4.2.5.2) lib/action_view/template.rb:145:in `block in render'
51212
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:166:in `instrument'
51213
+ actionview (4.2.5.2) lib/action_view/template.rb:333:in `instrument'
51214
+ actionview (4.2.5.2) lib/action_view/template.rb:143:in `render'
51215
+ actionview (4.2.5.2) lib/action_view/renderer/partial_renderer.rb:339:in `render_partial'
51216
+ actionview (4.2.5.2) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
51217
+ actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
51218
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument'
51219
+ activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
51220
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument'
51221
+ actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
51222
+ actionview (4.2.5.2) lib/action_view/renderer/partial_renderer.rb:309:in `render'
51223
+ actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:51:in `render_partial'
51224
+ actionview (4.2.5.2) lib/action_view/helpers/rendering_helper.rb:35:in `render'
51225
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
51226
+ haml (4.0.7) lib/haml/helpers.rb:89:in `non_haml'
51227
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
51228
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:18:in `block (2 levels) in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml___2553148978678224937_69863758962220'
51229
+ haml (4.0.7) lib/haml/helpers.rb:368:in `call'
51230
+ haml (4.0.7) lib/haml/helpers.rb:368:in `block in capture_haml'
51231
+ haml (4.0.7) lib/haml/helpers.rb:608:in `with_haml_buffer'
51232
+ haml (4.0.7) lib/haml/helpers.rb:364:in `capture_haml'
51233
+ haml (4.0.7) lib/haml/helpers/xss_mods.rb:61:in `capture_haml_with_haml_xss'
51234
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:45:in `capture_with_haml'
51235
+ actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1925:in `block in fields_for_nested_model'
51236
+ actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
51237
+ actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
51238
+ haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
51239
+ actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
51240
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
51241
+ actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:714:in `fields_for'
51242
+ actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1924:in `fields_for_nested_model'
51243
+ actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1914:in `fields_for_with_nested_attributes'
51244
+ actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1582:in `fields_for'
51245
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:17:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml___2553148978678224937_69863758962220'
51246
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
51247
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_with_haml'
51248
+ haml (4.0.7) lib/haml/helpers.rb:278:in `with_tabs'
51249
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block in form_for_with_haml'
51250
+ actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
51251
+ actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
51252
+ haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
51253
+ actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
51254
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
51255
+ actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
51256
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
51257
+ haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
51258
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:6:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml___2553148978678224937_69863758962220'
51259
+ actionview (4.2.5.2) lib/action_view/template.rb:145:in `block in render'
51260
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:166:in `instrument'
51261
+ actionview (4.2.5.2) lib/action_view/template.rb:333:in `instrument'
51262
+ actionview (4.2.5.2) lib/action_view/template.rb:143:in `render'
51263
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
51264
+ actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
51265
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument'
51266
+ activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
51267
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument'
51268
+ actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
51269
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
51270
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
51271
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:52:in `render_template'
51272
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:14:in `render'
51273
+ actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:46:in `render_template'
51274
+ actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:27:in `render'
51275
+ actionview (4.2.5.2) lib/action_view/rendering.rb:100:in `_render_template'
51276
+ actionpack (4.2.5.2) lib/action_controller/metal/streaming.rb:217:in `_render_template'
51277
+ actionview (4.2.5.2) lib/action_view/rendering.rb:83:in `render_to_body'
51278
+ actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:32:in `render_to_body'
51279
+ actionpack (4.2.5.2) lib/action_controller/metal/renderers.rb:37:in `render_to_body'
51280
+ actionpack (4.2.5.2) lib/abstract_controller/rendering.rb:25:in `render'
51281
+ actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:16:in `render'
51282
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
51283
+ activesupport (4.2.5.2) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
51284
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'
51285
+ activesupport (4.2.5.2) lib/active_support/core_ext/benchmark.rb:12:in `ms'
51286
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:44:in `block in render'
51287
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
51288
+ activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
51289
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:43:in `render'
51290
+ wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
51291
+ wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
51292
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
51293
+ actionpack (4.2.5.2) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
51294
+ actionpack (4.2.5.2) lib/abstract_controller/base.rb:198:in `process_action'
51295
+ actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:10:in `process_action'
51296
+ actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
51297
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call'
51298
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call'
51299
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
51300
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call'
51301
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call'
51302
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:92:in `__run_callbacks__'
51303
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
51304
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
51305
+ actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:19:in `process_action'
51306
+ actionpack (4.2.5.2) lib/action_controller/metal/rescue.rb:29:in `process_action'
51307
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
51308
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument'
51309
+ activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
51310
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument'
51311
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
51312
+ actionpack (4.2.5.2) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
51313
+ activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
51314
+ actionpack (4.2.5.2) lib/abstract_controller/base.rb:137:in `process'
51315
+ actionview (4.2.5.2) lib/action_view/rendering.rb:30:in `process'
51316
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:196:in `dispatch'
51317
+ actionpack (4.2.5.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
51318
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:237:in `block in action'
51319
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `call'
51320
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
51321
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:43:in `serve'
51322
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
51323
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
51324
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
51325
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
51326
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
51327
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `public_send'
51328
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `method_missing'
51329
+ actionpack (4.2.5.2) lib/action_dispatch/routing/mapper.rb:51:in `serve'
51330
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
51331
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
51332
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
51333
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
51334
+ rack (1.6.4) lib/rack/etag.rb:24:in `call'
51335
+ rack (1.6.4) lib/rack/conditionalget.rb:25:in `call'
51336
+ rack (1.6.4) lib/rack/head.rb:13:in `call'
51337
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
51338
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/flash.rb:260:in `call'
51339
+ rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
51340
+ rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
51341
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/cookies.rb:560:in `call'
51342
+ activerecord (4.2.5.2) lib/active_record/query_cache.rb:36:in `call'
51343
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
51344
+ activerecord (4.2.5.2) lib/active_record/migration.rb:377:in `call'
51345
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
51346
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
51347
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
51348
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
51349
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
51350
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/reloader.rb:73:in `call'
51351
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
51352
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
51353
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
51354
+ railties (4.2.5.2) lib/rails/rack/logger.rb:38:in `call_app'
51355
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `block in call'
51356
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
51357
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:26:in `tagged'
51358
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `tagged'
51359
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `call'
51360
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
51361
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
51362
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
51363
+ activesupport (4.2.5.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
51364
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
51365
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/static.rb:116:in `call'
51366
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
51367
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
51368
+ railties (4.2.5.2) lib/rails/application.rb:165:in `call'
51369
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
51370
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
51371
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
51372
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
51373
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
51374
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
51375
+
51376
+
51377
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (9.8ms)
51378
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.0ms)
51379
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms)
51380
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (23.4ms)
51381
+
51382
+
51383
+ Started GET "/simple_cart/orders/1/checkout/billing" for 127.0.0.1 at 2016-03-14 20:50:08 +0200
51384
+ Processing by SimpleCart::CheckoutController#show as HTML
51385
+ Parameters: {"order_id"=>"1", "id"=>"billing"}
51386
+ SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
51387
+ SimpleCart::BillingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
51388
+ SimpleCart::ShippingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
51389
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
51390
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.1ms)
51391
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (11.6ms)
51392
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
51393
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
51394
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (6.2ms)
51395
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (31.8ms)
51396
+ Completed 200 OK in 59ms (Views: 50.2ms | ActiveRecord: 0.6ms)
51397
+
51398
+
51399
+ Started PATCH "/simple_cart/orders/1/checkout/billing" for 127.0.0.1 at 2016-03-14 20:50:16 +0200
51400
+ Processing by SimpleCart::CheckoutController#update as HTML
51401
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"tgmWsIJjrsvAmJxHrbIXdkM07B+Q7nLZlNSGgF+oGjfeU9Ny6VuuFsyTW/swVAWxeajJlyThBGMFlFWOoFnVPg==", "order"=>{"billing_address_attributes"=>{"firstname"=>"fsa", "lastname"=>"gsgsa", "address"=>"sasgaasg", "zipcode"=>"saggsasga", "city"=>"gasgsa", "phone"=>"251", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"1", "id"=>"billing"}
51402
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
51403
+  (0.1ms) begin transaction
51404
+ SimpleCart::BillingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
51405
+ SQL (0.3ms) INSERT INTO "simple_cart_addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "SimpleCart::BillingAddress"], ["firstname", "fsa"], ["lastname", "gsgsa"], ["address", "sasgaasg"], ["zipcode", "saggsasga"], ["city", "gasgsa"], ["phone", "251"], ["country", "Afghanistan"], ["order_id", 1], ["created_at", "2016-03-14 18:50:16.089017"], ["updated_at", "2016-03-14 18:50:16.089017"]]
51406
+  (59.3ms) commit transaction
51407
+ SimpleCart::ShippingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
51408
+  (0.1ms) begin transaction
51409
+ SQL (0.3ms) INSERT INTO "simple_cart_addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "SimpleCart::ShippingAddress"], ["order_id", 1], ["address", "sasgaasg"], ["zipcode", "saggsasga"], ["city", "gasgsa"], ["phone", "251"], ["country", "Afghanistan"], ["created_at", "2016-03-14 18:50:16.089017"], ["updated_at", "2016-03-14 18:50:16.089017"], ["firstname", "fsa"], ["lastname", "gsgsa"]]
51410
+  (102.5ms) commit transaction
51411
+ Redirected to http://localhost:3000/simple_cart/orders/1/checkout/delivery
51412
+ Completed 302 Found in 176ms (ActiveRecord: 163.0ms)
51413
+
51414
+
51415
+ Started GET "/simple_cart/orders/1/checkout/delivery" for 127.0.0.1 at 2016-03-14 20:50:16 +0200
51416
+ Processing by SimpleCart::CheckoutController#show as HTML
51417
+ Parameters: {"order_id"=>"1", "id"=>"delivery"}
51418
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
51419
+ SimpleCart::ShippingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
51420
+ SimpleCart::BillingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
51421
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
51422
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.3ms)
51423
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (10.2ms)
51424
+ Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.6ms)
51425
+
51426
+ ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Delivery):
51427
+ 33: %li= msg
51428
+ 34:
51429
+ 35: .form-group
51430
+ 36: - Delivery.all.each do |company|
51431
+ 37: .radio
51432
+ 38: %label
51433
+ 39: = f.radio_button :delivery_id, company.id, :checked => company == Delivery.first || @order.delivery == company
51434
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:36:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___1082272580694243827_69863731271320'
51435
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
51436
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_with_haml'
51437
+ haml (4.0.7) lib/haml/helpers.rb:278:in `with_tabs'
51438
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block in form_for_with_haml'
51439
+ actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
51440
+ actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
51441
+ haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
51442
+ actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
51443
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
51444
+ actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
51445
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
51446
+ haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
51447
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:27:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___1082272580694243827_69863731271320'
51448
+ actionview (4.2.5.2) lib/action_view/template.rb:145:in `block in render'
51449
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:166:in `instrument'
51450
+ actionview (4.2.5.2) lib/action_view/template.rb:333:in `instrument'
51451
+ actionview (4.2.5.2) lib/action_view/template.rb:143:in `render'
51452
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
51453
+ actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
51454
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument'
51455
+ activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
51456
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument'
51457
+ actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
51458
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
51459
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
51460
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:52:in `render_template'
51461
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:14:in `render'
51462
+ actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:46:in `render_template'
51463
+ actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:27:in `render'
51464
+ actionview (4.2.5.2) lib/action_view/rendering.rb:100:in `_render_template'
51465
+ actionpack (4.2.5.2) lib/action_controller/metal/streaming.rb:217:in `_render_template'
51466
+ actionview (4.2.5.2) lib/action_view/rendering.rb:83:in `render_to_body'
51467
+ actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:32:in `render_to_body'
51468
+ actionpack (4.2.5.2) lib/action_controller/metal/renderers.rb:37:in `render_to_body'
51469
+ actionpack (4.2.5.2) lib/abstract_controller/rendering.rb:25:in `render'
51470
+ actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:16:in `render'
51471
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
51472
+ activesupport (4.2.5.2) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
51473
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'
51474
+ activesupport (4.2.5.2) lib/active_support/core_ext/benchmark.rb:12:in `ms'
51475
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:44:in `block in render'
51476
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
51477
+ activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
51478
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:43:in `render'
51479
+ wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
51480
+ wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
51481
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
51482
+ actionpack (4.2.5.2) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
51483
+ actionpack (4.2.5.2) lib/abstract_controller/base.rb:198:in `process_action'
51484
+ actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:10:in `process_action'
51485
+ actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
51486
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call'
51487
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call'
51488
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
51489
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call'
51490
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call'
51491
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:92:in `__run_callbacks__'
51492
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
51493
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
51494
+ actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:19:in `process_action'
51495
+ actionpack (4.2.5.2) lib/action_controller/metal/rescue.rb:29:in `process_action'
51496
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
51497
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument'
51498
+ activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
51499
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument'
51500
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
51501
+ actionpack (4.2.5.2) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
51502
+ activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
51503
+ actionpack (4.2.5.2) lib/abstract_controller/base.rb:137:in `process'
51504
+ actionview (4.2.5.2) lib/action_view/rendering.rb:30:in `process'
51505
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:196:in `dispatch'
51506
+ actionpack (4.2.5.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
51507
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:237:in `block in action'
51508
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `call'
51509
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
51510
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:43:in `serve'
51511
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
51512
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
51513
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
51514
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
51515
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
51516
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `public_send'
51517
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `method_missing'
51518
+ actionpack (4.2.5.2) lib/action_dispatch/routing/mapper.rb:51:in `serve'
51519
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
51520
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
51521
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
51522
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
51523
+ rack (1.6.4) lib/rack/etag.rb:24:in `call'
51524
+ rack (1.6.4) lib/rack/conditionalget.rb:25:in `call'
51525
+ rack (1.6.4) lib/rack/head.rb:13:in `call'
51526
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
51527
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/flash.rb:260:in `call'
51528
+ rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
51529
+ rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
51530
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/cookies.rb:560:in `call'
51531
+ activerecord (4.2.5.2) lib/active_record/query_cache.rb:36:in `call'
51532
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
51533
+ activerecord (4.2.5.2) lib/active_record/migration.rb:377:in `call'
51534
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
51535
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
51536
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
51537
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
51538
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
51539
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/reloader.rb:73:in `call'
51540
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
51541
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
51542
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
51543
+ railties (4.2.5.2) lib/rails/rack/logger.rb:38:in `call_app'
51544
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `block in call'
51545
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
51546
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:26:in `tagged'
51547
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `tagged'
51548
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `call'
51549
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
51550
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
51551
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
51552
+ activesupport (4.2.5.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
51553
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
51554
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/static.rb:116:in `call'
51555
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
51556
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
51557
+ railties (4.2.5.2) lib/rails/application.rb:165:in `call'
51558
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
51559
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
51560
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
51561
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
51562
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
51563
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
51564
+
51565
+
51566
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (9.4ms)
51567
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms)
51568
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
51569
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (22.8ms)
51570
+
51571
+
51572
+ Started GET "/simple_cart/orders/1/checkout/delivery" for 127.0.0.1 at 2016-03-14 20:50:33 +0200
51573
+ Processing by SimpleCart::CheckoutController#show as HTML
51574
+ Parameters: {"order_id"=>"1", "id"=>"delivery"}
51575
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
51576
+ SimpleCart::ShippingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
51577
+ SimpleCart::BillingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
51578
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
51579
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms)
51580
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (9.6ms)
51581
+ Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.4ms)
51582
+
51583
+ ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Delivery):
51584
+ 33: %li= msg
51585
+ 34:
51586
+ 35: .form-group
51587
+ 36: - Delivery.all.each do |company|
51588
+ 37: .radio
51589
+ 38: %label
51590
+ 39: = f.radio_button :delivery_id, company.id, :checked => company == SimpleCart::Delivery.first || @order.delivery == company
51591
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:36:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___1082272580694243827_69863754924540'
51592
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
51593
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_with_haml'
51594
+ haml (4.0.7) lib/haml/helpers.rb:278:in `with_tabs'
51595
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block in form_for_with_haml'
51596
+ actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
51597
+ actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
51598
+ haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
51599
+ actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
51600
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
51601
+ actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
51602
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
51603
+ haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
51604
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:27:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___1082272580694243827_69863754924540'
51605
+ actionview (4.2.5.2) lib/action_view/template.rb:145:in `block in render'
51606
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:166:in `instrument'
51607
+ actionview (4.2.5.2) lib/action_view/template.rb:333:in `instrument'
51608
+ actionview (4.2.5.2) lib/action_view/template.rb:143:in `render'
51609
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
51610
+ actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
51611
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument'
51612
+ activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
51613
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument'
51614
+ actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
51615
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
51616
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
51617
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:52:in `render_template'
51618
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:14:in `render'
51619
+ actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:46:in `render_template'
51620
+ actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:27:in `render'
51621
+ actionview (4.2.5.2) lib/action_view/rendering.rb:100:in `_render_template'
51622
+ actionpack (4.2.5.2) lib/action_controller/metal/streaming.rb:217:in `_render_template'
51623
+ actionview (4.2.5.2) lib/action_view/rendering.rb:83:in `render_to_body'
51624
+ actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:32:in `render_to_body'
51625
+ actionpack (4.2.5.2) lib/action_controller/metal/renderers.rb:37:in `render_to_body'
51626
+ actionpack (4.2.5.2) lib/abstract_controller/rendering.rb:25:in `render'
51627
+ actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:16:in `render'
51628
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
51629
+ activesupport (4.2.5.2) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
51630
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'
51631
+ activesupport (4.2.5.2) lib/active_support/core_ext/benchmark.rb:12:in `ms'
51632
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:44:in `block in render'
51633
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
51634
+ activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
51635
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:43:in `render'
51636
+ wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
51637
+ wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
51638
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
51639
+ actionpack (4.2.5.2) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
51640
+ actionpack (4.2.5.2) lib/abstract_controller/base.rb:198:in `process_action'
51641
+ actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:10:in `process_action'
51642
+ actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
51643
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call'
51644
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call'
51645
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
51646
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call'
51647
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call'
51648
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:92:in `__run_callbacks__'
51649
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
51650
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
51651
+ actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:19:in `process_action'
51652
+ actionpack (4.2.5.2) lib/action_controller/metal/rescue.rb:29:in `process_action'
51653
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
51654
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument'
51655
+ activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
51656
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument'
51657
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
51658
+ actionpack (4.2.5.2) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
51659
+ activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
51660
+ actionpack (4.2.5.2) lib/abstract_controller/base.rb:137:in `process'
51661
+ actionview (4.2.5.2) lib/action_view/rendering.rb:30:in `process'
51662
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:196:in `dispatch'
51663
+ actionpack (4.2.5.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
51664
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:237:in `block in action'
51665
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `call'
51666
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
51667
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:43:in `serve'
51668
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
51669
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
51670
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
51671
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
51672
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
51673
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `public_send'
51674
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `method_missing'
51675
+ actionpack (4.2.5.2) lib/action_dispatch/routing/mapper.rb:51:in `serve'
51676
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
51677
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
51678
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
51679
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
51680
+ rack (1.6.4) lib/rack/etag.rb:24:in `call'
51681
+ rack (1.6.4) lib/rack/conditionalget.rb:25:in `call'
51682
+ rack (1.6.4) lib/rack/head.rb:13:in `call'
51683
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
51684
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/flash.rb:260:in `call'
51685
+ rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
51686
+ rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
51687
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/cookies.rb:560:in `call'
51688
+ activerecord (4.2.5.2) lib/active_record/query_cache.rb:36:in `call'
51689
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
51690
+ activerecord (4.2.5.2) lib/active_record/migration.rb:377:in `call'
51691
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
51692
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
51693
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
51694
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
51695
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
51696
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/reloader.rb:73:in `call'
51697
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
51698
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
51699
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
51700
+ railties (4.2.5.2) lib/rails/rack/logger.rb:38:in `call_app'
51701
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `block in call'
51702
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
51703
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:26:in `tagged'
51704
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `tagged'
51705
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `call'
51706
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
51707
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
51708
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
51709
+ activesupport (4.2.5.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
51710
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
51711
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/static.rb:116:in `call'
51712
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
51713
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
51714
+ railties (4.2.5.2) lib/rails/application.rb:165:in `call'
51715
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
51716
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
51717
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
51718
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
51719
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
51720
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
51721
+
51722
+
51723
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.3ms)
51724
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms)
51725
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms)
51726
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.1ms)
51727
+
51728
+
51729
+ Started GET "/simple_cart/orders/1/checkout/delivery" for 127.0.0.1 at 2016-03-14 20:50:45 +0200
51730
+ Processing by SimpleCart::CheckoutController#show as HTML
51731
+ Parameters: {"order_id"=>"1", "id"=>"delivery"}
51732
+ SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
51733
+ SimpleCart::ShippingAddress Load (0.3ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
51734
+ SimpleCart::BillingAddress Load (0.3ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
51735
+ SimpleCart::CreditCard Load (0.2ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
51736
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.1ms)
51737
+ SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
51738
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
51739
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
51740
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.0ms)
51741
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (9.9ms)
51742
+ Completed 200 OK in 39ms (Views: 28.3ms | ActiveRecord: 1.2ms)
51743
+  (0.1ms) begin transaction
51744
+ SQL (0.3ms) INSERT INTO "simple_cart_deliveries" ("company", "costs", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["company", "test"], ["costs", 2.0], ["created_at", "2016-03-14 18:51:18.885627"], ["updated_at", "2016-03-14 18:51:18.885627"]]
51745
+  (66.3ms) commit transaction
51746
+
51747
+
51748
+ Started GET "/simple_cart/orders/1/checkout/delivery" for 127.0.0.1 at 2016-03-14 20:51:20 +0200
51749
+ Processing by SimpleCart::CheckoutController#show as HTML
51750
+ Parameters: {"order_id"=>"1", "id"=>"delivery"}
51751
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
51752
+ SimpleCart::ShippingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
51753
+ SimpleCart::BillingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
51754
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
51755
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.0ms)
51756
+ SimpleCart::Delivery Load (0.3ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
51757
+ SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
51758
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
51759
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
51760
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.8ms)
51761
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (14.0ms)
51762
+ Completed 200 OK in 35ms (Views: 29.7ms | ActiveRecord: 1.2ms)
51763
+
51764
+
51765
+ Started PATCH "/simple_cart/orders/1/checkout/delivery" for 127.0.0.1 at 2016-03-14 20:51:23 +0200
51766
+ Processing by SimpleCart::CheckoutController#update as HTML
51767
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"N45a3T5UB+2PTAqWJGJuLOR88LsFlNEaVytUsPg2Gy1f1B8fVWwHMINHzSq5hHzr3uDVM7Gbp6DGa4e+B8fUJA==", "order"=>{"delivery_id"=>"1"}, "commit"=>"Continue", "order_id"=>"1", "id"=>"delivery"}
51768
+ SimpleCart::Order Load (0.3ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
51769
+ SimpleCart::Delivery Load (0.3ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
51770
+  (0.1ms) begin transaction
51771
+ SQL (0.5ms) UPDATE "simple_cart_orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["delivery_id", 1], ["updated_at", "2016-03-14 18:51:23.140432"], ["id", 1]]
51772
+  (49.4ms) commit transaction
51773
+ Redirected to http://localhost:3000/simple_cart/orders/1/checkout/payment
51774
+ Completed 302 Found in 61ms (ActiveRecord: 50.5ms)
51775
+
51776
+
51777
+ Started GET "/simple_cart/orders/1/checkout/payment" for 127.0.0.1 at 2016-03-14 20:51:23 +0200
51778
+ Processing by SimpleCart::CheckoutController#show as HTML
51779
+ Parameters: {"order_id"=>"1", "id"=>"payment"}
51780
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
51781
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
51782
+ SimpleCart::BillingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
51783
+ SimpleCart::ShippingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
51784
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
51785
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.1ms)
51786
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (11.8ms)
51787
+ Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.7ms)
51788
+
51789
+ ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::CreditCard):
51790
+ 39: .row
51791
+ 40: .col-xs-6
51792
+ 41: = ff.label :expiration_month
51793
+ 42: = ff.collection_select :expiration_month, CreditCard.months, :to_s, :to_s, {}, :class => 'form-control'
51794
+ 43: .col-xs-6
51795
+ 44: = ff.label :expiration_year
51796
+ 45: = ff.collection_select :expiration_year, CreditCard.years, :to_s, :to_s, {}, :class => 'form-control'
51797
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml:42:in `block (2 levels) in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_payment_html_haml__3787437729566437831_69863719788700'
51798
+ haml (4.0.7) lib/haml/helpers.rb:368:in `call'
51799
+ haml (4.0.7) lib/haml/helpers.rb:368:in `block in capture_haml'
51800
+ haml (4.0.7) lib/haml/helpers.rb:608:in `with_haml_buffer'
51801
+ haml (4.0.7) lib/haml/helpers.rb:364:in `capture_haml'
51802
+ haml (4.0.7) lib/haml/helpers/xss_mods.rb:61:in `capture_haml_with_haml_xss'
51803
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:45:in `capture_with_haml'
51804
+ actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1925:in `block in fields_for_nested_model'
51805
+ actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
51806
+ actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
51807
+ haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
51808
+ actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
51809
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
51810
+ actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:714:in `fields_for'
51811
+ actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1924:in `fields_for_nested_model'
51812
+ actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1914:in `fields_for_with_nested_attributes'
51813
+ actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1582:in `fields_for'
51814
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml:34:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_payment_html_haml__3787437729566437831_69863719788700'
51815
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
51816
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_with_haml'
51817
+ haml (4.0.7) lib/haml/helpers.rb:278:in `with_tabs'
51818
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block in form_for_with_haml'
51819
+ actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
51820
+ actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
51821
+ haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
51822
+ actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
51823
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
51824
+ actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
51825
+ haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
51826
+ haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
51827
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml:27:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_payment_html_haml__3787437729566437831_69863719788700'
51828
+ actionview (4.2.5.2) lib/action_view/template.rb:145:in `block in render'
51829
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:166:in `instrument'
51830
+ actionview (4.2.5.2) lib/action_view/template.rb:333:in `instrument'
51831
+ actionview (4.2.5.2) lib/action_view/template.rb:143:in `render'
51832
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
51833
+ actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
51834
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument'
51835
+ activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
51836
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument'
51837
+ actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
51838
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
51839
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
51840
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:52:in `render_template'
51841
+ actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:14:in `render'
51842
+ actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:46:in `render_template'
51843
+ actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:27:in `render'
51844
+ actionview (4.2.5.2) lib/action_view/rendering.rb:100:in `_render_template'
51845
+ actionpack (4.2.5.2) lib/action_controller/metal/streaming.rb:217:in `_render_template'
51846
+ actionview (4.2.5.2) lib/action_view/rendering.rb:83:in `render_to_body'
51847
+ actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:32:in `render_to_body'
51848
+ actionpack (4.2.5.2) lib/action_controller/metal/renderers.rb:37:in `render_to_body'
51849
+ actionpack (4.2.5.2) lib/abstract_controller/rendering.rb:25:in `render'
51850
+ actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:16:in `render'
51851
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
51852
+ activesupport (4.2.5.2) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
51853
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'
51854
+ activesupport (4.2.5.2) lib/active_support/core_ext/benchmark.rb:12:in `ms'
51855
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:44:in `block in render'
51856
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
51857
+ activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
51858
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:43:in `render'
51859
+ wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
51860
+ wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
51861
+ /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
51862
+ actionpack (4.2.5.2) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
51863
+ actionpack (4.2.5.2) lib/abstract_controller/base.rb:198:in `process_action'
51864
+ actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:10:in `process_action'
51865
+ actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
51866
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call'
51867
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call'
51868
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
51869
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call'
51870
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call'
51871
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:92:in `__run_callbacks__'
51872
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
51873
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
51874
+ actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:19:in `process_action'
51875
+ actionpack (4.2.5.2) lib/action_controller/metal/rescue.rb:29:in `process_action'
51876
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
51877
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument'
51878
+ activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
51879
+ activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument'
51880
+ actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
51881
+ actionpack (4.2.5.2) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
51882
+ activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
51883
+ actionpack (4.2.5.2) lib/abstract_controller/base.rb:137:in `process'
51884
+ actionview (4.2.5.2) lib/action_view/rendering.rb:30:in `process'
51885
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:196:in `dispatch'
51886
+ actionpack (4.2.5.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
51887
+ actionpack (4.2.5.2) lib/action_controller/metal.rb:237:in `block in action'
51888
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `call'
51889
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
51890
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:43:in `serve'
51891
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
51892
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
51893
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
51894
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
51895
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
51896
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `public_send'
51897
+ railties (4.2.5.2) lib/rails/railtie.rb:194:in `method_missing'
51898
+ actionpack (4.2.5.2) lib/action_dispatch/routing/mapper.rb:51:in `serve'
51899
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
51900
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each'
51901
+ actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve'
51902
+ actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call'
51903
+ rack (1.6.4) lib/rack/etag.rb:24:in `call'
51904
+ rack (1.6.4) lib/rack/conditionalget.rb:25:in `call'
51905
+ rack (1.6.4) lib/rack/head.rb:13:in `call'
51906
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
51907
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/flash.rb:260:in `call'
51908
+ rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
51909
+ rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
51910
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/cookies.rb:560:in `call'
51911
+ activerecord (4.2.5.2) lib/active_record/query_cache.rb:36:in `call'
51912
+ activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
51913
+ activerecord (4.2.5.2) lib/active_record/migration.rb:377:in `call'
51914
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
51915
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
51916
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
51917
+ activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
51918
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
51919
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/reloader.rb:73:in `call'
51920
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
51921
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
51922
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
51923
+ railties (4.2.5.2) lib/rails/rack/logger.rb:38:in `call_app'
51924
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `block in call'
51925
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
51926
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:26:in `tagged'
51927
+ activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `tagged'
51928
+ railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `call'
51929
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
51930
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
51931
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
51932
+ activesupport (4.2.5.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
51933
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
51934
+ actionpack (4.2.5.2) lib/action_dispatch/middleware/static.rb:116:in `call'
51935
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
51936
+ railties (4.2.5.2) lib/rails/engine.rb:518:in `call'
51937
+ railties (4.2.5.2) lib/rails/application.rb:165:in `call'
51938
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
51939
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
51940
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
51941
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
51942
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
51943
+ /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
51944
+
51945
+
51946
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (9.4ms)
51947
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms)
51948
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)
51949
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (23.5ms)
51950
+
51951
+
51952
+ Started GET "/simple_cart/orders/1/checkout/payment" for 127.0.0.1 at 2016-03-14 20:51:40 +0200
51953
+ Processing by SimpleCart::CheckoutController#show as HTML
51954
+ Parameters: {"order_id"=>"1", "id"=>"payment"}
51955
+ SimpleCart::Order Load (0.3ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
51956
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
51957
+ SimpleCart::BillingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
51958
+ SimpleCart::ShippingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
51959
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
51960
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.9ms)
51961
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (17.3ms)
51962
+ Completed 200 OK in 42ms (Views: 35.4ms | ActiveRecord: 0.8ms)
51963
+
51964
+
51965
+ Started PATCH "/simple_cart/orders/1/checkout/payment" for 127.0.0.1 at 2016-03-14 20:51:47 +0200
51966
+ Processing by SimpleCart::CheckoutController#update as HTML
51967
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"/RPOUEOjuZ2SJKLmMSI+8pCGp8+1FiEGXHP16h4fFzmVSYuSKJu5QJ4vZVqsxCw1qhqCRwEZV7zNMybk4e7YMA==", "order"=>{"credit_card_attributes"=>{"number"=>"2222122222222222", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"123", "firstname"=>"5215", "lastname"=>"521"}}, "commit"=>"Continue", "order_id"=>"1", "id"=>"payment"}
51968
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
51969
+  (0.1ms) begin transaction
51970
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
51971
+ SQL (0.5ms) INSERT INTO "simple_cart_credit_cards" ("number", "expiration_month", "expiration_year", "cvv", "firstname", "lastname", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2222122222222222"], ["expiration_month", "01"], ["expiration_year", "2017"], ["cvv", "123"], ["firstname", "5215"], ["lastname", "521"], ["order_id", 1], ["created_at", "2016-03-14 18:51:47.137716"], ["updated_at", "2016-03-14 18:51:47.137716"]]
51972
+  (58.1ms) commit transaction
51973
+  (0.1ms) begin transaction
51974
+  (0.0ms) commit transaction
51975
+ Redirected to http://localhost:3000/simple_cart/orders/1/checkout/confirm
51976
+ Completed 302 Found in 70ms (ActiveRecord: 58.9ms)
51977
+
51978
+
51979
+ Started GET "/simple_cart/orders/1/checkout/confirm" for 127.0.0.1 at 2016-03-14 20:51:47 +0200
51980
+ Processing by SimpleCart::CheckoutController#show as HTML
51981
+ Parameters: {"order_id"=>"1", "id"=>"confirm"}
51982
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
51983
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
51984
+ SimpleCart::BillingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
51985
+ SimpleCart::ShippingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
51986
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms)
51987
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
51988
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (6.9ms)
51989
+ SimpleCart::OrderItem Exists (0.2ms) SELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1 [["order_id", "1"]]
51990
+ SimpleCart::OrderItem Load (0.1ms) SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "1"]]
51991
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
51992
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (31.2ms)
51993
+ Completed 200 OK in 52ms (Views: 48.3ms | ActiveRecord: 0.8ms)
51994
+
51995
+
51996
+ Started GET "/simple_cart/orders/1/checkout/delivery" for 127.0.0.1 at 2016-03-14 20:51:50 +0200
51997
+ Processing by SimpleCart::CheckoutController#show as HTML
51998
+ Parameters: {"order_id"=>"1", "id"=>"delivery"}
51999
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
52000
+ SimpleCart::ShippingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
52001
+ SimpleCart::BillingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
52002
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
52003
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.3ms)
52004
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
52005
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52006
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
52007
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
52008
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
52009
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
52010
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
52011
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
52012
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
52013
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
52014
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (7.9ms)
52015
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (18.2ms)
52016
+ Completed 200 OK in 37ms (Views: 33.8ms | ActiveRecord: 0.8ms)
52017
+
52018
+
52019
+ Started PATCH "/simple_cart/orders/1/checkout/delivery" for 127.0.0.1 at 2016-03-14 20:51:51 +0200
52020
+ Processing by SimpleCart::CheckoutController#update as HTML
52021
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"UGh80C891X4NACgZJpjUaoHMqxT4PFBpfl0nRi4C5gc4MjkSRAXVowEL76W7fsatu1COnEwzJtPvHfRI0fMpDg==", "order"=>{"delivery_id"=>"1"}, "commit"=>"Continue", "order_id"=>"1", "id"=>"delivery"}
52022
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
52023
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
52024
+  (0.1ms) begin transaction
52025
+  (0.0ms) commit transaction
52026
+ Redirected to http://localhost:3000/simple_cart/orders/1/checkout/payment
52027
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
52028
+
52029
+
52030
+ Started GET "/simple_cart/orders/1/checkout/payment" for 127.0.0.1 at 2016-03-14 20:51:51 +0200
52031
+ Processing by SimpleCart::CheckoutController#show as HTML
52032
+ Parameters: {"order_id"=>"1", "id"=>"payment"}
52033
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
52034
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
52035
+ SimpleCart::BillingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
52036
+ SimpleCart::ShippingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
52037
+ SimpleCart::CreditCard Load (0.0ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
52038
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
52039
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (9.2ms)
52040
+ Completed 200 OK in 28ms (Views: 24.9ms | ActiveRecord: 0.3ms)
52041
+
52042
+
52043
+ Started GET "/simple_cart/orders/1/checkout/confirm" for 127.0.0.1 at 2016-03-14 20:51:52 +0200
52044
+ Processing by SimpleCart::CheckoutController#show as HTML
52045
+ Parameters: {"order_id"=>"1", "id"=>"confirm"}
52046
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
52047
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
52048
+ SimpleCart::BillingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
52049
+ SimpleCart::ShippingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
52050
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms)
52051
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
52052
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (5.7ms)
52053
+ SimpleCart::OrderItem Exists (0.1ms) SELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1 [["order_id", "1"]]
52054
+ SimpleCart::OrderItem Load (0.1ms) SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "1"]]
52055
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
52056
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (18.6ms)
52057
+ Completed 200 OK in 38ms (Views: 33.6ms | ActiveRecord: 0.7ms)
52058
+
52059
+
52060
+ Started PATCH "/simple_cart/orders/1" for 127.0.0.1 at 2016-03-14 20:51:52 +0200
52061
+ Processing by SimpleCart::OrdersController#update as HTML
52062
+ Parameters: {"authenticity_token"=>"xGf7HzWTtR49xbQlXpjQT7Mnv87zWpLb4vEWge5NbwisPb7dXqu1wzHOc5nDfsKIibuaRkdV5GFzscWPEbygAQ==", "id"=>"1"}
52063
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
52064
+  (0.1ms) begin transaction
52065
+ SQL (0.2ms) UPDATE "simple_cart_orders" SET "aasm_state" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["aasm_state", "in_queue"], ["updated_at", "2016-03-14 18:51:52.821847"], ["id", 1]]
52066
+  (222.2ms) commit transaction
52067
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
52068
+  (0.1ms) begin transaction
52069
+ SQL (0.2ms) UPDATE "simple_cart_orders" SET "total_price" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["total_price", 104504.0], ["updated_at", "2016-03-14 18:51:53.047051"], ["id", 1]]
52070
+  (65.9ms) commit transaction
52071
+ Redirected to http://localhost:3000/simple_cart/orders/1
52072
+ Completed 302 Found in 296ms (ActiveRecord: 288.9ms)
52073
+
52074
+
52075
+ Started GET "/simple_cart/orders/1" for 127.0.0.1 at 2016-03-14 20:51:53 +0200
52076
+ Processing by SimpleCart::OrdersController#show as HTML
52077
+ Parameters: {"id"=>"1"}
52078
+ SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
52079
+ SimpleCart::BillingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
52080
+ SimpleCart::ShippingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
52081
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
52082
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
52083
+ SimpleCart::OrderItem Exists (0.1ms) SELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1 [["order_id", "1"]]
52084
+ SimpleCart::OrderItem Load (0.1ms) SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "1"]]
52085
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
52086
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (25.1ms)
52087
+ Completed 200 OK in 55ms (Views: 51.8ms | ActiveRecord: 0.9ms)
52088
+
52089
+
52090
+ Started GET "/simple_cart/orders/1/checkout" for 127.0.0.1 at 2016-03-14 20:52:00 +0200
52091
+ Processing by SimpleCart::CheckoutController#index as HTML
52092
+ Parameters: {"order_id"=>"1"}
52093
+ SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
52094
+ Redirected to http://localhost:3000/simple_cart/orders/1/checkout/billing
52095
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
52096
+
52097
+
52098
+ Started GET "/simple_cart/orders/1/checkout/billing" for 127.0.0.1 at 2016-03-14 20:52:00 +0200
52099
+ Processing by SimpleCart::CheckoutController#show as HTML
52100
+ Parameters: {"order_id"=>"1", "id"=>"billing"}
52101
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
52102
+ SimpleCart::BillingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
52103
+ SimpleCart::ShippingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
52104
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
52105
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.7ms)
52106
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (7.4ms)
52107
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
52108
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
52109
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
52110
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
52111
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
52112
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
52113
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
52114
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
52115
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.2ms)
52116
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (18.3ms)
52117
+ Completed 200 OK in 39ms (Views: 35.4ms | ActiveRecord: 0.5ms)
52118
+  (0.1ms) begin transaction
52119
+ SQL (0.2ms) INSERT INTO "simple_cart_deliveries" ("company", "costs", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["company", "task"], ["costs", 120.0], ["created_at", "2016-03-14 19:03:42.834026"], ["updated_at", "2016-03-14 19:03:42.834026"]]
52120
+  (66.7ms) commit transaction
52121
+
52122
+
52123
+ Started PATCH "/simple_cart/orders/1/checkout/billing" for 127.0.0.1 at 2016-03-14 21:03:53 +0200
52124
+ Processing by SimpleCart::CheckoutController#update as HTML
52125
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"qmjs/o1tCnGa/raA6+gkbmIwJg0TNCMRyvyyMfCjRGnCMqk85lUKrJb1cTx2DjapWKwDhac7VatbvGE/D1KLYA==", "order"=>{"billing_address_attributes"=>{"firstname"=>"fsa", "lastname"=>"gsgsa", "address"=>"sasgaasg", "zipcode"=>"saggsasga", "city"=>"gasgsa", "phone"=>"251", "country"=>"Afghanistan", "id"=>"1"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"1", "id"=>"billing"}
52126
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
52127
+ Unpermitted parameter: id
52128
+  (0.1ms) begin transaction
52129
+ SimpleCart::BillingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
52130
+ SQL (0.3ms) DELETE FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."id" = ? [["id", 1]]
52131
+ SQL (0.2ms) INSERT INTO "simple_cart_addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "SimpleCart::BillingAddress"], ["firstname", "fsa"], ["lastname", "gsgsa"], ["address", "sasgaasg"], ["zipcode", "saggsasga"], ["city", "gasgsa"], ["phone", "251"], ["country", "Afghanistan"], ["order_id", 1], ["created_at", "2016-03-14 19:03:53.102920"], ["updated_at", "2016-03-14 19:03:53.102920"]]
52132
+  (79.6ms) commit transaction
52133
+ SimpleCart::ShippingAddress Load (0.3ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
52134
+  (0.1ms) begin transaction
52135
+ SQL (0.2ms) DELETE FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."id" = ? [["id", 2]]
52136
+  (108.2ms) commit transaction
52137
+  (0.1ms) begin transaction
52138
+ SQL (0.3ms) INSERT INTO "simple_cart_addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "SimpleCart::ShippingAddress"], ["order_id", 1], ["address", "sasgaasg"], ["zipcode", "saggsasga"], ["city", "gasgsa"], ["phone", "251"], ["country", "Afghanistan"], ["created_at", "2016-03-14 19:03:53.102920"], ["updated_at", "2016-03-14 19:03:53.102920"], ["firstname", "fsa"], ["lastname", "gsgsa"]]
52139
+  (165.3ms) commit transaction
52140
+ Redirected to http://localhost:3000/simple_cart/orders/1/checkout/delivery
52141
+ Completed 302 Found in 409ms (ActiveRecord: 355.7ms)
52142
+
52143
+
52144
+ Started GET "/simple_cart/orders/1/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:03:53 +0200
52145
+ Processing by SimpleCart::CheckoutController#show as HTML
52146
+ Parameters: {"order_id"=>"1", "id"=>"delivery"}
52147
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
52148
+ SimpleCart::ShippingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
52149
+ SimpleCart::BillingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
52150
+ SimpleCart::CreditCard Load (0.2ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
52151
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.4ms)
52152
+ SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
52153
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52154
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52155
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
52156
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
52157
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
52158
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
52159
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
52160
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
52161
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
52162
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
52163
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
52164
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (5.0ms)
52165
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (18.1ms)
52166
+ Completed 200 OK in 52ms (Views: 36.1ms | ActiveRecord: 1.9ms)
52167
+  (0.1ms) begin transaction
52168
+ SQL (0.3ms) INSERT INTO "simple_cart_deliveries" ("company", "costs", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["company", "SSSS"], ["costs", 120.0], ["created_at", "2016-03-14 19:12:21.306346"], ["updated_at", "2016-03-14 19:12:21.306346"]]
52169
+  (59.3ms) commit transaction
52170
+
52171
+
52172
+ Started GET "/" for 127.0.0.1 at 2016-03-14 21:12:32 +0200
52173
+ Processing by Rails::WelcomeController#index as HTML
52174
+ Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/railties-4.2.5.2/lib/rails/templates/rails/welcome/index.html.erb (0.6ms)
52175
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)
52176
+
52177
+
52178
+ Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 21:12:37 +0200
52179
+ Processing by SimpleCart::CartsController#show as HTML
52180
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
52181
+ CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
52182
+ CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
52183
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (12.9ms)
52184
+ Completed 200 OK in 41ms (Views: 38.6ms | ActiveRecord: 0.5ms)
52185
+
52186
+
52187
+ Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 21:12:38 +0200
52188
+ Processing by SimpleCart::CartsController#checkout as HTML
52189
+ Parameters: {"authenticity_token"=>"DtW+5mULxDhy2/uGvuViqkYdjS2rML5CWg6Xpi8DnWdmj/skDjPE5X7QPDojA3BtfIGopR8/yPjLTkSo0PJSbg=="}
52190
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
52191
+ CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
52192
+  (0.1ms) begin transaction
52193
+ SQL (0.3ms) INSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 104502.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 19:12:38.802472"], ["updated_at", "2016-03-14 19:12:38.802472"]]
52194
+ SQL (0.2ms) INSERT INTO "simple_cart_order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 52251.0], ["qty", 2], ["itemable_id", 1], ["itemable_type", "Thing"], ["order_id", "2"], ["created_at", "2016-03-14 19:12:38.804257"], ["updated_at", "2016-03-14 19:12:38.804257"]]
52195
+  (46.6ms) commit transaction
52196
+ Redirected to http://localhost:3000/simple_cart/orders/2/checkout
52197
+ Completed 302 Found in 67ms (ActiveRecord: 47.7ms)
52198
+
52199
+
52200
+ Started GET "/simple_cart/orders/2/checkout" for 127.0.0.1 at 2016-03-14 21:12:38 +0200
52201
+ Processing by SimpleCart::CheckoutController#index as HTML
52202
+ Parameters: {"order_id"=>"2"}
52203
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52204
+ Redirected to http://localhost:3000/simple_cart/orders/2/checkout/billing
52205
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
52206
+
52207
+
52208
+ Started GET "/simple_cart/orders/2/checkout/billing" for 127.0.0.1 at 2016-03-14 21:12:38 +0200
52209
+ Processing by SimpleCart::CheckoutController#show as HTML
52210
+ Parameters: {"order_id"=>"2", "id"=>"billing"}
52211
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52212
+ SimpleCart::BillingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52213
+ SimpleCart::ShippingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52214
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
52215
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms)
52216
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (8.9ms)
52217
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52218
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52219
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.2ms)
52220
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (15.8ms)
52221
+ Completed 200 OK in 39ms (Views: 33.2ms | ActiveRecord: 0.4ms)
52222
+
52223
+
52224
+ Started PATCH "/simple_cart/orders/2/checkout/billing" for 127.0.0.1 at 2016-03-14 21:12:43 +0200
52225
+ Processing by SimpleCart::CheckoutController#update as HTML
52226
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"enJXAAl73af9Cwyc9px/WH9fmguv9hU4Ht5rYEpQy+8SKBLCYkPdevEAyyBrem2fRcO/gxv5Y4KPnrhutaEE5g==", "order"=>{"billing_address_attributes"=>{"firstname"=>"fsdag", "lastname"=>"sdgs", "address"=>"dgsd", "zipcode"=>"gsdg", "city"=>"sdgsd", "phone"=>"sdg", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"2", "id"=>"billing"}
52227
+ SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52228
+  (0.1ms) begin transaction
52229
+ SimpleCart::BillingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52230
+ SQL (0.2ms) INSERT INTO "simple_cart_addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "SimpleCart::BillingAddress"], ["firstname", "fsdag"], ["lastname", "sdgs"], ["address", "dgsd"], ["zipcode", "gsdg"], ["city", "sdgsd"], ["phone", "sdg"], ["country", "Afghanistan"], ["order_id", 2], ["created_at", "2016-03-14 19:12:43.659410"], ["updated_at", "2016-03-14 19:12:43.659410"]]
52231
+  (255.4ms) commit transaction
52232
+ SimpleCart::ShippingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52233
+  (0.1ms) begin transaction
52234
+ SQL (0.2ms) INSERT INTO "simple_cart_addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "SimpleCart::ShippingAddress"], ["order_id", 2], ["address", "dgsd"], ["zipcode", "gsdg"], ["city", "sdgsd"], ["phone", "sdg"], ["country", "Afghanistan"], ["created_at", "2016-03-14 19:12:43.659410"], ["updated_at", "2016-03-14 19:12:43.659410"], ["firstname", "fsdag"], ["lastname", "sdgs"]]
52235
+  (300.3ms) commit transaction
52236
+ Redirected to http://localhost:3000/simple_cart/orders/2/checkout/delivery
52237
+ Completed 302 Found in 571ms (ActiveRecord: 556.8ms)
52238
+
52239
+
52240
+ Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:12:44 +0200
52241
+ Processing by SimpleCart::CheckoutController#show as HTML
52242
+ Parameters: {"order_id"=>"2", "id"=>"delivery"}
52243
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52244
+ SimpleCart::ShippingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52245
+ SimpleCart::BillingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52246
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
52247
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.4ms)
52248
+ SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
52249
+ SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52250
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52251
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52252
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52253
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52254
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.0ms)
52255
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (10.0ms)
52256
+ Completed 200 OK in 35ms (Views: 29.1ms | ActiveRecord: 1.0ms)
52257
+
52258
+
52259
+ Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:13:14 +0200
52260
+ Processing by SimpleCart::CheckoutController#show as HTML
52261
+ Parameters: {"order_id"=>"2", "id"=>"delivery"}
52262
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52263
+ SimpleCart::ShippingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52264
+ SimpleCart::BillingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52265
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
52266
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.7ms)
52267
+ SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
52268
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52269
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52270
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52271
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52272
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52273
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (0.9ms)
52274
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (8.8ms)
52275
+ Completed 200 OK in 34ms (Views: 27.0ms | ActiveRecord: 0.8ms)
52276
+
52277
+
52278
+ Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:13:15 +0200
52279
+
52280
+
52281
+ Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:13:15 +0200
52282
+
52283
+
52284
+ Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:13:15 +0200
52285
+
52286
+
52287
+ Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:13:15 +0200
52288
+
52289
+
52290
+ Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:13:15 +0200
52291
+  (0.1ms) begin transaction
52292
+ SQL (0.3ms) INSERT INTO "simple_cart_deliveries" ("company", "costs", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["company", "sag"], ["costs", nil], ["created_at", "2016-03-14 19:14:22.633255"], ["updated_at", "2016-03-14 19:14:22.633255"]]
52293
+  (63.9ms) commit transaction
52294
+
52295
+
52296
+ Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:14:27 +0200
52297
+ Processing by SimpleCart::CheckoutController#show as HTML
52298
+ Parameters: {"order_id"=>"2", "id"=>"delivery"}
52299
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52300
+ SimpleCart::ShippingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52301
+ SimpleCart::BillingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52302
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
52303
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.3ms)
52304
+ SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
52305
+ SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52306
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52307
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52308
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52309
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52310
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52311
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.2ms)
52312
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (10.7ms)
52313
+ Completed 200 OK in 34ms (Views: 28.5ms | ActiveRecord: 1.1ms)
52314
+
52315
+
52316
+ Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:14:27 +0200
52317
+
52318
+
52319
+ Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:14:27 +0200
52320
+
52321
+
52322
+ Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:14:27 +0200
52323
+
52324
+
52325
+ Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:14:27 +0200
52326
+
52327
+
52328
+ Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:14:27 +0200
52329
+  (0.1ms) begin transaction
52330
+ SQL (0.3ms) INSERT INTO "simple_cart_deliveries" ("company", "costs", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["company", "sag"], ["costs", 12.0], ["created_at", "2016-03-14 19:14:53.345336"], ["updated_at", "2016-03-14 19:14:53.345336"]]
52331
+  (62.9ms) commit transaction
52332
+
52333
+
52334
+ Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:14:54 +0200
52335
+ Processing by SimpleCart::CheckoutController#show as HTML
52336
+ Parameters: {"order_id"=>"2", "id"=>"delivery"}
52337
+ SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52338
+ SimpleCart::ShippingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52339
+ SimpleCart::BillingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52340
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
52341
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.4ms)
52342
+ SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
52343
+ SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52344
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52345
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52346
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52347
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52348
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52349
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52350
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (0.9ms)
52351
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (10.7ms)
52352
+ Completed 200 OK in 34ms (Views: 27.2ms | ActiveRecord: 1.1ms)
52353
+
52354
+
52355
+ Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:14:54 +0200
52356
+
52357
+
52358
+ Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:14:54 +0200
52359
+
52360
+
52361
+ Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:14:54 +0200
52362
+
52363
+
52364
+ Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:14:54 +0200
52365
+
52366
+
52367
+ Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:14:54 +0200
52368
+  (0.1ms) begin transaction
52369
+ SQL (0.2ms) INSERT INTO "simple_cart_deliveries" ("company", "costs", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["company", "New"], ["costs", 125.0], ["created_at", "2016-03-14 19:16:51.993013"], ["updated_at", "2016-03-14 19:16:51.993013"]]
52370
+  (63.7ms) commit transaction
52371
+
52372
+
52373
+ Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:17:01 +0200
52374
+ Processing by SimpleCart::CheckoutController#show as HTML
52375
+ Parameters: {"order_id"=>"2", "id"=>"delivery"}
52376
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52377
+ SimpleCart::ShippingAddress Load (0.3ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52378
+ SimpleCart::BillingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52379
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
52380
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.9ms)
52381
+ SimpleCart::Delivery Load (0.3ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
52382
+ SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52383
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52384
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52385
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52386
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52387
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52388
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52389
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52390
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.1ms)
52391
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (13.3ms)
52392
+ Completed 200 OK in 34ms (Views: 29.0ms | ActiveRecord: 1.1ms)
52393
+
52394
+
52395
+ Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:17:01 +0200
52396
+
52397
+
52398
+ Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:17:01 +0200
52399
+
52400
+
52401
+ Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:17:01 +0200
52402
+
52403
+
52404
+ Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:17:01 +0200
52405
+
52406
+
52407
+ Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:17:01 +0200
52408
+
52409
+
52410
+ Started PATCH "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:17:04 +0200
52411
+ Processing by SimpleCart::CheckoutController#update as HTML
52412
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"6DOXam8ErtxYRomDfY+GvG6UnorYMrzoaWzyjHVLwjyAadKoBDyuAVRNTj/gaZR7VAi7Amw9ylL4LCGCiroNNQ==", "order"=>{"delivery_id"=>"6"}, "commit"=>"Continue", "order_id"=>"2", "id"=>"delivery"}
52413
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52414
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52415
+  (0.1ms) begin transaction
52416
+ SQL (0.3ms) UPDATE "simple_cart_orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["delivery_id", 6], ["updated_at", "2016-03-14 19:17:04.292802"], ["id", 2]]
52417
+  (48.9ms) commit transaction
52418
+ Redirected to http://localhost:3000/simple_cart/orders/2/checkout/payment
52419
+ Completed 302 Found in 57ms (ActiveRecord: 49.6ms)
52420
+
52421
+
52422
+ Started GET "/simple_cart/orders/2/checkout/payment" for 127.0.0.1 at 2016-03-14 21:17:04 +0200
52423
+ Processing by SimpleCart::CheckoutController#show as HTML
52424
+ Parameters: {"order_id"=>"2", "id"=>"payment"}
52425
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52426
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52427
+ SimpleCart::BillingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52428
+ SimpleCart::ShippingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52429
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
52430
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
52431
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (7.1ms)
52432
+ Completed 200 OK in 28ms (Views: 23.4ms | ActiveRecord: 0.6ms)
52433
+
52434
+
52435
+ Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:17:05 +0200
52436
+ Processing by SimpleCart::CheckoutController#show as HTML
52437
+ Parameters: {"order_id"=>"2", "id"=>"delivery"}
52438
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52439
+ SimpleCart::ShippingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52440
+ SimpleCart::BillingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52441
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
52442
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms)
52443
+ SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
52444
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52445
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52446
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52447
+ CACHE (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52448
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52449
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52450
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52451
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52452
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52453
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52454
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52455
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52456
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52457
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52458
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52459
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.5ms)
52460
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (18.1ms)
52461
+ Completed 200 OK in 49ms (Views: 44.6ms | ActiveRecord: 1.1ms)
52462
+  (0.1ms) begin transaction
52463
+ SQL (0.3ms) INSERT INTO "simple_cart_deliveries" ("company", "costs", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["company", "News"], ["costs", 125.0], ["created_at", "2016-03-14 19:17:11.504819"], ["updated_at", "2016-03-14 19:17:11.504819"]]
52464
+  (49.6ms) commit transaction
52465
+  (0.1ms) begin transaction
52466
+ SQL (0.3ms) INSERT INTO "simple_cart_deliveries" ("company", "costs", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["company", "News"], ["costs", 125.0], ["created_at", "2016-03-14 19:17:35.988845"], ["updated_at", "2016-03-14 19:17:35.988845"]]
52467
+  (47.5ms) commit transaction
52468
+ SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."company" = ? LIMIT 1 [["company", "News"]]
52469
+  (0.1ms) begin transaction
52470
+ SQL (0.2ms) DELETE FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? [["id", 7]]
52471
+  (61.3ms) commit transaction
52472
+
52473
+
52474
+ Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:19:00 +0200
52475
+ Processing by SimpleCart::CheckoutController#show as HTML
52476
+ Parameters: {"order_id"=>"2", "id"=>"delivery"}
52477
+ SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52478
+ SimpleCart::ShippingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52479
+ SimpleCart::BillingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52480
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
52481
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
52482
+ SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
52483
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52484
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52485
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52486
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52487
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52488
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52489
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52490
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52491
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52492
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52493
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52494
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52495
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52496
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52497
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52498
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52499
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.4ms)
52500
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (14.1ms)
52501
+ Completed 200 OK in 46ms (Views: 39.3ms | ActiveRecord: 1.2ms)
52502
+
52503
+
52504
+ Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:19:00 +0200
52505
+
52506
+
52507
+ Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:00 +0200
52508
+
52509
+
52510
+ Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:00 +0200
52511
+
52512
+
52513
+ Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:00 +0200
52514
+
52515
+
52516
+ Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:00 +0200
52517
+
52518
+
52519
+ Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:19:02 +0200
52520
+ Processing by SimpleCart::CheckoutController#show as HTML
52521
+ Parameters: {"order_id"=>"2", "id"=>"delivery"}
52522
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52523
+ SimpleCart::ShippingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52524
+ SimpleCart::BillingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52525
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
52526
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.1ms)
52527
+ SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
52528
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52529
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52530
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52531
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52532
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52533
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52534
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52535
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52536
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52537
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52538
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52539
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52540
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52541
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52542
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52543
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52544
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.4ms)
52545
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (16.1ms)
52546
+ Completed 200 OK in 38ms (Views: 32.7ms | ActiveRecord: 1.0ms)
52547
+
52548
+
52549
+ Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:02 +0200
52550
+
52551
+
52552
+ Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:19:02 +0200
52553
+
52554
+
52555
+ Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:02 +0200
52556
+
52557
+
52558
+ Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:02 +0200
52559
+
52560
+
52561
+ Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:02 +0200
52562
+ SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."company" = ? LIMIT 1 [["company", "News"]]
52563
+  (0.1ms) begin transaction
52564
+ SQL (0.2ms) DELETE FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? [["id", 8]]
52565
+  (70.7ms) commit transaction
52566
+
52567
+
52568
+ Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:19:18 +0200
52569
+ Processing by SimpleCart::CheckoutController#show as HTML
52570
+ Parameters: {"order_id"=>"2", "id"=>"delivery"}
52571
+ SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52572
+ SimpleCart::ShippingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52573
+ SimpleCart::BillingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52574
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
52575
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.6ms)
52576
+ SimpleCart::Delivery Load (0.3ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
52577
+ SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52578
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52579
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52580
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52581
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52582
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52583
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52584
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52585
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52586
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52587
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52588
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52589
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52590
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52591
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52592
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (3.6ms)
52593
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (15.3ms)
52594
+ Completed 200 OK in 38ms (Views: 31.1ms | ActiveRecord: 1.2ms)
52595
+
52596
+
52597
+ Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:18 +0200
52598
+
52599
+
52600
+ Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:18 +0200
52601
+
52602
+
52603
+ Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:19:18 +0200
52604
+
52605
+
52606
+ Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:18 +0200
52607
+
52608
+
52609
+ Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:18 +0200
52610
+
52611
+
52612
+ Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:19:20 +0200
52613
+ Processing by SimpleCart::CheckoutController#show as HTML
52614
+ Parameters: {"order_id"=>"2", "id"=>"delivery"}
52615
+ SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52616
+ SimpleCart::ShippingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52617
+ SimpleCart::BillingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52618
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
52619
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.6ms)
52620
+ SimpleCart::Delivery Load (0.3ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
52621
+ SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52622
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52623
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52624
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52625
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52626
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52627
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52628
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52629
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52630
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52631
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52632
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52633
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52634
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52635
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52636
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (5.8ms)
52637
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (20.6ms)
52638
+ Completed 200 OK in 50ms (Views: 41.6ms | ActiveRecord: 1.5ms)
52639
+
52640
+
52641
+ Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:19:20 +0200
52642
+
52643
+
52644
+ Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:20 +0200
52645
+
52646
+
52647
+ Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:20 +0200
52648
+
52649
+
52650
+ Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:20 +0200
52651
+
52652
+
52653
+ Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:20 +0200
52654
+ SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."company" = ? LIMIT 1 [["company", "New"]]
52655
+  (0.1ms) begin transaction
52656
+ SQL (0.2ms) DELETE FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? [["id", 6]]
52657
+  (59.1ms) commit transaction
52658
+
52659
+
52660
+ Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:19:27 +0200
52661
+ Processing by SimpleCart::CheckoutController#show as HTML
52662
+ Parameters: {"order_id"=>"2", "id"=>"delivery"}
52663
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52664
+ SimpleCart::ShippingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52665
+ SimpleCart::BillingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52666
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
52667
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
52668
+ SimpleCart::Delivery Load (0.4ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
52669
+ SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52670
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52671
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52672
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52673
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52674
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52675
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52676
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52677
+ CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52678
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.6ms)
52679
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (12.5ms)
52680
+ Completed 200 OK in 34ms (Views: 29.0ms | ActiveRecord: 1.2ms)
52681
+
52682
+
52683
+ Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:19:27 +0200
52684
+
52685
+
52686
+ Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:27 +0200
52687
+
52688
+
52689
+ Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:27 +0200
52690
+
52691
+
52692
+ Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:27 +0200
52693
+
52694
+
52695
+ Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:27 +0200
52696
+ SQL (81.8ms) DELETE FROM "simple_cart_deliveries"
52697
+
52698
+
52699
+ Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:19:58 +0200
52700
+ Processing by SimpleCart::CheckoutController#show as HTML
52701
+ Parameters: {"order_id"=>"2", "id"=>"delivery"}
52702
+ SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52703
+ SimpleCart::ShippingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52704
+ SimpleCart::BillingAddress Load (0.3ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52705
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
52706
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
52707
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
52708
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52709
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52710
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52711
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.4ms)
52712
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (5.4ms)
52713
+ Completed 200 OK in 30ms (Views: 23.9ms | ActiveRecord: 0.9ms)
52714
+
52715
+
52716
+ Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:19:59 +0200
52717
+
52718
+
52719
+ Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:59 +0200
52720
+
52721
+
52722
+ Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:59 +0200
52723
+
52724
+
52725
+ Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:59 +0200
52726
+
52727
+
52728
+ Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:59 +0200
52729
+  (0.1ms) begin transaction
52730
+ SQL (0.3ms) INSERT INTO "simple_cart_deliveries" ("company", "costs", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["company", "UPS"], ["costs", 20.0], ["created_at", "2016-03-14 19:20:26.585099"], ["updated_at", "2016-03-14 19:20:26.585099"]]
52731
+  (50.7ms) commit transaction
52732
+
52733
+
52734
+ Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:20:30 +0200
52735
+ Processing by SimpleCart::CheckoutController#show as HTML
52736
+ Parameters: {"order_id"=>"2", "id"=>"delivery"}
52737
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52738
+ SimpleCart::ShippingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52739
+ SimpleCart::BillingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52740
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
52741
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
52742
+ SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
52743
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
52744
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52745
+ CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
52746
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
52747
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.9ms)
52748
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (7.6ms)
52749
+ Completed 200 OK in 29ms (Views: 24.2ms | ActiveRecord: 0.9ms)
52750
+
52751
+
52752
+ Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:20:31 +0200
52753
+
52754
+
52755
+ Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:20:31 +0200
52756
+
52757
+
52758
+ Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:20:31 +0200
52759
+
52760
+
52761
+ Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:20:31 +0200
52762
+
52763
+
52764
+ Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:20:31 +0200
52765
+
52766
+
52767
+ Started PATCH "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:20:32 +0200
52768
+ Processing by SimpleCart::CheckoutController#update as HTML
52769
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"hTT4hg5HdlSPdWXxBP3C/C3EFuYfmBC88GQSbYsxdXztbr1EZX92iYN+ok2ZG9A7F1gzbquXZgZhJMFjdMC6dQ==", "order"=>{"delivery_id"=>"9"}, "commit"=>"Continue", "order_id"=>"2", "id"=>"delivery"}
52770
+ SimpleCart::Order Load (0.5ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52771
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
52772
+  (0.1ms) begin transaction
52773
+ SQL (0.2ms) UPDATE "simple_cart_orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["delivery_id", 9], ["updated_at", "2016-03-14 19:20:32.348577"], ["id", 2]]
52774
+  (78.4ms) commit transaction
52775
+ Redirected to http://localhost:3000/simple_cart/orders/2/checkout/payment
52776
+ Completed 302 Found in 84ms (ActiveRecord: 79.3ms)
52777
+
52778
+
52779
+ Started GET "/simple_cart/orders/2/checkout/payment" for 127.0.0.1 at 2016-03-14 21:20:32 +0200
52780
+ Processing by SimpleCart::CheckoutController#show as HTML
52781
+ Parameters: {"order_id"=>"2", "id"=>"payment"}
52782
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52783
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
52784
+ SimpleCart::BillingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52785
+ SimpleCart::ShippingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52786
+ SimpleCart::CreditCard Load (0.0ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
52787
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms)
52788
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (7.2ms)
52789
+ Completed 200 OK in 38ms (Views: 33.5ms | ActiveRecord: 0.5ms)
52790
+
52791
+
52792
+ Started PATCH "/simple_cart/orders/2/checkout/payment" for 127.0.0.1 at 2016-03-14 21:20:39 +0200
52793
+ Processing by SimpleCart::CheckoutController#update as HTML
52794
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"oKAXENP7Tja/0QOHB0lTyUH4UpdVuS9T88uszbVD2tbI+lLSuMNO67PaxDuar0EOe2R3H+G2Welii3/DSrIV3w==", "order"=>{"credit_card_attributes"=>{"number"=>"1111111111111111", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"252", "firstname"=>"125", "lastname"=>"125"}}, "commit"=>"Continue", "order_id"=>"2", "id"=>"payment"}
52795
+ SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52796
+  (0.1ms) begin transaction
52797
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
52798
+ SQL (0.4ms) INSERT INTO "simple_cart_credit_cards" ("number", "expiration_month", "expiration_year", "cvv", "firstname", "lastname", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "1111111111111111"], ["expiration_month", "01"], ["expiration_year", "2017"], ["cvv", "252"], ["firstname", "125"], ["lastname", "125"], ["order_id", 2], ["created_at", "2016-03-14 19:20:39.319648"], ["updated_at", "2016-03-14 19:20:39.319648"]]
52799
+  (72.0ms) commit transaction
52800
+  (0.1ms) begin transaction
52801
+  (0.1ms) commit transaction
52802
+ Redirected to http://localhost:3000/simple_cart/orders/2/checkout/confirm
52803
+ Completed 302 Found in 81ms (ActiveRecord: 72.9ms)
52804
+
52805
+
52806
+ Started GET "/simple_cart/orders/2/checkout/confirm" for 127.0.0.1 at 2016-03-14 21:20:39 +0200
52807
+ Processing by SimpleCart::CheckoutController#show as HTML
52808
+ Parameters: {"order_id"=>"2", "id"=>"confirm"}
52809
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52810
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
52811
+ SimpleCart::BillingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52812
+ SimpleCart::ShippingAddress Load (0.1ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52813
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.1ms)
52814
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
52815
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (2.3ms)
52816
+ SimpleCart::OrderItem Exists (0.2ms) SELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1 [["order_id", "2"]]
52817
+ SimpleCart::OrderItem Load (0.2ms) SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "2"]]
52818
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
52819
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (12.6ms)
52820
+ Completed 200 OK in 33ms (Views: 28.9ms | ActiveRecord: 0.9ms)
52821
+
52822
+
52823
+ Started PATCH "/simple_cart/orders/2" for 127.0.0.1 at 2016-03-14 21:20:41 +0200
52824
+ Processing by SimpleCart::OrdersController#update as HTML
52825
+ Parameters: {"authenticity_token"=>"LEcDnLGFQJu/WJurW5Q0105VrccnJ7aLG+BHcX8dYmpEHUZe2r1ARrNTXBfGciYQdMmIT5MowDGKoJR/gOytYw==", "id"=>"2"}
52826
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52827
+  (0.1ms) begin transaction
52828
+ SQL (0.2ms) UPDATE "simple_cart_orders" SET "aasm_state" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["aasm_state", "in_queue"], ["updated_at", "2016-03-14 19:20:41.545591"], ["id", 2]]
52829
+  (51.9ms) commit transaction
52830
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
52831
+  (0.1ms) begin transaction
52832
+ SQL (0.2ms) UPDATE "simple_cart_orders" SET "total_price" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["total_price", 104522.0], ["updated_at", "2016-03-14 19:20:41.600398"], ["id", 2]]
52833
+  (329.0ms) commit transaction
52834
+ Redirected to http://localhost:3000/simple_cart/orders/2
52835
+ Completed 302 Found in 391ms (ActiveRecord: 381.6ms)
52836
+
52837
+
52838
+ Started GET "/simple_cart/orders/2" for 127.0.0.1 at 2016-03-14 21:20:41 +0200
52839
+ Processing by SimpleCart::OrdersController#show as HTML
52840
+ Parameters: {"id"=>"2"}
52841
+ SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
52842
+ SimpleCart::BillingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52843
+ SimpleCart::ShippingAddress Load (0.2ms) SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
52844
+ SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
52845
+ SimpleCart::CreditCard Load (0.1ms) SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
52846
+ SimpleCart::OrderItem Exists (0.1ms) SELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1 [["order_id", "2"]]
52847
+ SimpleCart::OrderItem Load (0.1ms) SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "2"]]
52848
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
52849
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (10.5ms)
52850
+ Completed 200 OK in 31ms (Views: 28.7ms | ActiveRecord: 1.0ms)
52851
+
52852
+
52853
+ Started GET "/simple_cart/orders" for 127.0.0.1 at 2016-03-14 21:20:43 +0200
52854
+ Processing by SimpleCart::OrdersController#index as HTML
52855
+  (0.1ms) SELECT COUNT(*) FROM "simple_cart_orders"
52856
+  (0.1ms) SELECT COUNT(*) FROM "simple_cart_orders" WHERE "simple_cart_orders"."aasm_state" = ? [["aasm_state", "in_progress"]]
52857
+  (0.1ms) SELECT COUNT(*) FROM "simple_cart_orders" WHERE "simple_cart_orders"."aasm_state" = ? [["aasm_state", "in_queue"]]
52858
+ SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."aasm_state" = ? ORDER BY "simple_cart_orders"."id" DESC [["aasm_state", "in_queue"]]
52859
+  (0.1ms) SELECT COUNT(*) FROM "simple_cart_orders" WHERE "simple_cart_orders"."aasm_state" = ? [["aasm_state", "delivered"]]
52860
+ Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/index.html.haml within layouts/simple_cart/application (14.0ms)
52861
+ Completed 200 OK in 34ms (Views: 32.1ms | ActiveRecord: 0.6ms)