spec/dummy/log/development.log in simple_cart-0.0.4 vs spec/dummy/log/development.log in simple_cart-0.0.5

- old
+ new

@@ -60107,5 +60107,4032 @@ Processing by SimpleCart::CartsController#show as HTML Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (8.0ms) Completed 200 OK in 27ms (Views: 26.6ms | ActiveRecord: 0.1ms) + + +Started GET "/things" for 127.0.0.1 at 2016-03-16 01:18:10 +0200 + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" + Rendered things/index.html.erb within layouts/application (6.9ms) +Completed 200 OK in 1051ms (Views: 1019.3ms | ActiveRecord: 0.4ms) + + +Started GET "/things/1" for 127.0.0.1 at 2016-03-16 01:18:13 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (855.3ms) + Rendered things/show.html.erb within layouts/application (900.1ms) +Completed 200 OK in 1262ms (Views: 1032.4ms | ActiveRecord: 0.2ms) + + +Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-16 01:18:16 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"LheyizTLf0YyZtl82FuRHmsRoUFHQy530MQAfbWRpWf8yX4Jqs67c8/2Wk+i2EdhaIGp8P50gW6V2eYmI8lffw==", "qty"=>"1", "klass"=>"Thing", "commit"=>"Add to cart", "item_id"=>"1"} +Redirected to http://localhost:3000/simple_cart/cart +Completed 302 Found in 45ms (ActiveRecord: 0.0ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-16 01:18:16 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (21.3ms) +Completed 200 OK in 313ms (Views: 311.6ms | ActiveRecord: 0.2ms) + + +Started GET "/things/1" for 127.0.0.1 at 2016-03-16 01:20:32 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (32.8ms) + Rendered things/show.html.erb within layouts/application (34.1ms) +Completed 500 Internal Server Error in 44ms (ActiveRecord: 0.6ms) + +ActionView::Template::Error (No route matches {:action=>"add", :controller=>"simple_cart/carts", :id=>"1", :item_class=>#<Thing id: 1, name: "225", price: #<BigDecimal:7f2544a64198,'0.52251E5',9(27)>, qty: 1, created_at: "2016-03-14 18:48:05", updated_at: "2016-03-14 18:48:05">, :item_id=>nil} missing required keys: [:item_id]): + 1: = form_for item, :url => simple_cart.add_to_cart_path(item), :html => {:class => 'form-inline one-line text-center'}, method: :post do |f| + 2: %h2 + 3: = number_to_currency(item.price) + 4: .form-group.integer.required.one-line + app/views/things/show.html.erb:18:in `_app_views_things_show_html_erb___1302743037026370421_69899020913740' + + + Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (16.9ms) + 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) + 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) + 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 (38.7ms) + + +Started GET "/things/1" for 127.0.0.1 at 2016-03-16 01:20:56 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.9ms) + Rendered things/show.html.erb within layouts/application (8.5ms) +Completed 200 OK in 30ms (Views: 24.6ms | ActiveRecord: 0.6ms) + + +Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-16 01:20:58 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"VJS7um539Mp6lE3UcbF9WYPsBG40OtjezqJotQJWs3mGSnc48HIw/4cEzucLMqsmgHwM340Nd8eLv47ulA5JYQ==", "qty"=>"1", "klass"=>"Thing", "commit"=>"Add to cart", "item_class"=>"1"} +Redirected to http://localhost:3000/simple_cart/cart +Completed 302 Found in 2ms (ActiveRecord: 0.0ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-16 01:20:58 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", nil]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (2.9ms) +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.3ms) + +ActiveRecord::RecordNotFound (Couldn't find Thing with 'id'=): + activerecord (4.2.5.2) lib/active_record/core.rb:155:in `find' + /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/simple_cart/cart.rb:26:in `block in items' + /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/simple_cart/cart.rb:25:in `each' + /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/simple_cart/cart.rb:25:in `items' + /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:29:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1891612016892401746_69899043000960' + haml (4.0.7) lib/haml/helpers/action_view_mods.rb:118:in `call' + haml (4.0.7) lib/haml/helpers/action_view_mods.rb:118:in `block (2 levels) in form_tag_with_haml' + haml (4.0.7) lib/haml/helpers.rb:278:in `with_tabs' + haml (4.0.7) lib/haml/helpers/action_view_mods.rb:118:in `block in form_tag_with_haml' + haml (4.0.7) lib/haml/helpers.rb:631:in `call' + haml (4.0.7) lib/haml/helpers.rb:631:in `block in haml_bind_proc' + haml (4.0.7) lib/haml/helpers.rb:368:in `call' + haml (4.0.7) lib/haml/helpers.rb:368:in `block in capture_haml' + haml (4.0.7) lib/haml/helpers.rb:608:in `with_haml_buffer' + haml (4.0.7) lib/haml/helpers.rb:364:in `capture_haml' + haml (4.0.7) lib/haml/helpers/xss_mods.rb:61:in `capture_haml_with_haml_xss' + haml (4.0.7) lib/haml/helpers/action_view_mods.rb:45:in `capture_with_haml' + actionview (4.2.5.2) lib/action_view/helpers/form_tag_helper.rb:70:in `form_tag' + haml (4.0.7) lib/haml/helpers/action_view_mods.rb:121:in `form_tag_with_haml' + haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:18:in `form_tag_with_haml_xss' + /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__1891612016892401746_69899043000960' + actionview (4.2.5.2) lib/action_view/template.rb:145:in `block in render' + activesupport (4.2.5.2) lib/active_support/notifications.rb:166:in `instrument' + actionview (4.2.5.2) lib/action_view/template.rb:333:in `instrument' + actionview (4.2.5.2) lib/action_view/template.rb:143:in `render' + actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template' + actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument' + activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument' + activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument' + activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument' + actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument' + actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template' + actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout' + actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:52:in `render_template' + actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:14:in `render' + actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:46:in `render_template' + actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:27:in `render' + actionview (4.2.5.2) lib/action_view/rendering.rb:100:in `_render_template' + actionpack (4.2.5.2) lib/action_controller/metal/streaming.rb:217:in `_render_template' + actionview (4.2.5.2) lib/action_view/rendering.rb:83:in `render_to_body' + actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:32:in `render_to_body' + actionpack (4.2.5.2) lib/action_controller/metal/renderers.rb:37:in `render_to_body' + actionpack (4.2.5.2) lib/abstract_controller/rendering.rb:25:in `render' + actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:16:in `render' + actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render' + activesupport (4.2.5.2) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' + /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/benchmark.rb:303:in `realtime' + activesupport (4.2.5.2) lib/active_support/core_ext/benchmark.rb:12:in `ms' + actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:44:in `block in render' + actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime' + activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' + actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:43:in `render' + actionpack (4.2.5.2) lib/action_controller/metal/implicit_render.rb:10:in `default_render' + actionpack (4.2.5.2) lib/action_controller/metal/implicit_render.rb:5:in `send_action' + actionpack (4.2.5.2) lib/abstract_controller/base.rb:198:in `process_action' + actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:10:in `process_action' + actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:20:in `block in process_action' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:92:in `__run_callbacks__' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks' + actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:19:in `process_action' + actionpack (4.2.5.2) lib/action_controller/metal/rescue.rb:29:in `process_action' + actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' + activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument' + activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument' + activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument' + actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action' + actionpack (4.2.5.2) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' + activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action' + actionpack (4.2.5.2) lib/abstract_controller/base.rb:137:in `process' + actionview (4.2.5.2) lib/action_view/rendering.rb:30:in `process' + actionpack (4.2.5.2) lib/action_controller/metal.rb:196:in `dispatch' + actionpack (4.2.5.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' + actionpack (4.2.5.2) lib/action_controller/metal.rb:237:in `block in action' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `call' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:43:in `serve' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call' + railties (4.2.5.2) lib/rails/engine.rb:518:in `call' + railties (4.2.5.2) lib/rails/railtie.rb:194:in `public_send' + railties (4.2.5.2) lib/rails/railtie.rb:194:in `method_missing' + actionpack (4.2.5.2) lib/action_dispatch/routing/mapper.rb:51:in `serve' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call' + rack (1.6.4) lib/rack/etag.rb:24:in `call' + rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' + rack (1.6.4) lib/rack/head.rb:13:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/flash.rb:260:in `call' + rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' + rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/cookies.rb:560:in `call' + activerecord (4.2.5.2) lib/active_record/query_cache.rb:36:in `call' + activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' + activerecord (4.2.5.2) lib/active_record/migration.rb:377:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:88:in `__run_callbacks__' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks' + actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/reloader.rb:73:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' + railties (4.2.5.2) lib/rails/rack/logger.rb:38:in `call_app' + railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `block in call' + activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `block in tagged' + activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:26:in `tagged' + activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `tagged' + railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/request_id.rb:21:in `call' + rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' + rack (1.6.4) lib/rack/runtime.rb:18:in `call' + activesupport (4.2.5.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' + rack (1.6.4) lib/rack/lock.rb:17:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/static.rb:116:in `call' + rack (1.6.4) lib/rack/sendfile.rb:113:in `call' + railties (4.2.5.2) lib/rails/engine.rb:518:in `call' + railties (4.2.5.2) lib/rails/application.rb:165:in `call' + rack (1.6.4) lib/rack/lock.rb:17:in `call' + rack (1.6.4) lib/rack/content_length.rb:15:in `call' + rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' + /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' + /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' + /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' + + + Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (9.6ms) + 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.9ms) + 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) + 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 (24.1ms) + + +Started GET "/things/1" for 127.0.0.1 at 2016-03-16 01:21:07 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.1ms) + Rendered things/show.html.erb within layouts/application (7.1ms) +Completed 200 OK in 30ms (Views: 23.5ms | ActiveRecord: 0.7ms) + + +Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-16 01:21:08 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"0RP/iZAW5B8qmoiI+cawqWuAySpD5ad6vifOOmbIZEEDzTMLDhMgKtcKC7uDRWbWaBDBm/rSCGP7Oihh8JCeWQ==", "qty"=>"1", "klass"=>"Thing", "commit"=>"Add to cart", "item_id"=>"1"} +Redirected to http://localhost:3000/simple_cart/cart +Completed 302 Found in 2ms (ActiveRecord: 0.0ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-16 01:21:08 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", nil]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (3.4ms) +Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.3ms) + +ActiveRecord::RecordNotFound (Couldn't find Thing with 'id'=): + activerecord (4.2.5.2) lib/active_record/core.rb:155:in `find' + /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/simple_cart/cart.rb:26:in `block in items' + /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/simple_cart/cart.rb:25:in `each' + /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/simple_cart/cart.rb:25:in `items' + /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:29:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1891612016892401746_69899043000960' + haml (4.0.7) lib/haml/helpers/action_view_mods.rb:118:in `call' + haml (4.0.7) lib/haml/helpers/action_view_mods.rb:118:in `block (2 levels) in form_tag_with_haml' + haml (4.0.7) lib/haml/helpers.rb:278:in `with_tabs' + haml (4.0.7) lib/haml/helpers/action_view_mods.rb:118:in `block in form_tag_with_haml' + haml (4.0.7) lib/haml/helpers.rb:631:in `call' + haml (4.0.7) lib/haml/helpers.rb:631:in `block in haml_bind_proc' + haml (4.0.7) lib/haml/helpers.rb:368:in `call' + haml (4.0.7) lib/haml/helpers.rb:368:in `block in capture_haml' + haml (4.0.7) lib/haml/helpers.rb:608:in `with_haml_buffer' + haml (4.0.7) lib/haml/helpers.rb:364:in `capture_haml' + haml (4.0.7) lib/haml/helpers/xss_mods.rb:61:in `capture_haml_with_haml_xss' + haml (4.0.7) lib/haml/helpers/action_view_mods.rb:45:in `capture_with_haml' + actionview (4.2.5.2) lib/action_view/helpers/form_tag_helper.rb:70:in `form_tag' + haml (4.0.7) lib/haml/helpers/action_view_mods.rb:121:in `form_tag_with_haml' + haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:18:in `form_tag_with_haml_xss' + /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__1891612016892401746_69899043000960' + actionview (4.2.5.2) lib/action_view/template.rb:145:in `block in render' + activesupport (4.2.5.2) lib/active_support/notifications.rb:166:in `instrument' + actionview (4.2.5.2) lib/action_view/template.rb:333:in `instrument' + actionview (4.2.5.2) lib/action_view/template.rb:143:in `render' + actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template' + actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument' + activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument' + activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument' + activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument' + actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument' + actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template' + actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout' + actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:52:in `render_template' + actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:14:in `render' + actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:46:in `render_template' + actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:27:in `render' + actionview (4.2.5.2) lib/action_view/rendering.rb:100:in `_render_template' + actionpack (4.2.5.2) lib/action_controller/metal/streaming.rb:217:in `_render_template' + actionview (4.2.5.2) lib/action_view/rendering.rb:83:in `render_to_body' + actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:32:in `render_to_body' + actionpack (4.2.5.2) lib/action_controller/metal/renderers.rb:37:in `render_to_body' + actionpack (4.2.5.2) lib/abstract_controller/rendering.rb:25:in `render' + actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:16:in `render' + actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render' + activesupport (4.2.5.2) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' + /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/benchmark.rb:303:in `realtime' + activesupport (4.2.5.2) lib/active_support/core_ext/benchmark.rb:12:in `ms' + actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:44:in `block in render' + actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime' + activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' + actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:43:in `render' + actionpack (4.2.5.2) lib/action_controller/metal/implicit_render.rb:10:in `default_render' + actionpack (4.2.5.2) lib/action_controller/metal/implicit_render.rb:5:in `send_action' + actionpack (4.2.5.2) lib/abstract_controller/base.rb:198:in `process_action' + actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:10:in `process_action' + actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:20:in `block in process_action' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:92:in `__run_callbacks__' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks' + actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:19:in `process_action' + actionpack (4.2.5.2) lib/action_controller/metal/rescue.rb:29:in `process_action' + actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' + activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument' + activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument' + activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument' + actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action' + actionpack (4.2.5.2) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' + activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action' + actionpack (4.2.5.2) lib/abstract_controller/base.rb:137:in `process' + actionview (4.2.5.2) lib/action_view/rendering.rb:30:in `process' + actionpack (4.2.5.2) lib/action_controller/metal.rb:196:in `dispatch' + actionpack (4.2.5.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' + actionpack (4.2.5.2) lib/action_controller/metal.rb:237:in `block in action' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `call' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:43:in `serve' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call' + railties (4.2.5.2) lib/rails/engine.rb:518:in `call' + railties (4.2.5.2) lib/rails/railtie.rb:194:in `public_send' + railties (4.2.5.2) lib/rails/railtie.rb:194:in `method_missing' + actionpack (4.2.5.2) lib/action_dispatch/routing/mapper.rb:51:in `serve' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call' + rack (1.6.4) lib/rack/etag.rb:24:in `call' + rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' + rack (1.6.4) lib/rack/head.rb:13:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/flash.rb:260:in `call' + rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' + rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/cookies.rb:560:in `call' + activerecord (4.2.5.2) lib/active_record/query_cache.rb:36:in `call' + activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' + activerecord (4.2.5.2) lib/active_record/migration.rb:377:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:88:in `__run_callbacks__' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks' + actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/reloader.rb:73:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' + railties (4.2.5.2) lib/rails/rack/logger.rb:38:in `call_app' + railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `block in call' + activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `block in tagged' + activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:26:in `tagged' + activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `tagged' + railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/request_id.rb:21:in `call' + rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' + rack (1.6.4) lib/rack/runtime.rb:18:in `call' + activesupport (4.2.5.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' + rack (1.6.4) lib/rack/lock.rb:17:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/static.rb:116:in `call' + rack (1.6.4) lib/rack/sendfile.rb:113:in `call' + railties (4.2.5.2) lib/rails/engine.rb:518:in `call' + railties (4.2.5.2) lib/rails/application.rb:165:in `call' + rack (1.6.4) lib/rack/lock.rb:17:in `call' + rack (1.6.4) lib/rack/content_length.rb:15:in `call' + rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' + /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' + /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' + /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' + + + Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.0ms) + 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) + 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) + 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) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-16 01:21:20 +0200 +Processing by SimpleCart::CartsController#show as HTML + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (0.8ms) +Completed 200 OK in 40ms (Views: 39.7ms | ActiveRecord: 0.0ms) + + +Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-16 01:21:21 +0200 + + +Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-16 01:21:21 +0200 + + +Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-16 01:21:21 +0200 + + +Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-16 01:21:21 +0200 + + +Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-16 01:21:21 +0200 + + +Started GET "/things/1" for 127.0.0.1 at 2016-03-16 01:21:24 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (8.3ms) + Rendered things/show.html.erb within layouts/application (9.5ms) +Completed 200 OK in 27ms (Views: 26.0ms | ActiveRecord: 0.1ms) + + +Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-16 01:21:25 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"kEt9hPl5i4FdI5p1Hs9zgqUkziLtgqJo9xlMpYNNouuNcpZEIaawQRnQafrL4UNxBxNdLP0gJRsGG3LPoF6BwA==", "qty"=>"1", "klass"=>"Thing", "commit"=>"Add to cart", "item_id"=>"1"} +Redirected to http://localhost:3000/simple_cart/cart +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-16 01:21:25 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (8.4ms) +Completed 200 OK in 27ms (Views: 26.4ms | ActiveRecord: 0.1ms) + + +Started GET "/" for 127.0.0.1 at 2016-03-16 01:21:28 +0200 +Processing by Rails::WelcomeController#index as HTML + 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) +Completed 200 OK in 24ms (Views: 23.9ms | ActiveRecord: 0.0ms) + + +Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-16 01:21:33 +0200 +Processing by SimpleCart::CartsController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"mbMeMSaOxxXwtp1ePnwvc03T1uZMVIzStSI4SJB7GaSEivXx/lH81bRFbtHrUh+A7+RF6Fz2C6FEIAYis2g6jw==", "Thing_1"=>"1", "coupon"=>"", "commit"=>"Update"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.3ms) +Completed 200 OK in 34ms (Views: 33.3ms | ActiveRecord: 0.2ms) + + +Started POST "/simple_cart/cart/checkout?coupon=" for 127.0.0.1 at 2016-03-16 01:21:34 +0200 +Processing by SimpleCart::CartsController#checkout as HTML + Parameters: {"authenticity_token"=>"eOCcg7qovHIQAiWjHpnNvOW7cL6LSxSYE7o0Y7yWeZVl2XdDYneHslTx1izLt/1PR4zjsJvpk+viuAoJn4Vavg==", "coupon"=>""} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 52251.0], ["completed_date", "2016-03-16"], ["aasm_state", "in_progress"], ["created_at", "2016-03-15 23:21:34.344412"], ["updated_at", "2016-03-15 23:21:34.344412"]] + 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", 1], ["itemable_id", 1], ["itemable_type", "Thing"], ["order_id", "10"], ["created_at", "2016-03-15 23:21:34.346811"], ["updated_at", "2016-03-15 23:21:34.346811"]] +  (211.9ms) commit transaction +Redirected to http://localhost:3000/simple_cart/orders/10/checkout +Completed 302 Found in 409ms (ActiveRecord: 213.0ms) + + +Started GET "/simple_cart/orders/10/checkout" for 127.0.0.1 at 2016-03-16 01:21:34 +0200 +Processing by SimpleCart::CheckoutController#index as HTML + Parameters: {"order_id"=>"10"} + SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 10]] +Redirected to http://localhost:3000/simple_cart/orders/10/checkout/billing +Completed 302 Found in 3ms (ActiveRecord: 0.2ms) + + +Started GET "/simple_cart/orders/10/checkout/billing" for 127.0.0.1 at 2016-03-16 01:21:34 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"10", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 10]] + 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", 10]] + 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", 10]] + 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", 10]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (3.0ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (44.7ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "10"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "10"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (15.7ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (122.0ms) +Completed 200 OK in 275ms (Views: 150.1ms | ActiveRecord: 1.3ms) + + +Started GET "/items" for 127.0.0.1 at 2016-03-16 01:21:39 +0200 +Processing by ItemsController#index as HTML +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + +NameError (uninitialized constant ItemsController::Item): + app/controllers/items_controller.rb:6:in `index' + + + Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.9ms) + 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.0ms) + 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) + 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.9ms) + + +Started GET "/items" for 127.0.0.1 at 2016-03-16 01:21:39 +0200 +Processing by ItemsController#index as HTML +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + +NameError (uninitialized constant ItemsController::Item): + app/controllers/items_controller.rb:6:in `index' + + + Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.0ms) + 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) + 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 (9.6ms) + 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 (25.5ms) + + +Started GET "/things" for 127.0.0.1 at 2016-03-16 01:21:41 +0200 +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" + Rendered things/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 17ms (Views: 16.4ms | ActiveRecord: 0.2ms) + + +Started GET "/things" for 127.0.0.1 at 2016-03-16 01:21:41 +0200 +Processing by ThingsController#index as HTML + Thing Load (0.3ms) SELECT "things".* FROM "things" + Rendered things/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 20ms (Views: 19.2ms | ActiveRecord: 0.3ms) + + +Started GET "/things/2" for 127.0.0.1 at 2016-03-16 01:21:43 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.2ms) + Rendered things/show.html.erb within layouts/application (7.6ms) +Completed 200 OK in 23ms (Views: 22.3ms | ActiveRecord: 0.1ms) + + +Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-16 01:21:44 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"f5wUh26/9FMyKo7OGTLHDtNHG+413RVS5H3M4zXuCR5ipf9HtmDPk3bZfUHMHPf9cXCI4CV/kiEVf/KJFv0qNQ==", "qty"=>"1", "klass"=>"Thing", "commit"=>"Add to cart", "item_id"=>"2"} +Redirected to http://localhost:3000/simple_cart/cart +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-16 01:21:44 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (9.6ms) +Completed 200 OK in 30ms (Views: 29.7ms | ActiveRecord: 0.1ms) + + +Started GET "/things/2" for 127.0.0.1 at 2016-03-16 01:23:15 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (5.4ms) + Rendered things/show.html.erb within layouts/application (6.5ms) +Completed 200 OK in 30ms (Views: 22.6ms | ActiveRecord: 1.2ms) + + +Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-16 01:23:15 +0200 + + +Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-16 01:23:15 +0200 + + +Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-16 01:23:15 +0200 + + +Started GET "/assets/scaffolds.self-a292cc26f60e7f7bad7cfbbbb7e5b67ad3b7fb5a457ace846c62d539e4c7518c.css?body=1" for 127.0.0.1 at 2016-03-16 01:23:15 +0200 + + +Started GET "/assets/kks.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-16 01:23:15 +0200 + + +Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:23:15 +0200 + + +Started GET "/assets/things.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-16 01:23:15 +0200 + + +Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:23:15 +0200 + + +Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-16 01:23:15 +0200 + + +Started GET "/assets/things.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:23:15 +0200 + + +Started GET "/assets/kks.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:23:15 +0200 + + +Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-16 01:23:15 +0200 + + +Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-16 01:23:16 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"JsdnXKTDWpQtqqhO1wdk70pa4lmFrrYaN7u7ONyytxM7/oycfBxhVGlZW8ECKVQc6G1xV5UMMWnGuYVS/6GUOA==", "qty"=>"1", "klass"=>"Thing", "commit"=>"Add to cart", "item_id"=>"2"} +Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms) + +NameError (undefined local variable or method `current_path' for #<SimpleCart::CartsController:0x007f254751b0f8>): + /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:16:in `add' + actionpack (4.2.5.2) lib/action_controller/metal/implicit_render.rb:4:in `send_action' + actionpack (4.2.5.2) lib/abstract_controller/base.rb:198:in `process_action' + actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:10:in `process_action' + actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:20:in `block in process_action' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:92:in `__run_callbacks__' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks' + actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:19:in `process_action' + actionpack (4.2.5.2) lib/action_controller/metal/rescue.rb:29:in `process_action' + actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' + activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument' + activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument' + activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument' + actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action' + actionpack (4.2.5.2) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' + activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action' + actionpack (4.2.5.2) lib/abstract_controller/base.rb:137:in `process' + actionview (4.2.5.2) lib/action_view/rendering.rb:30:in `process' + actionpack (4.2.5.2) lib/action_controller/metal.rb:196:in `dispatch' + actionpack (4.2.5.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' + actionpack (4.2.5.2) lib/action_controller/metal.rb:237:in `block in action' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `call' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:43:in `serve' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call' + railties (4.2.5.2) lib/rails/engine.rb:518:in `call' + railties (4.2.5.2) lib/rails/railtie.rb:194:in `public_send' + railties (4.2.5.2) lib/rails/railtie.rb:194:in `method_missing' + actionpack (4.2.5.2) lib/action_dispatch/routing/mapper.rb:51:in `serve' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call' + rack (1.6.4) lib/rack/etag.rb:24:in `call' + rack (1.6.4) lib/rack/conditionalget.rb:38:in `call' + rack (1.6.4) lib/rack/head.rb:13:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/flash.rb:260:in `call' + rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' + rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/cookies.rb:560:in `call' + activerecord (4.2.5.2) lib/active_record/query_cache.rb:36:in `call' + activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' + activerecord (4.2.5.2) lib/active_record/migration.rb:377:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:88:in `__run_callbacks__' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks' + actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/reloader.rb:73:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' + railties (4.2.5.2) lib/rails/rack/logger.rb:38:in `call_app' + railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `block in call' + activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `block in tagged' + activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:26:in `tagged' + activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `tagged' + railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/request_id.rb:21:in `call' + rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' + rack (1.6.4) lib/rack/runtime.rb:18:in `call' + activesupport (4.2.5.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' + rack (1.6.4) lib/rack/lock.rb:17:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/static.rb:116:in `call' + rack (1.6.4) lib/rack/sendfile.rb:113:in `call' + railties (4.2.5.2) lib/rails/engine.rb:518:in `call' + railties (4.2.5.2) lib/rails/application.rb:165:in `call' + rack (1.6.4) lib/rack/lock.rb:17:in `call' + rack (1.6.4) lib/rack/content_length.rb:15:in `call' + rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' + /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' + /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' + /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' + + + 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) + 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) + 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) + 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.1ms) + + +Started GET "/things/2" for 127.0.0.1 at 2016-03-16 01:24:03 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.5ms) + Rendered things/show.html.erb within layouts/application (7.4ms) +Completed 200 OK in 29ms (Views: 23.0ms | ActiveRecord: 0.6ms) + + +Started GET "/things/2" for 127.0.0.1 at 2016-03-16 01:24:11 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (4.8ms) + Rendered things/show.html.erb within layouts/application (5.9ms) +Completed 200 OK in 23ms (Views: 21.3ms | ActiveRecord: 0.1ms) + + +Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-16 01:24:11 +0200 + + +Started GET "/assets/scaffolds.self-a292cc26f60e7f7bad7cfbbbb7e5b67ad3b7fb5a457ace846c62d539e4c7518c.css?body=1" for 127.0.0.1 at 2016-03-16 01:24:11 +0200 + + +Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-16 01:24:11 +0200 + + +Started GET "/assets/kks.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-16 01:24:11 +0200 + + +Started GET "/assets/things.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-16 01:24:11 +0200 + + +Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-16 01:24:11 +0200 + + +Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:24:11 +0200 + + +Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:24:11 +0200 + + +Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-16 01:24:11 +0200 + + +Started GET "/assets/kks.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:24:11 +0200 + + +Started GET "/assets/things.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:24:11 +0200 + + +Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-16 01:24:11 +0200 + + +Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-16 01:24:15 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"cq6d5OocKGUi4BN5xrhTjHXvNYTjCtz6BEFPk9Em/0pvl3YkMsMTpWYT4PYTlmN/19imivOoW4n1Q3H58jXcYQ==", "qty"=>"1", "klass"=>"Thing", "commit"=>"Add to cart", "item_id"=>"2"} +Redirected to http://localhost:3000/simple_cart/cart +Completed 302 Found in 2ms (ActiveRecord: 0.0ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-16 01:24:15 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (7.7ms) +Completed 200 OK in 29ms (Views: 28.6ms | ActiveRecord: 0.1ms) + + +Started GET "/things/2" for 127.0.0.1 at 2016-03-16 01:24:47 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (4.3ms) + Rendered things/show.html.erb within layouts/application (5.3ms) +Completed 200 OK in 24ms (Views: 22.1ms | ActiveRecord: 0.1ms) + + +Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-16 01:24:47 +0200 + + +Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-16 01:24:47 +0200 + + +Started GET "/assets/kks.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-16 01:24:47 +0200 + + +Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-16 01:24:47 +0200 + + +Started GET "/assets/things.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-16 01:24:47 +0200 + + +Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:24:47 +0200 + + +Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-16 01:24:47 +0200 + + +Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:24:47 +0200 + + +Started GET "/assets/scaffolds.self-a292cc26f60e7f7bad7cfbbbb7e5b67ad3b7fb5a457ace846c62d539e4c7518c.css?body=1" for 127.0.0.1 at 2016-03-16 01:24:47 +0200 + + +Started GET "/assets/things.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:24:47 +0200 + + +Started GET "/assets/kks.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:24:47 +0200 + + +Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-16 01:24:47 +0200 + + +Started GET "/things/1" for 127.0.0.1 at 2016-03-16 01:24:50 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.8ms) + Rendered things/show.html.erb within layouts/application (8.9ms) +Completed 200 OK in 30ms (Views: 28.1ms | ActiveRecord: 0.1ms) + + +Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-16 01:24:52 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"intveRVgZhtpa8l+mnfueIiP6DVXwkDRXtbiu6YYNfSXQoS5zb9d2y2YOvFPWd6LKrh7O0dgx6Kv1NzRhQsW3w==", "qty"=>"1", "klass"=>"Thing", "commit"=>"Add to cart", "item_id"=>"1"} +Redirected to http://localhost:3000/simple_cart/cart +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-16 01:24:52 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (12.3ms) +Completed 200 OK in 30ms (Views: 29.2ms | ActiveRecord: 0.2ms) + + +Started GET "/things/1" for 127.0.0.1 at 2016-03-16 01:25:53 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (5.1ms) + Rendered things/show.html.erb within layouts/application (6.0ms) +Completed 200 OK in 30ms (Views: 22.9ms | ActiveRecord: 0.7ms) + + +Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-16 01:25:54 +0200 + + +Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-16 01:25:54 +0200 + + +Started GET "/assets/kks.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-16 01:25:54 +0200 + + +Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-16 01:25:54 +0200 + + +Started GET "/assets/scaffolds.self-a292cc26f60e7f7bad7cfbbbb7e5b67ad3b7fb5a457ace846c62d539e4c7518c.css?body=1" for 127.0.0.1 at 2016-03-16 01:25:54 +0200 + + +Started GET "/assets/things.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-16 01:25:54 +0200 + + +Started GET "/assets/kks.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:25:54 +0200 + + +Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:25:54 +0200 + + +Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-16 01:25:54 +0200 + + +Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:25:54 +0200 + + +Started GET "/assets/things.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:25:54 +0200 + + +Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-16 01:25:54 +0200 + + +Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-16 01:26:05 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"rSwfP6PFptespTsycRQbysa0Pac4qCWdNpLIrSi8X12wFfT/exqdF+hWyL2kOis5ZIOuqSgKou7HkPbHC698dg==", "qty"=>"3", "klass"=>"Thing", "commit"=>"Add to cart", "item_id"=>"1"} +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) + +NoMethodError (undefined method `path' for #<ActionDispatch::Response:0x007f2546b03e58>): + /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:16:in `add' + actionpack (4.2.5.2) lib/action_controller/metal/implicit_render.rb:4:in `send_action' + actionpack (4.2.5.2) lib/abstract_controller/base.rb:198:in `process_action' + actionpack (4.2.5.2) lib/action_controller/metal/rendering.rb:10:in `process_action' + actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:20:in `block in process_action' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:117:in `call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:505:in `call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:92:in `__run_callbacks__' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks' + actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:19:in `process_action' + actionpack (4.2.5.2) lib/action_controller/metal/rescue.rb:29:in `process_action' + actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' + activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument' + activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument' + activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument' + actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action' + actionpack (4.2.5.2) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' + activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action' + actionpack (4.2.5.2) lib/abstract_controller/base.rb:137:in `process' + actionview (4.2.5.2) lib/action_view/rendering.rb:30:in `process' + actionpack (4.2.5.2) lib/action_controller/metal.rb:196:in `dispatch' + actionpack (4.2.5.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' + actionpack (4.2.5.2) lib/action_controller/metal.rb:237:in `block in action' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `call' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:43:in `serve' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call' + railties (4.2.5.2) lib/rails/engine.rb:518:in `call' + railties (4.2.5.2) lib/rails/railtie.rb:194:in `public_send' + railties (4.2.5.2) lib/rails/railtie.rb:194:in `method_missing' + actionpack (4.2.5.2) lib/action_dispatch/routing/mapper.rb:51:in `serve' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call' + rack (1.6.4) lib/rack/etag.rb:24:in `call' + rack (1.6.4) lib/rack/conditionalget.rb:38:in `call' + rack (1.6.4) lib/rack/head.rb:13:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/flash.rb:260:in `call' + rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' + rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/cookies.rb:560:in `call' + activerecord (4.2.5.2) lib/active_record/query_cache.rb:36:in `call' + activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' + activerecord (4.2.5.2) lib/active_record/migration.rb:377:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:88:in `__run_callbacks__' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks' + actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/reloader.rb:73:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' + railties (4.2.5.2) lib/rails/rack/logger.rb:38:in `call_app' + railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `block in call' + activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `block in tagged' + activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:26:in `tagged' + activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `tagged' + railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/request_id.rb:21:in `call' + rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' + rack (1.6.4) lib/rack/runtime.rb:18:in `call' + activesupport (4.2.5.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' + rack (1.6.4) lib/rack/lock.rb:17:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/static.rb:116:in `call' + rack (1.6.4) lib/rack/sendfile.rb:113:in `call' + railties (4.2.5.2) lib/rails/engine.rb:518:in `call' + railties (4.2.5.2) lib/rails/application.rb:165:in `call' + rack (1.6.4) lib/rack/lock.rb:17:in `call' + rack (1.6.4) lib/rack/content_length.rb:15:in `call' + rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' + /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' + /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' + /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' + + + Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.8ms) + 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.0ms) + 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) + 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 (19.1ms) + + +Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-16 01:26:26 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"rSwfP6PFptespTsycRQbysa0Pac4qCWdNpLIrSi8X12wFfT/exqdF+hWyL2kOis5ZIOuqSgKou7HkPbHC698dg==", "qty"=>"3", "klass"=>"Thing", "commit"=>"Add to cart", "item_id"=>"1"} +Redirected to http://localhost:3000/simple_cart/cart +Completed 302 Found in 2ms (ActiveRecord: 0.0ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-16 01:26:26 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (16.2ms) +Completed 200 OK in 34ms (Views: 32.4ms | ActiveRecord: 0.9ms) + + +Started GET "/things/1" for 127.0.0.1 at 2016-03-16 01:27:28 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.8ms) + Rendered things/show.html.erb within layouts/application (7.9ms) +Completed 200 OK in 30ms (Views: 23.6ms | ActiveRecord: 0.6ms) + + +Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-16 01:27:28 +0200 + + +Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-16 01:27:28 +0200 + + +Started GET "/assets/kks.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-16 01:27:28 +0200 + + +Started GET "/assets/scaffolds.self-a292cc26f60e7f7bad7cfbbbb7e5b67ad3b7fb5a457ace846c62d539e4c7518c.css?body=1" for 127.0.0.1 at 2016-03-16 01:27:28 +0200 + + +Started GET "/assets/things.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-16 01:27:28 +0200 + + +Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-16 01:27:28 +0200 + + +Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-16 01:27:28 +0200 + + +Started GET "/assets/kks.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:27:28 +0200 + + +Started GET "/assets/things.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:27:28 +0200 + + +Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:27:28 +0200 + + +Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-16 01:27:28 +0200 + + +Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:27:28 +0200 + + +Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-16 01:27:29 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"JE9GfJFfrEe+VUt87QPzHsUcwsAK+UJRRKgtJDmxxag5dq28SYCXh/qmuPM4LcPtZytRzhpbxSK1qhNOGqLmgw==", "qty"=>"1", "klass"=>"Thing", "commit"=>"Add to cart", "item_id"=>"1"} +Redirected to http://localhost:3000/simple_cart/cart +Completed 302 Found in 3ms (ActiveRecord: 0.0ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-16 01:27:29 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (13.9ms) +Completed 200 OK in 38ms (Views: 36.5ms | ActiveRecord: 0.2ms) + + +Started GET "/things/1" for 127.0.0.1 at 2016-03-16 01:30:34 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (8.0ms) + Rendered things/show.html.erb within layouts/application (9.1ms) +Completed 200 OK in 29ms (Views: 26.9ms | ActiveRecord: 0.2ms) + + +Started POST "/simple_cart/cart/1?klass=Thing" for 127.0.0.1 at 2016-03-16 01:30:35 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"A5Yr6/Z8ztCuopVK8ev3a7yqbOANKvew5/VsqsbF/Yker8ArLqP1EOpRZsUkxceYHp3/7h2IcMMW91LA5dbeog==", "qty"=>"1", "klass"=>"Thing", "commit"=>"Add to cart", "item_id"=>"1"} +Redirected to http://localhost:3000/simple_cart/cart +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-16 01:30:35 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (17.7ms) +Completed 200 OK in 40ms (Views: 39.0ms | ActiveRecord: 0.3ms) + + +Started GET "/things/1" for 127.0.0.1 at 2016-03-16 01:31:36 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (9.1ms) + Rendered things/show.html.erb within layouts/application (10.6ms) +Completed 200 OK in 27ms (Views: 25.7ms | ActiveRecord: 0.1ms) + + +Started POST "/simple_cart/cart/1?klass=Thing" for 127.0.0.1 at 2016-03-16 01:31:39 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Qf3qfkBlgMVjUJAjGtxicEVBSw2EQ28YLMeoE3Y66xhcxAG+mLq7BSejY6zP8lKD53bYA5Th6GvdxZZ5VSnIMw==", "qty"=>"4", "commit"=>"Add to cart", "klass"=>"Thing", "item_id"=>"1"} +Redirected to http://localhost:3000/simple_cart/cart +Completed 302 Found in 2ms (ActiveRecord: 0.0ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-16 01:31:39 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (13.6ms) +Completed 200 OK in 32ms (Views: 30.8ms | ActiveRecord: 0.2ms) + + +Started GET "/things/1" for 127.0.0.1 at 2016-03-16 01:31:50 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (4.9ms) + Rendered things/show.html.erb within layouts/application (6.1ms) +Completed 200 OK in 26ms (Views: 24.4ms | ActiveRecord: 0.1ms) + + +Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-16 01:31:50 +0200 + + +Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-16 01:31:50 +0200 + + +Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-16 01:31:50 +0200 + + +Started GET "/assets/kks.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-16 01:31:50 +0200 + + +Started GET "/assets/scaffolds.self-a292cc26f60e7f7bad7cfbbbb7e5b67ad3b7fb5a457ace846c62d539e4c7518c.css?body=1" for 127.0.0.1 at 2016-03-16 01:31:50 +0200 + + +Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-16 01:31:50 +0200 + + +Started GET "/assets/things.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-16 01:31:50 +0200 + + +Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:31:50 +0200 + + +Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:31:50 +0200 + + +Started GET "/assets/kks.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:31:50 +0200 + + +Started GET "/assets/things.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-16 01:31:50 +0200 + + +Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-16 01:31:50 +0200 + + +Started POST "/simple_cart/cart/1?klass=Thing" for 127.0.0.1 at 2016-03-16 01:31:52 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"vKNwy6soqrVODvcyNctx+KD/8EcBmC4kI8DUWKuhrPahmpsLc/eRdQr9BL3g5UELAshjSRE6qVfSwuoyiLKP3Q==", "qty"=>"1", "commit"=>"Add to cart", "klass"=>"Thing", "item_id"=>"1"} +Redirected to http://localhost:3000/simple_cart/cart +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-16 01:31:52 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.4ms) +Completed 200 OK in 33ms (Views: 32.6ms | ActiveRecord: 0.3ms) + + +Started GET "/bicycles" for 127.0.0.1 at 2016-03-16 01:32:05 +0200 +Processing by BicyclesController#index as HTML +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + +NameError (uninitialized constant BicyclesController::Bicycle): + app/controllers/bicycles_controller.rb:6:in `index' + + + 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) + 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) + 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) + 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) + + +Started GET "/bicycles" for 127.0.0.1 at 2016-03-16 01:32:05 +0200 +Processing by BicyclesController#index as HTML +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + +NameError (uninitialized constant BicyclesController::Bicycle): + app/controllers/bicycles_controller.rb:6:in `index' + + + Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.9ms) + 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.8ms) + 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) + 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) + + +Started GET "/kks" for 127.0.0.1 at 2016-03-16 01:32:08 +0200 +Processing by KksController#index as HTML + Kk Load (0.2ms) SELECT "kks".* FROM "kks" + Rendered kks/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 46ms (Views: 36.3ms | ActiveRecord: 0.3ms) + + +Started GET "/kks" for 127.0.0.1 at 2016-03-16 01:32:08 +0200 +Processing by KksController#index as HTML + Kk Load (0.2ms) SELECT "kks".* FROM "kks" + Rendered kks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 21ms (Views: 19.8ms | ActiveRecord: 0.2ms) + + +Started GET "/kks/1" for 127.0.0.1 at 2016-03-16 01:32:10 +0200 +Processing by KksController#show as HTML + Parameters: {"id"=>"1"} + Kk Load (0.3ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.0ms) + Rendered kks/show.html.erb within layouts/application (9.1ms) +Completed 200 OK in 48ms (Views: 45.4ms | ActiveRecord: 0.3ms) + + +Started POST "/simple_cart/cart/1?klass=Kk" for 127.0.0.1 at 2016-03-16 01:32:12 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"F7OJiIl8YOqeORMz5jay+Phh7ubu0nIlsDIAvxfFhOkKimJIUaNbKtrK4LwzGIILWlZ96P5w9VZBMD7VNNanwg==", "qty"=>"4", "commit"=>"Add to cart", "klass"=>"Kk", "item_id"=>"1"} +Redirected to http://localhost:3000/simple_cart/cart +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-16 01:32:12 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Kk Load (0.1ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + CACHE (0.0ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (17.5ms) +Completed 200 OK in 36ms (Views: 35.1ms | ActiveRecord: 0.3ms) + + +Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-16 01:32:15 +0200 +Processing by SimpleCart::CartsController#checkout as HTML + Parameters: {"authenticity_token"=>"fGTKx+ie05+Jk1z3oCEwDRxTC+S4itYpeChK1KBFsrlhXSEHMEHoX81gr3h1DwD+vmSY6qgoUVqJKnS+g1aRkg=="} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Kk Load (0.1ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + CACHE (0.0ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 574769.0], ["completed_date", "2016-03-16"], ["aasm_state", "in_progress"], ["created_at", "2016-03-15 23:32:15.264988"], ["updated_at", "2016-03-15 23:32:15.264988"]] + SQL (0.2ms) INSERT INTO "simple_cart_order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 0.0], ["qty", 2], ["itemable_id", 2], ["itemable_type", "Thing"], ["order_id", "11"], ["created_at", "2016-03-15 23:32:15.266745"], ["updated_at", "2016-03-15 23:32:15.266745"]] + 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", 11], ["itemable_id", 1], ["itemable_type", "Thing"], ["order_id", "11"], ["created_at", "2016-03-15 23:32:15.268020"], ["updated_at", "2016-03-15 23:32:15.268020"]] + SQL (0.0ms) INSERT INTO "simple_cart_order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 2.0], ["qty", 4], ["itemable_id", 1], ["itemable_type", "Kk"], ["order_id", "11"], ["created_at", "2016-03-15 23:32:15.269046"], ["updated_at", "2016-03-15 23:32:15.269046"]] +  (104.7ms) commit transaction +Redirected to http://localhost:3000/simple_cart/orders/11/checkout +Completed 302 Found in 148ms (ActiveRecord: 106.2ms) + + +Started GET "/simple_cart/orders/11/checkout" for 127.0.0.1 at 2016-03-16 01:32:15 +0200 +Processing by SimpleCart::CheckoutController#index as HTML + Parameters: {"order_id"=>"11"} + SimpleCart::Order Load (0.3ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 11]] +Redirected to http://localhost:3000/simple_cart/orders/11/checkout/billing +Completed 302 Found in 3ms (ActiveRecord: 0.3ms) + + +Started GET "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-16 01:32:15 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"11", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 11]] + 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", 11]] + 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", 11]] + 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", 11]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.1ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (7.9ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "11"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "11"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (2.9ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (16.8ms) +Completed 200 OK in 77ms (Views: 37.9ms | ActiveRecord: 1.2ms) + + +Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-16 01:32:56 +0200 +Processing by SimpleCart::CartsController#checkout as HTML + Parameters: {"authenticity_token"=>"fGTKx+ie05+Jk1z3oCEwDRxTC+S4itYpeChK1KBFsrlhXSEHMEHoX81gr3h1DwD+vmSY6qgoUVqJKnS+g1aRkg=="} +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 0.0], ["completed_date", "2016-03-16"], ["aasm_state", "in_progress"], ["created_at", "2016-03-15 23:32:56.172301"], ["updated_at", "2016-03-15 23:32:56.172301"]] +  (74.2ms) commit transaction +Redirected to http://localhost:3000/simple_cart/orders/12/checkout +Completed 302 Found in 79ms (ActiveRecord: 74.6ms) + + +Started GET "/simple_cart/orders/12/checkout" for 127.0.0.1 at 2016-03-16 01:32:56 +0200 +Processing by SimpleCart::CheckoutController#index as HTML + Parameters: {"order_id"=>"12"} + SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 12]] +Redirected to http://localhost:3000/simple_cart/orders/12/checkout/billing +Completed 302 Found in 3ms (ActiveRecord: 0.2ms) + + +Started GET "/simple_cart/orders/12/checkout/billing" for 127.0.0.1 at 2016-03-16 01:32:56 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"12", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 12]] + 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", 12]] + 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", 12]] + 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", 12]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.5ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (9.2ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "12"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "12"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.2ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (16.8ms) +Completed 200 OK in 43ms (Views: 35.6ms | ActiveRecord: 0.5ms) + + +Started PATCH "/simple_cart/orders/12/checkout/billing" for 127.0.0.1 at 2016-03-16 01:33:03 +0200 +Processing by SimpleCart::CheckoutController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"jBpZYesIws/Qkmg+Bd+BgqpuiCNgT3mC+rVvR3RCTtaRI7KhM9f5D5Rhm7HQ8bFxCFkbLXDt/vELt1EtV1Ft/Q==", "order"=>{"billing_address_attributes"=>{"firstname"=>"bvxz", "lastname"=>"bxc", "address"=>"zbxc", "zipcode"=>"bzcx", "city"=>"xzcb", "phone"=>"125", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"12", "id"=>"billing"} + SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 12]] +  (0.1ms) begin transaction + 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", 12]] + SQL (0.5ms) INSERT INTO "simple_cart_addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "SimpleCart::BillingAddress"], ["firstname", "bvxz"], ["lastname", "bxc"], ["address", "zbxc"], ["zipcode", "bzcx"], ["city", "xzcb"], ["phone", "125"], ["country", "Afghanistan"], ["order_id", 12], ["created_at", "2016-03-15 23:33:03.465344"], ["updated_at", "2016-03-15 23:33:03.465344"]] +  (206.9ms) commit transaction + 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", 12]] +  (0.1ms) begin transaction + SQL (0.4ms) 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", 12], ["address", "zbxc"], ["zipcode", "bzcx"], ["city", "xzcb"], ["phone", "125"], ["country", "Afghanistan"], ["created_at", "2016-03-15 23:33:03.465344"], ["updated_at", "2016-03-15 23:33:03.465344"], ["firstname", "bvxz"], ["lastname", "bxc"]] +  (97.4ms) commit transaction +Redirected to http://localhost:3000/simple_cart/orders/12/checkout/delivery +Completed 302 Found in 327ms (ActiveRecord: 305.9ms) + + +Started GET "/simple_cart/orders/12/checkout/delivery" for 127.0.0.1 at 2016-03-16 01:33:03 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"12", "id"=>"delivery"} + SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 12]] + 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", 12]] + 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", 12]] + 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", 12]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms) + SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" + SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1 + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "12"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "12"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.6ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (39.1ms) +Completed 200 OK in 105ms (Views: 100.4ms | ActiveRecord: 1.1ms) + + +Started PATCH "/simple_cart/orders/12/checkout/delivery" for 127.0.0.1 at 2016-03-16 01:33:05 +0200 +Processing by SimpleCart::CheckoutController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"NiUIHNjRE/fFhzgnskuLgprN5atvSXgI188YIqTAaeArHOPcAA4oN4F0y6hnZbtxOPp2pX/r/3smzSZIh9NKyw==", "order"=>{"delivery_id"=>"9"}, "commit"=>"Continue", "order_id"=>"12", "id"=>"delivery"} + SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 12]] + SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "simple_cart_orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["delivery_id", 9], ["updated_at", "2016-03-15 23:33:05.979985"], ["id", 12]] +  (275.4ms) commit transaction +Redirected to http://localhost:3000/simple_cart/orders/12/checkout/payment +Completed 302 Found in 284ms (ActiveRecord: 276.2ms) + + +Started GET "/simple_cart/orders/12/checkout/payment" for 127.0.0.1 at 2016-03-16 01:33:06 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"12", "id"=>"payment"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 12]] + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + 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", 12]] + 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", 12]] + 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", 12]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (13.5ms) +Completed 200 OK in 227ms (Views: 223.0ms | ActiveRecord: 0.5ms) + + +Started PATCH "/simple_cart/orders/12/checkout/payment" for 127.0.0.1 at 2016-03-16 01:33:15 +0200 +Processing by SimpleCart::CheckoutController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"tkJnTMTFuzf3H2bAnVHWRfH+0ikjyBPbANYxFluATEWre4yMHBqA97PslU9If+a2U8lBJzNqlKjx1A98eJNvbg==", "order"=>{"credit_card_attributes"=>{"number"=>"1111111111111111", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"123", "firstname"=>"512", "lastname"=>"gds"}}, "commit"=>"Continue", "order_id"=>"12", "id"=>"payment"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 12]] +  (0.1ms) begin transaction + 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", 12]] + SQL (0.3ms) 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", "123"], ["firstname", "512"], ["lastname", "gds"], ["order_id", 12], ["created_at", "2016-03-15 23:33:15.692112"], ["updated_at", "2016-03-15 23:33:15.692112"]] +  (88.8ms) commit transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/simple_cart/orders/12/checkout/confirm +Completed 302 Found in 98ms (ActiveRecord: 89.6ms) + + +Started GET "/simple_cart/orders/12/checkout/confirm" for 127.0.0.1 at 2016-03-16 01:33:15 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"12", "id"=>"confirm"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 12]] + 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", 12]] + 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", 12]] + 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", 12]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms) + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (6.5ms) + 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", "12"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (84.2ms) +Completed 200 OK in 148ms (Views: 143.8ms | ActiveRecord: 0.8ms) + + +Started GET "/simple_cart/orders/12/checkout/billing" for 127.0.0.1 at 2016-03-16 01:33:21 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"12", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 12]] + 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", 12]] + 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", 12]] + 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", 12]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.5ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (9.8ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "12"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "12"]] + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "12"]] + CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "12"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "12"]] + CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (5.8ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (47.8ms) +Completed 200 OK in 67ms (Views: 63.6ms | ActiveRecord: 0.5ms) + + +Started GET "/kks" for 127.0.0.1 at 2016-03-16 01:33:29 +0200 +Processing by KksController#index as HTML + Kk Load (0.2ms) SELECT "kks".* FROM "kks" + Rendered kks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 36ms (Views: 35.4ms | ActiveRecord: 0.2ms) + + +Started GET "/kks" for 127.0.0.1 at 2016-03-16 01:33:30 +0200 +Processing by KksController#index as HTML + Kk Load (0.1ms) SELECT "kks".* FROM "kks" + Rendered kks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 15ms (Views: 14.9ms | ActiveRecord: 0.1ms) + + +Started GET "/kks/1" for 127.0.0.1 at 2016-03-16 01:33:31 +0200 +Processing by KksController#show as HTML + Parameters: {"id"=>"1"} + Kk Load (0.2ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (8.8ms) + Rendered kks/show.html.erb within layouts/application (10.0ms) +Completed 200 OK in 25ms (Views: 24.5ms | ActiveRecord: 0.2ms) + + +Started POST "/simple_cart/cart/1?klass=Kk" for 127.0.0.1 at 2016-03-16 01:33:34 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Phak9SEeOA3decllJTnloZKtBpFxPk3e1H4QH0TGsNAjL081+cEDzZmKOurwF9VSMJqVn2Gcyq0lfC51Z9WT+w==", "qty"=>"4", "commit"=>"Add to cart", "klass"=>"Kk", "item_id"=>"1"} +Redirected to http://localhost:3000/simple_cart/cart +Completed 302 Found in 2ms (ActiveRecord: 0.0ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-16 01:33:34 +0200 +Processing by SimpleCart::CartsController#show as HTML + Kk Load (0.2ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.8ms) +Completed 200 OK in 44ms (Views: 42.8ms | ActiveRecord: 0.2ms) + + +Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-16 01:33:35 +0200 +Processing by SimpleCart::CartsController#checkout as HTML + Parameters: {"authenticity_token"=>"labJBy9SuLafAL6PavHtUuGLP+gAPrVZY82Itcttl0+InyLH942DdtvzTQC/392hQ7ys5hCcMiqSz7bf6H60ZA=="} + Kk Load (0.1ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 8.0], ["completed_date", "2016-03-16"], ["aasm_state", "in_progress"], ["created_at", "2016-03-15 23:33:35.759738"], ["updated_at", "2016-03-15 23:33:35.759738"]] + SQL (0.2ms) INSERT INTO "simple_cart_order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 2.0], ["qty", 4], ["itemable_id", 1], ["itemable_type", "Kk"], ["order_id", "13"], ["created_at", "2016-03-15 23:33:35.761915"], ["updated_at", "2016-03-15 23:33:35.761915"]] +  (348.2ms) commit transaction +Redirected to http://localhost:3000/simple_cart/orders/13/checkout +Completed 302 Found in 357ms (ActiveRecord: 349.0ms) + + +Started GET "/simple_cart/orders/13/checkout" for 127.0.0.1 at 2016-03-16 01:33:36 +0200 +Processing by SimpleCart::CheckoutController#index as HTML + Parameters: {"order_id"=>"13"} + SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]] +Redirected to http://localhost:3000/simple_cart/orders/13/checkout/billing +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + + +Started GET "/simple_cart/orders/13/checkout/billing" for 127.0.0.1 at 2016-03-16 01:33:36 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"13", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]] + 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", 13]] + 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", 13]] + 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", 13]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.7ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (9.6ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.8ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (18.7ms) +Completed 200 OK in 45ms (Views: 38.4ms | ActiveRecord: 0.5ms) + + +Started PATCH "/simple_cart/orders/13/checkout/billing" for 127.0.0.1 at 2016-03-16 01:33:43 +0200 +Processing by SimpleCart::CheckoutController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"dAYvhKSnRB8IsxUmBgsUEkYLlbQIDihUxMMjN5A58oFpP8REfHh/30xA5qnTJSTh5DwGuhisryc1wR1dsyrRqg==", "order"=>{"billing_address_attributes"=>{"firstname"=>"zbn", "lastname"=>"nvc", "address"=>"nvcx", "zipcode"=>"vxnc", "city"=>"xnvc", "phone"=>"vnxc", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"13", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]] +  (0.1ms) begin transaction + SimpleCart::BillingAddress Load (0.0ms) 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", 13]] + 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", "zbn"], ["lastname", "nvc"], ["address", "nvcx"], ["zipcode", "vxnc"], ["city", "xnvc"], ["phone", "vnxc"], ["country", "Afghanistan"], ["order_id", 13], ["created_at", "2016-03-15 23:33:43.269165"], ["updated_at", "2016-03-15 23:33:43.269165"]] +  (76.7ms) commit transaction + 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", 13]] +  (0.1ms) begin transaction + 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", 13], ["address", "nvcx"], ["zipcode", "vxnc"], ["city", "xnvc"], ["phone", "vnxc"], ["country", "Afghanistan"], ["created_at", "2016-03-15 23:33:43.269165"], ["updated_at", "2016-03-15 23:33:43.269165"], ["firstname", "zbn"], ["lastname", "nvc"]] +  (256.8ms) commit transaction +Redirected to http://localhost:3000/simple_cart/orders/13/checkout/delivery +Completed 302 Found in 343ms (ActiveRecord: 334.2ms) + + +Started GET "/simple_cart/orders/13/checkout/delivery" for 127.0.0.1 at 2016-03-16 01:33:43 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"13", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]] + 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", 13]] + SimpleCart::BillingAddress Load (0.4ms) 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", 13]] + 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", 13]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.1ms) + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1 + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.0ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (5.8ms) +Completed 200 OK in 32ms (Views: 26.1ms | ActiveRecord: 1.1ms) + + +Started PATCH "/simple_cart/orders/13/checkout/delivery" for 127.0.0.1 at 2016-03-16 01:33:45 +0200 +Processing by SimpleCart::CheckoutController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"rEXZ6t3qWpKjWkAAMs/SKHhKE6TSfa3gz+nG3dgEWKqxfDIqBTVhUueps4/n4eLb2n2AqsLfKpM+6/i3+xd7gQ==", "order"=>{"delivery_id"=>"9"}, "commit"=>"Continue", "order_id"=>"13", "id"=>"delivery"} + SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]] + SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] +  (0.1ms) begin transaction + SQL (0.2ms) UPDATE "simple_cart_orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["delivery_id", 9], ["updated_at", "2016-03-15 23:33:45.894340"], ["id", 13]] +  (252.6ms) commit transaction +Redirected to http://localhost:3000/simple_cart/orders/13/checkout/payment +Completed 302 Found in 259ms (ActiveRecord: 253.2ms) + + +Started GET "/simple_cart/orders/13/checkout/payment" for 127.0.0.1 at 2016-03-16 01:33:46 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"13", "id"=>"payment"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]] + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + 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", 13]] + 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", 13]] + 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", 13]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (8.0ms) +Completed 200 OK in 31ms (Views: 27.1ms | ActiveRecord: 0.4ms) + + +Started GET "/simple_cart/orders/13/checkout/delivery" for 127.0.0.1 at 2016-03-16 01:33:50 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"13", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]] + 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", 13]] + 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", 13]] + 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", 13]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms) + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1 + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.8ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (14.0ms) +Completed 200 OK in 34ms (Views: 30.2ms | ActiveRecord: 0.9ms) + + +Started PATCH "/simple_cart/orders/13/checkout/delivery" for 127.0.0.1 at 2016-03-16 01:33:52 +0200 +Processing by SimpleCart::CheckoutController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Pd9VqJl4zd/R9LLZEnGyCZ4NVtay9CW5LXYRF+Chl60g5r5oQaf2H5UHQVbHX4L6PDrF2KJWosrcdC99w7K0hg==", "order"=>{"delivery_id"=>"9"}, "commit"=>"Continue", "order_id"=>"13", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]] + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] +  (0.1ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/simple_cart/orders/13/checkout/payment +Completed 302 Found in 3ms (ActiveRecord: 0.3ms) + + +Started GET "/simple_cart/orders/13/checkout/payment" for 127.0.0.1 at 2016-03-16 01:33:52 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"13", "id"=>"payment"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]] + SimpleCart::Delivery Load (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + 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", 13]] + 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", 13]] + 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", 13]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.1ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (7.1ms) +Completed 200 OK in 31ms (Views: 24.8ms | ActiveRecord: 0.6ms) + + +Started GET "/simple_cart/orders/13/checkout/delivery" for 127.0.0.1 at 2016-03-16 01:33:53 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"13", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]] + 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", 13]] + 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", 13]] + 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", 13]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms) + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1 + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (3.4ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (8.2ms) +Completed 200 OK in 33ms (Views: 28.1ms | ActiveRecord: 0.9ms) + + +Started GET "/simple_cart/orders/13/checkout/billing" for 127.0.0.1 at 2016-03-16 01:33:54 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"13", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]] + 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", 13]] + 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", 13]] + 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", 13]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (7.1ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (3.2ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (15.8ms) +Completed 200 OK in 38ms (Views: 35.1ms | ActiveRecord: 0.5ms) + + +Started GET "/simple_cart/orders/13/checkout/delivery" for 127.0.0.1 at 2016-03-16 01:33:56 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"13", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]] + 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", 13]] + 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", 13]] + 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", 13]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms) + SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1 + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (3.5ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (9.4ms) +Completed 200 OK in 56ms (Views: 51.8ms | ActiveRecord: 0.9ms) + + +Started GET "/simple_cart/orders/13/checkout/payment" for 127.0.0.1 at 2016-03-16 01:33:56 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"13", "id"=>"payment"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]] + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + 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", 13]] + 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", 13]] + 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", 13]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.3ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (13.6ms) +Completed 200 OK in 36ms (Views: 30.3ms | ActiveRecord: 0.5ms) + + +Started GET "/simple_cart/orders/13/checkout/delivery" for 127.0.0.1 at 2016-03-16 01:34:23 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"13", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]] + 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", 13]] + 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", 13]] + 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", 13]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms) + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1 + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (2.9ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (7.8ms) +Completed 200 OK in 28ms (Views: 23.4ms | ActiveRecord: 0.9ms) + + +Started GET "/simple_cart/orders/13/checkout/payment" for 127.0.0.1 at 2016-03-16 01:34:24 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"13", "id"=>"payment"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]] + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + 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", 13]] + 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", 13]] + 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", 13]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (10.3ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (17.1ms) +Completed 200 OK in 41ms (Views: 34.5ms | ActiveRecord: 0.6ms) + + +Started GET "/simple_cart/orders/13/checkout/payment" for 127.0.0.1 at 2016-03-16 01:34:38 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"13", "id"=>"payment"} + SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]] + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + 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", 13]] + 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", 13]] + 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", 13]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.6ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.9ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]] + CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (6.6ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (22.7ms) +Completed 200 OK in 49ms (Views: 41.8ms | ActiveRecord: 1.7ms) + + +Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-16 01:34:38 +0200 + + +Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-16 01:34:38 +0200 + + +Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-16 01:34:38 +0200 + + +Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-16 01:34:38 +0200 + + +Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-16 01:34:38 +0200 + + +Started PATCH "/simple_cart/orders/13/checkout/payment" for 127.0.0.1 at 2016-03-16 01:34:49 +0200 +Processing by SimpleCart::CheckoutController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ZYy9hEpM+9HR8+SfzZAPDyit6iVdOZ3RZ8YQtA7T/up4tVZEkpPAEZUAFxAYvj/8ipp5K02bGqKWxC7eLcDdwQ==", "order"=>{"credit_card_attributes"=>{"number"=>"1111111111111111", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"555", "firstname"=>"124", "lastname"=>"gsd"}}, "commit"=>"Continue", "order_id"=>"13", "id"=>"payment"} + SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]] +  (0.1ms) begin transaction + 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", 13]] + SQL (0.3ms) 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", "555"], ["firstname", "124"], ["lastname", "gsd"], ["order_id", 13], ["created_at", "2016-03-15 23:34:49.507747"], ["updated_at", "2016-03-15 23:34:49.507747"]] +  (82.0ms) commit transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/simple_cart/orders/13/checkout/confirm +Completed 302 Found in 91ms (ActiveRecord: 82.8ms) + + +Started GET "/simple_cart/orders/13/checkout/confirm" for 127.0.0.1 at 2016-03-16 01:34:49 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"13", "id"=>"confirm"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]] + 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", 13]] + 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", 13]] + 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", 13]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms) + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (1.7ms) + 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", "13"]] + SimpleCart::OrderItem Load (0.2ms) SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "13"]] + Kk Load (0.1ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (10.9ms) +Completed 200 OK in 33ms (Views: 27.6ms | ActiveRecord: 1.0ms) + + +Started PATCH "/simple_cart/orders/13" for 127.0.0.1 at 2016-03-16 01:34:54 +0200 +Processing by SimpleCart::OrdersController#update as HTML + Parameters: {"authenticity_token"=>"+jDCetoyjkyEZF3jnSC8RmyM/yvhHcEkmhUnZ1cOEC7nCSm6Au21jMCXrmxIDoy1zrtsJfG/RldrFxkNdB0zBQ==", "id"=>"13"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]] +  (0.1ms) begin transaction + 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-15 23:34:54.781854"], ["id", 13]] +  (128.5ms) commit transaction + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] +  (0.1ms) begin transaction + SQL (0.2ms) UPDATE "simple_cart_orders" SET "total_price" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["total_price", 28.0], ["updated_at", "2016-03-15 23:34:54.913087"], ["id", 13]] +  (66.8ms) commit transaction +Redirected to http://localhost:3000/simple_cart/orders/13 +Completed 302 Found in 202ms (ActiveRecord: 196.1ms) + + +Started GET "/simple_cart/orders/13" for 127.0.0.1 at 2016-03-16 01:34:54 +0200 +Processing by SimpleCart::OrdersController#show as HTML + Parameters: {"id"=>"13"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]] + 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", 13]] + 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", 13]] + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + 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", 13]] + 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", "13"]] + SimpleCart::OrderItem Load (0.1ms) SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "13"]] + Kk Load (0.1ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (17.7ms) +Completed 200 OK in 53ms (Views: 51.3ms | ActiveRecord: 0.9ms) + + +Started GET "/simple_cart/orders" for 127.0.0.1 at 2016-03-16 01:34:59 +0200 +Processing by SimpleCart::OrdersController#index as HTML +  (0.1ms) SELECT COUNT(*) FROM "simple_cart_orders" +  (0.2ms) SELECT COUNT(*) FROM "simple_cart_orders" WHERE "simple_cart_orders"."aasm_state" = ? [["aasm_state", "in_progress"]] + SimpleCart::Order Load (0.3ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."aasm_state" = ? ORDER BY "simple_cart_orders"."id" DESC [["aasm_state", "in_progress"]] + 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", "12"]] + 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", "11"]] + SimpleCart::OrderItem Load (0.1ms) SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "11"]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Kk Load (0.0ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]] + 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", "10"]] + SimpleCart::OrderItem Load (0.1ms) SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "10"]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + 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", "8"]] + SimpleCart::OrderItem Load (0.0ms) SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "8"]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + 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", "7"]] + SimpleCart::OrderItem Load (0.0ms) SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "7"]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + 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", "4"]] + 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", "3"]] + SimpleCart::OrderItem Load (0.1ms) SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "3"]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "simple_cart_orders" WHERE "simple_cart_orders"."aasm_state" = ? [["aasm_state", "in_queue"]] + 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"]] +  (0.1ms) SELECT COUNT(*) FROM "simple_cart_orders" WHERE "simple_cart_orders"."aasm_state" = ? [["aasm_state", "delivered"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/index.html.haml within layouts/simple_cart/application (27.2ms) +Completed 200 OK in 58ms (Views: 55.7ms | ActiveRecord: 1.8ms) + + +Started GET "/simple_cart/orders/11/checkout" for 127.0.0.1 at 2016-03-16 01:36:04 +0200 +Processing by SimpleCart::CheckoutController#index as HTML + Parameters: {"order_id"=>"11"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 11]] +Redirected to http://localhost:3000/simple_cart/orders/11/checkout/billing +Completed 302 Found in 2ms (ActiveRecord: 0.1ms) + + +Started GET "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-16 01:36:04 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"11", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 11]] + 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", 11]] + 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", 11]] + 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", 11]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (8.8ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "11"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "11"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.1ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (15.4ms) +Completed 200 OK in 35ms (Views: 31.5ms | ActiveRecord: 0.3ms) + + +Started PATCH "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-16 01:36:11 +0200 +Processing by SimpleCart::CheckoutController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"/HXvcE4Ru6Q1v+co+n6OlEiaXYxh4A+pviaD1yJncLPhTASwls6AZHFMFKcvUL5n6q3OgnFCiNpPJL29AXRTmA==", "order"=>{"billing_address_attributes"=>{"firstname"=>"gds", "lastname"=>"gds", "address"=>"gds", "zipcode"=>"dgs", "city"=>"dgs", "phone"=>"dsg", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"11", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 11]] +  (0.1ms) begin transaction + 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", 11]] + 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", "gds"], ["lastname", "gds"], ["address", "gds"], ["zipcode", "dgs"], ["city", "dgs"], ["phone", "dsg"], ["country", "Afghanistan"], ["order_id", 11], ["created_at", "2016-03-15 23:36:11.354361"], ["updated_at", "2016-03-15 23:36:11.354361"]] +  (221.5ms) commit transaction + 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", 11]] +  (0.1ms) begin transaction + 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", 11], ["address", "gds"], ["zipcode", "dgs"], ["city", "dgs"], ["phone", "dsg"], ["country", "Afghanistan"], ["created_at", "2016-03-15 23:36:11.354361"], ["updated_at", "2016-03-15 23:36:11.354361"], ["firstname", "gds"], ["lastname", "gds"]] +  (80.0ms) commit transaction +Redirected to http://localhost:3000/simple_cart/orders/11/checkout/delivery +Completed 302 Found in 314ms (ActiveRecord: 302.5ms) + + +Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-16 01:36:11 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"11", "id"=>"delivery"} + SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 11]] + 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", 11]] + 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", 11]] + 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", 11]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.1ms) + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1 + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "11"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "11"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.5ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (6.6ms) +Completed 200 OK in 31ms (Views: 26.6ms | ActiveRecord: 0.8ms) + + +Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-16 01:43:15 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"11", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 11]] + 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", 11]] + 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", 11]] + 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", 11]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.1ms) + SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" + SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1 + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "11"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "11"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (2.1ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (13.0ms) +Completed 200 OK in 89ms (Views: 32.6ms | ActiveRecord: 2.3ms) + + +Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-16 01:43:15 +0200 + + +Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-16 01:43:15 +0200 + + +Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-16 01:43:15 +0200 + + +Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-16 01:43:15 +0200 + + +Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-16 01:43:15 +0200 + + +Started GET "/kks" for 127.0.0.1 at 2016-03-16 01:43:18 +0200 +Processing by KksController#index as HTML + Kk Load (0.2ms) SELECT "kks".* FROM "kks" + Rendered kks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 31ms (Views: 29.2ms | ActiveRecord: 0.3ms) + + +Started GET "/kks" for 127.0.0.1 at 2016-03-16 01:43:18 +0200 +Processing by KksController#index as HTML + Kk Load (0.2ms) SELECT "kks".* FROM "kks" + Rendered kks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 17ms (Views: 16.7ms | ActiveRecord: 0.2ms) + + +Started GET "/kks/1" for 127.0.0.1 at 2016-03-16 01:43:20 +0200 +Processing by KksController#show as HTML + Parameters: {"id"=>"1"} + Kk Load (0.4ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (8.7ms) + Rendered kks/show.html.erb within layouts/application (10.1ms) +Completed 200 OK in 31ms (Views: 28.9ms | ActiveRecord: 0.4ms) + + +Started POST "/simple_cart/cart/1?klass=Kk" for 127.0.0.1 at 2016-03-16 01:43:21 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"AE7xM9B4jvFKZXGBUkgpMk45drGEZUSJjFVae7pO92wddxrzCKe1MQ6Wgg6HZhnB7A7lv5THw/p9V2QRmV3URw==", "qty"=>"1", "commit"=>"Add to cart", "klass"=>"Kk", "item_id"=>"1"} +Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.0ms) + +SyntaxError (/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/simple_cart/cart.rb:75: syntax error, unexpected keyword_class, expecting ')' + def find_in_model(class) + ^ +/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/simple_cart/cart.rb:76: syntax error, unexpected '.' + class.split('_')[0].constantize.find(class.split('_')[1]) + ^ +/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/simple_cart/cart.rb:76: syntax error, unexpected ')', expecting keyword_end): + /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/simple_cart/cart.rb:75: syntax error, unexpected keyword_class, expecting ')' + def find_in_model(class) + ^ + /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/simple_cart/cart.rb:76: syntax error, unexpected '.' + class.split('_')[0].constantize.find(class.split('_')[1]) + ^ + /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/simple_cart/cart.rb:76: syntax error, unexpected ')', expecting keyword_end + activesupport (4.2.5.2) lib/active_support/dependencies.rb:457:in `load' + activesupport (4.2.5.2) lib/active_support/dependencies.rb:457:in `block in load_file' + activesupport (4.2.5.2) lib/active_support/dependencies.rb:647:in `new_constants_in' + activesupport (4.2.5.2) lib/active_support/dependencies.rb:456:in `load_file' + activesupport (4.2.5.2) lib/active_support/dependencies.rb:354:in `require_or_load' + activesupport (4.2.5.2) lib/active_support/dependencies.rb:494:in `load_missing_constant' + activesupport (4.2.5.2) lib/active_support/dependencies.rb:184:in `const_missing' + /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:44:in `cart_data' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:432:in `block in make_lambda' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:164:in `call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:164:in `block in halting' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `block in call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `each' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:504:in `call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:92:in `__run_callbacks__' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks' + actionpack (4.2.5.2) lib/abstract_controller/callbacks.rb:19:in `process_action' + actionpack (4.2.5.2) lib/action_controller/metal/rescue.rb:29:in `process_action' + actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' + activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `block in instrument' + activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument' + activesupport (4.2.5.2) lib/active_support/notifications.rb:164:in `instrument' + actionpack (4.2.5.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action' + actionpack (4.2.5.2) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' + activerecord (4.2.5.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action' + actionpack (4.2.5.2) lib/abstract_controller/base.rb:137:in `process' + actionview (4.2.5.2) lib/action_view/rendering.rb:30:in `process' + actionpack (4.2.5.2) lib/action_controller/metal.rb:196:in `dispatch' + actionpack (4.2.5.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' + actionpack (4.2.5.2) lib/action_controller/metal.rb:237:in `block in action' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `call' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:43:in `serve' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call' + railties (4.2.5.2) lib/rails/engine.rb:518:in `call' + railties (4.2.5.2) lib/rails/railtie.rb:194:in `public_send' + railties (4.2.5.2) lib/rails/railtie.rb:194:in `method_missing' + actionpack (4.2.5.2) lib/action_dispatch/routing/mapper.rb:51:in `serve' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:43:in `block in serve' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `each' + actionpack (4.2.5.2) lib/action_dispatch/journey/router.rb:30:in `serve' + actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:815:in `call' + rack (1.6.4) lib/rack/etag.rb:24:in `call' + rack (1.6.4) lib/rack/conditionalget.rb:38:in `call' + rack (1.6.4) lib/rack/head.rb:13:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/flash.rb:260:in `call' + rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' + rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/cookies.rb:560:in `call' + activerecord (4.2.5.2) lib/active_record/query_cache.rb:36:in `call' + activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' + activerecord (4.2.5.2) lib/active_record/migration.rb:377:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:88:in `__run_callbacks__' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' + activesupport (4.2.5.2) lib/active_support/callbacks.rb:81:in `run_callbacks' + actionpack (4.2.5.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/reloader.rb:73:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' + railties (4.2.5.2) lib/rails/rack/logger.rb:38:in `call_app' + railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `block in call' + activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `block in tagged' + activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:26:in `tagged' + activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `tagged' + railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/request_id.rb:21:in `call' + rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' + rack (1.6.4) lib/rack/runtime.rb:18:in `call' + activesupport (4.2.5.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' + rack (1.6.4) lib/rack/lock.rb:17:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/static.rb:116:in `call' + rack (1.6.4) lib/rack/sendfile.rb:113:in `call' + railties (4.2.5.2) lib/rails/engine.rb:518:in `call' + railties (4.2.5.2) lib/rails/application.rb:165:in `call' + rack (1.6.4) lib/rack/lock.rb:17:in `call' + rack (1.6.4) lib/rack/content_length.rb:15:in `call' + rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' + /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' + /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' + /home/leksster/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' + + + Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.9ms) + 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.3ms) + 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) + 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.6ms) + + +Started POST "/simple_cart/cart/1?klass=Kk" for 127.0.0.1 at 2016-03-16 01:43:48 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"AE7xM9B4jvFKZXGBUkgpMk45drGEZUSJjFVae7pO92wddxrzCKe1MQ6Wgg6HZhnB7A7lv5THw/p9V2QRmV3URw==", "qty"=>"1", "commit"=>"Add to cart", "klass"=>"Kk", "item_id"=>"1"} +Redirected to http://localhost:3000/simple_cart/cart +Completed 302 Found in 2ms (ActiveRecord: 0.0ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-16 01:43:48 +0200 +Processing by SimpleCart::CartsController#show as HTML + Kk Load (0.1ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.3ms) +Completed 200 OK in 35ms (Views: 34.1ms | ActiveRecord: 0.7ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-16 01:43:50 +0200 +Processing by SimpleCart::CartsController#show as HTML + Kk Load (0.1ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (7.8ms) +Completed 200 OK in 32ms (Views: 31.3ms | ActiveRecord: 0.1ms) + + +Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-16 01:43:51 +0200 + + +Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-16 01:43:51 +0200 + + +Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-16 01:43:51 +0200 + + +Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-16 01:43:51 +0200 + + +Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-16 01:43:51 +0200 + + +Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-16 01:43:55 +0200 +Processing by SimpleCart::CartsController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"2jHhg8LOWPxpec+0NY+/Ph6FXqOnYS2C6bwTylB2hBzHCApDGhFjPC2KPDvgoY/NvLLNrbfDqvEYvi2gc2WnNw==", "Kk_1"=>"4", "coupon"=>"", "commit"=>"Update"} + Kk Load (0.2ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (11.5ms) +Completed 200 OK in 31ms (Views: 30.1ms | ActiveRecord: 0.2ms) + + +Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-16 01:48:03 +0200 +Processing by SimpleCart::CartsController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"a52KoyTRjnBuWkSCp8I+cG0QE5gnC0ENPmmrs8FH7ZV2pGFj/A61sCqptw1y7A6DzyeAljepxn7Pa5XZ4lTOvg==", "Kk_1"=>"6", "coupon"=>"", "commit"=>"Update"} + Kk Load (0.2ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.3ms) +Completed 200 OK in 37ms (Views: 35.1ms | ActiveRecord: 1.1ms) + + +Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-16 01:48:07 +0200 +Processing by SimpleCart::CartsController#clear as HTML + Parameters: {"authenticity_token"=>"LtSaxSLhxqdksKJUU/Dbj1NBzHVfgSUy8Qr8bXo17fwz7XEF+j79ZyBDUduG3ut88XZfe08jokEACMIHWSbO1w=="} +Redirected to http://localhost:3000/simple_cart/cart +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-16 01:48:07 +0200 +Processing by SimpleCart::CartsController#show as HTML + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (0.7ms) +Completed 200 OK in 23ms (Views: 22.4ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2016-03-22 11:43:32 +0200 + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by Rails::WelcomeController#index as HTML + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/railties-4.2.5.2/lib/rails/templates/rails/welcome/index.html.erb (1.3ms) +Completed 200 OK in 48ms (Views: 40.1ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2016-03-22 11:43:32 +0200 +Processing by Rails::WelcomeController#index as HTML + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/railties-4.2.5.2/lib/rails/templates/rails/welcome/index.html.erb (0.1ms) +Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) + + +Started GET "/items" for 127.0.0.1 at 2016-03-22 11:43:35 +0200 +Processing by ItemsController#index as HTML +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + +NameError (uninitialized constant ItemsController::Item): + app/controllers/items_controller.rb:6:in `index' + + + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.2ms) + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (17.2ms) + + +Started GET "/items" for 127.0.0.1 at 2016-03-22 11:43:35 +0200 +Processing by ItemsController#index as HTML +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + +NameError (uninitialized constant ItemsController::Item): + app/controllers/items_controller.rb:6:in `index' + + + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.1ms) + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (16.4ms) + + +Started GET "/things" for 127.0.0.1 at 2016-03-22 11:43:59 +0200 +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" + Rendered things/index.html.erb within layouts/application (7.9ms) +Completed 200 OK in 3032ms (Views: 3028.0ms | ActiveRecord: 0.4ms) + + +Started GET "/things" for 127.0.0.1 at 2016-03-22 11:44:02 +0200 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" + Rendered things/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 15ms (Views: 14.4ms | ActiveRecord: 0.1ms) + + +Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-22 11:44:02 +0200 + + +Started GET "/assets/kks.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-22 11:44:02 +0200 + + +Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-22 11:44:02 +0200 + + +Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-22 11:44:02 +0200 + + +Started GET "/assets/scaffolds.self-946cc52ce42d334b8ad4f0416723a43e7fd64f8ee9fc4ee7ab4fd482910d3768.css?body=1" for 127.0.0.1 at 2016-03-22 11:44:02 +0200 + + +Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-22 11:44:02 +0200 + + +Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-22 11:44:02 +0200 + + +Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-22 11:44:02 +0200 + + +Started GET "/assets/things.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-22 11:44:02 +0200 + + +Started GET "/assets/kks.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-22 11:44:02 +0200 + + +Started GET "/assets/things.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-22 11:44:02 +0200 + + +Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-22 11:44:02 +0200 + + +Started GET "/things/2" for 127.0.0.1 at 2016-03-22 11:44:04 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (447.0ms) + Rendered things/show.html.erb within layouts/application (467.9ms) +Completed 200 OK in 515ms (Views: 506.3ms | ActiveRecord: 0.2ms) + + +Started POST "/simple_cart/cart/2?klass=Thing" for 127.0.0.1 at 2016-03-22 11:44:07 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Gin1F5BBIhAB6v59CGlPbgZuEtBD3NppbonILdd7gEIHEB7XSJ4Z0EUZDfLdR3+dpFmB3lN+XRqfi/ZH9GijaQ==", "qty"=>"3", "commit"=>"Add to cart", "klass"=>"Thing", "item_id"=>"2"} +Redirected to http://localhost:3000/simple_cart/cart +Completed 302 Found in 17ms (ActiveRecord: 0.0ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-22 11:44:07 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (21.7ms) +Completed 200 OK in 140ms (Views: 138.9ms | ActiveRecord: 0.2ms) + + +Started GET "/assets/simple_cart/application.self-0ed1b3de9df3dbf989d4efb31e9269cf7e3dcacd3a03fae63d761537d6ee9414.css?body=1" for 127.0.0.1 at 2016-03-22 11:44:07 +0200 + + +Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-22 11:44:07 +0200 + + +Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-22 11:44:08 +0200 +Processing by SimpleCart::CartsController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"KsvnCuCyxiq1olEk6cbHJM4SMIzH/yEEDdyWD+s8lEQ38gzKOG396vFRoqs86PfXbCWjgtddpnf83qhlyC+3bw==", "Thing_2"=>"3", "coupon"=>"", "commit"=>"Update"} + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (9.7ms) +Completed 200 OK in 32ms (Views: 30.4ms | ActiveRecord: 0.3ms) + + +Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-22 11:44:10 +0200 +Processing by SimpleCart::CartsController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"1phRP9p/GLsdb5vuPlsXswG1ueTHsgeQp62CA1pMXBrLobr/AqAje1mcaGHrdSdAo4Iq6tcQgONWr7xpeV9/MQ==", "Thing_2"=>"5", "coupon"=>"", "commit"=>"Update"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (9.3ms) +Completed 200 OK in 29ms (Views: 28.3ms | ActiveRecord: 0.1ms) + + +Started POST "/simple_cart/cart/checkout?coupon=" for 127.0.0.1 at 2016-03-22 11:44:11 +0200 +Processing by SimpleCart::CartsController#checkout as HTML + Parameters: {"authenticity_token"=>"3fTxOogpFxeyKFO4BLaxul5zJjn+ePQTv/RBkZADksLAzRr6UPYs1/bboDfRmIFJ/ES1N+7ac2BO9n/7sxCx6Q==", "coupon"=>""} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 0.0], ["completed_date", "2016-03-22"], ["aasm_state", "in_progress"], ["created_at", "2016-03-22 09:44:11.581911"], ["updated_at", "2016-03-22 09:44:11.581911"]] + SQL (0.3ms) INSERT INTO "simple_cart_order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 0.0], ["qty", 5], ["itemable_id", 2], ["itemable_type", "Thing"], ["order_id", "14"], ["created_at", "2016-03-22 09:44:11.583571"], ["updated_at", "2016-03-22 09:44:11.583571"]] +  (210.7ms) commit transaction +Redirected to http://localhost:3000/simple_cart/orders/14/checkout +Completed 302 Found in 300ms (ActiveRecord: 212.0ms) + + +Started GET "/simple_cart/orders/14/checkout" for 127.0.0.1 at 2016-03-22 11:44:11 +0200 +Processing by SimpleCart::CheckoutController#index as HTML + Parameters: {"order_id"=>"14"} + SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 14]] +Redirected to http://localhost:3000/simple_cart/orders/14/checkout/billing +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + + +Started GET "/simple_cart/orders/14/checkout/billing" for 127.0.0.1 at 2016-03-22 11:44:11 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"14", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 14]] + 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", 14]] + 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", 14]] + 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", 14]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (4.9ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (18.1ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "14"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "14"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (19.3ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (106.0ms) +Completed 200 OK in 270ms (Views: 184.2ms | ActiveRecord: 1.3ms) + + +Started PATCH "/simple_cart/orders/14/checkout/billing" for 127.0.0.1 at 2016-03-22 11:44:15 +0200 +Processing by SimpleCart::CheckoutController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"kRYUv5oASIqXugf2YbpeLmUsXdaGyDLo7koMIHj7Jz2ML/9/Qt9zStNJ9Hm0lG7dxxvO2JZqtZsfSDJKW+gEFg==", "order"=>{"billing_address_attributes"=>{"firstname"=>"", "lastname"=>"", "address"=>"", "zipcode"=>"", "city"=>"", "phone"=>"", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"14", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 14]] +  (0.1ms) begin transaction + 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", 14]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (7.1ms) + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 14]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "14"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.3ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (16.9ms) +Completed 200 OK in 46ms (Views: 34.4ms | ActiveRecord: 0.6ms) + + +Started GET "/simple_cart/orders/14/checkout/billing" for 127.0.0.1 at 2016-03-22 11:44:16 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"14", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 14]] + 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", 14]] + 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", 14]] + 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", 14]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (7.2ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "14"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "14"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.2ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (14.1ms) +Completed 200 OK in 39ms (Views: 32.9ms | ActiveRecord: 0.5ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-22 11:46:51 +0200 +Processing by SimpleCart::CartsController#show as HTML + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (0.8ms) +Completed 200 OK in 25ms (Views: 23.7ms | ActiveRecord: 0.0ms) + + +Started GET "/things" for 127.0.0.1 at 2016-03-22 11:46:56 +0200 +Processing by ThingsController#index as HTML + Thing Load (0.3ms) SELECT "things".* FROM "things" + Rendered things/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 22ms (Views: 20.4ms | ActiveRecord: 0.3ms) + + +Started GET "/things" for 127.0.0.1 at 2016-03-22 11:46:57 +0200 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" + Rendered things/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 16ms (Views: 15.1ms | ActiveRecord: 0.1ms) + + +Started GET "/things/1" for 127.0.0.1 at 2016-03-22 11:46:59 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (8.0ms) + Rendered things/show.html.erb within layouts/application (9.3ms) +Completed 200 OK in 32ms (Views: 30.9ms | ActiveRecord: 0.1ms) + + +Started POST "/simple_cart/cart/1?klass=Thing" for 127.0.0.1 at 2016-03-22 11:47:00 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"I43jcbOycR1ztnCNiPMGxo3owCQNqyAjJk4TUp6Yo1M+tAixa21K3TdFgwJd3TY1L99TKh0Jp1DXTC04vYuAeA==", "qty"=>"1", "commit"=>"Add to cart", "klass"=>"Thing", "item_id"=>"1"} +Redirected to http://localhost:3000/simple_cart/cart +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-22 11:47:00 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (8.6ms) +Completed 200 OK in 25ms (Views: 24.4ms | ActiveRecord: 0.1ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-22 11:47:10 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (9.9ms) +Completed 200 OK in 28ms (Views: 27.6ms | ActiveRecord: 0.1ms) + + +Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:10 +0200 + + +Started GET "/assets/simple_cart/application.self-0ed1b3de9df3dbf989d4efb31e9269cf7e3dcacd3a03fae63d761537d6ee9414.css?body=1" for 127.0.0.1 at 2016-03-22 11:47:10 +0200 + + +Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:10 +0200 + + +Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:10 +0200 + + +Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:10 +0200 + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-22 11:47:11 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (7.9ms) +Completed 200 OK in 37ms (Views: 36.5ms | ActiveRecord: 0.1ms) + + +Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:11 +0200 + + +Started GET "/assets/simple_cart/application.self-0ed1b3de9df3dbf989d4efb31e9269cf7e3dcacd3a03fae63d761537d6ee9414.css?body=1" for 127.0.0.1 at 2016-03-22 11:47:11 +0200 + + +Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:11 +0200 + + +Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:11 +0200 + + +Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:12 +0200 + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-22 11:47:22 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.2ms) +Completed 200 OK in 32ms (Views: 31.5ms | ActiveRecord: 0.1ms) + + +Started GET "/assets/simple_cart/application.self-0ed1b3de9df3dbf989d4efb31e9269cf7e3dcacd3a03fae63d761537d6ee9414.css?body=1" for 127.0.0.1 at 2016-03-22 11:47:22 +0200 + + +Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:22 +0200 + + +Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:22 +0200 + + +Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:22 +0200 + + +Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:22 +0200 + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-22 11:47:23 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (7.7ms) +Completed 200 OK in 27ms (Views: 26.6ms | ActiveRecord: 0.1ms) + + +Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:23 +0200 + + +Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:23 +0200 + + +Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:24 +0200 + + +Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:24 +0200 + + +Started GET "/assets/simple_cart/application.self-0ed1b3de9df3dbf989d4efb31e9269cf7e3dcacd3a03fae63d761537d6ee9414.css?body=1" for 127.0.0.1 at 2016-03-22 11:47:24 +0200 + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-22 11:47:24 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.3ms) +Completed 200 OK in 32ms (Views: 31.5ms | ActiveRecord: 0.2ms) + + +Started GET "/assets/simple_cart/application.self-0ed1b3de9df3dbf989d4efb31e9269cf7e3dcacd3a03fae63d761537d6ee9414.css?body=1" for 127.0.0.1 at 2016-03-22 11:47:24 +0200 + + +Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:24 +0200 + + +Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:24 +0200 + + +Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:24 +0200 + + +Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:24 +0200 + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-22 11:47:25 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (8.6ms) +Completed 200 OK in 28ms (Views: 27.4ms | ActiveRecord: 0.1ms) + + +Started GET "/assets/simple_cart/application.self-0ed1b3de9df3dbf989d4efb31e9269cf7e3dcacd3a03fae63d761537d6ee9414.css?body=1" for 127.0.0.1 at 2016-03-22 11:47:25 +0200 + + +Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:25 +0200 + + +Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:25 +0200 + + +Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:25 +0200 + + +Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:25 +0200 + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-22 11:47:25 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (8.4ms) +Completed 200 OK in 30ms (Views: 29.3ms | ActiveRecord: 0.2ms) + + +Started GET "/assets/simple_cart/application.self-0ed1b3de9df3dbf989d4efb31e9269cf7e3dcacd3a03fae63d761537d6ee9414.css?body=1" for 127.0.0.1 at 2016-03-22 11:47:26 +0200 + + +Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:26 +0200 + + +Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:26 +0200 + + +Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:26 +0200 + + +Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:26 +0200 + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-22 11:47:26 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (6.8ms) +Completed 200 OK in 26ms (Views: 24.8ms | ActiveRecord: 0.1ms) + + +Started GET "/assets/simple_cart/application.self-0ed1b3de9df3dbf989d4efb31e9269cf7e3dcacd3a03fae63d761537d6ee9414.css?body=1" for 127.0.0.1 at 2016-03-22 11:47:26 +0200 + + +Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:26 +0200 + + +Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:26 +0200 + + +Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:26 +0200 + + +Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:26 +0200 + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-22 11:47:47 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered simple_cart/carts/show.html.haml within layouts/simple_cart/application (17.4ms) +Completed 200 OK in 38ms (Views: 37.5ms | ActiveRecord: 0.2ms) + + +Started GET "/assets/simple_cart/application.self-0ed1b3de9df3dbf989d4efb31e9269cf7e3dcacd3a03fae63d761537d6ee9414.css?body=1" for 127.0.0.1 at 2016-03-22 11:47:47 +0200 + + +Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:47 +0200 + + +Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:47 +0200 + + +Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:47 +0200 + + +Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-22 11:47:47 +0200 + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-22 11:48:40 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered simple_cart/carts/show.html.haml within layouts/simple_cart/application (19.8ms) +Completed 200 OK in 41ms (Views: 39.8ms | ActiveRecord: 0.2ms) + + +Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-22 11:48:41 +0200 + + +Started GET "/assets/simple_cart/application.self-0ed1b3de9df3dbf989d4efb31e9269cf7e3dcacd3a03fae63d761537d6ee9414.css?body=1" for 127.0.0.1 at 2016-03-22 11:48:41 +0200 + + +Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-22 11:48:41 +0200 + + +Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-22 11:48:41 +0200 + + +Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-22 11:48:41 +0200 + + +Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-22 11:49:42 +0200 +Processing by SimpleCart::CartsController#checkout as HTML + Parameters: {"authenticity_token"=>"nFICOUHPUKu8bPEJaAz1NOLFDaMeAROk7ujQyACVPPOBa+n5mRBra/ifAoa9IsXHQPKerQ6jlNcf6u6iI4Yf2A=="} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 52251.0], ["completed_date", "2016-03-22"], ["aasm_state", "in_progress"], ["created_at", "2016-03-22 09:49:42.144644"], ["updated_at", "2016-03-22 09:49:42.144644"]] + 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", 1], ["itemable_id", 1], ["itemable_type", "Thing"], ["order_id", "15"], ["created_at", "2016-03-22 09:49:42.148303"], ["updated_at", "2016-03-22 09:49:42.148303"]] +  (62.6ms) commit transaction +Redirected to http://localhost:3000/simple_cart/orders/15/checkout +Completed 302 Found in 73ms (ActiveRecord: 63.2ms) + + +Started GET "/simple_cart/orders/15/checkout" for 127.0.0.1 at 2016-03-22 11:49:42 +0200 +Processing by SimpleCart::CheckoutController#index as HTML + Parameters: {"order_id"=>"15"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 15]] +Redirected to http://localhost:3000/simple_cart/orders/15/checkout/billing +Completed 302 Found in 1ms (ActiveRecord: 0.1ms) + + +Started GET "/simple_cart/orders/15/checkout/billing" for 127.0.0.1 at 2016-03-22 11:49:42 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"15", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 15]] + 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", 15]] + SimpleCart::ShippingAddress Load (0.0ms) 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", 15]] + 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", 15]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (6.0ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "15"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "15"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.1ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (12.3ms) +Completed 200 OK in 32ms (Views: 27.9ms | ActiveRecord: 0.3ms) + + +Started PATCH "/simple_cart/orders/15/checkout/billing" for 127.0.0.1 at 2016-03-22 11:49:45 +0200 +Processing by SimpleCart::CheckoutController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"iIofUjO/oNj7SN6k/nvCsUaYEGIeOW9lUXuDRVz7fwyVs/SS62CbGL+7LSsrVfJC5K+DbA6b6Bageb0vf+hcJw==", "order"=>{"billing_address_attributes"=>{"firstname"=>"", "lastname"=>"", "address"=>"", "zipcode"=>"", "city"=>"", "phone"=>"", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"15", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 15]] +  (0.1ms) begin transaction + 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", 15]] +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (6.0ms) + SimpleCart::Order Load (0.3ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 15]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "15"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (2.5ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (17.2ms) +Completed 200 OK in 45ms (Views: 33.7ms | ActiveRecord: 0.7ms) + + +Started GET "/simple_cart/orders/15/checkout/billing" for 127.0.0.1 at 2016-03-22 11:49:46 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"15", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 15]] + 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", 15]] + 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", 15]] + 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", 15]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.3ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (7.8ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "15"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "15"]] + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.4ms) + Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (15.7ms) +Completed 200 OK in 40ms (Views: 35.5ms | ActiveRecord: 0.4ms) + + +Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-22 11:50:13 +0200 +Processing by SimpleCart::CartsController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"nFICOUHPUKu8bPEJaAz1NOLFDaMeAROk7ujQyACVPPOBa+n5mRBra/ifAoa9IsXHQPKerQ6jlNcf6u6iI4Yf2A==", "Thing_1"=>"1", "coupon"=>"", "commit"=>"Update"} + Rendered simple_cart/carts/show.html.haml within layouts/simple_cart/application (7.9ms) +Completed 200 OK in 28ms (Views: 27.1ms | ActiveRecord: 0.0ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-22 11:50:15 +0200 +Processing by SimpleCart::CartsController#show as HTML + Rendered simple_cart/carts/show.html.haml within layouts/simple_cart/application (0.8ms) +Completed 200 OK in 20ms (Views: 19.5ms | ActiveRecord: 0.0ms) + + +Started GET "/things/1" for 127.0.0.1 at 2016-03-22 11:50:17 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Rendered simple_cart/carts/_buy.html.haml (5.1ms) + Rendered things/show.html.erb within layouts/application (5.9ms) +Completed 200 OK in 21ms (Views: 20.3ms | ActiveRecord: 0.1ms) + + +Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-22 11:50:17 +0200 + + +Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-22 11:50:17 +0200 + + +Started GET "/assets/things.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-22 11:50:17 +0200 + + +Started GET "/assets/kks.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-22 11:50:17 +0200 + + +Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-22 11:50:17 +0200 + + +Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-22 11:50:17 +0200 + + +Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-22 11:50:17 +0200 + + +Started GET "/assets/scaffolds.self-946cc52ce42d334b8ad4f0416723a43e7fd64f8ee9fc4ee7ab4fd482910d3768.css?body=1" for 127.0.0.1 at 2016-03-22 11:50:17 +0200 + + +Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-22 11:50:17 +0200 + + +Started GET "/assets/kks.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-22 11:50:17 +0200 + + +Started GET "/assets/things.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-22 11:50:17 +0200 + + +Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-22 11:50:17 +0200 + + +Started POST "/simple_cart/cart/1?klass=Thing" for 127.0.0.1 at 2016-03-22 11:50:20 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"EEe9nenB3wAv9q3oO0484Fkv8ylE6ARgM5K+zInLJOYNflZdMR7kwGsFXmfuYAwT+xhgJ1RKgxPCkICmqtgHzQ==", "qty"=>"4", "commit"=>"Add to cart", "klass"=>"Thing", "item_id"=>"1"} +Redirected to http://localhost:3000/simple_cart/cart +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-22 11:50:20 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered simple_cart/carts/show.html.haml within layouts/simple_cart/application (6.0ms) +Completed 200 OK in 23ms (Views: 22.1ms | ActiveRecord: 0.1ms) + + +Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-22 11:55:18 +0200 +Processing by SimpleCart::CartsController#clear as HTML + Parameters: {"authenticity_token"=>"0ew9x6FSXN4PltiaYBc4xSODZ9ZzBKm2sV52La1guPfM1dYHeY1nHktlKxW1OQg2gbT02GOmLsVAXEhHjnOb3A=="} +Redirected to http://localhost:3000/simple_cart/cart +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-22 11:55:18 +0200 +Processing by SimpleCart::CartsController#show as HTML + Rendered simple_cart/carts/show.html.haml within layouts/simple_cart/application (0.7ms) +Completed 200 OK in 19ms (Views: 18.7ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2016-03-22 12:43:45 +0200 + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by Rails::WelcomeController#index as HTML + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/railties-4.2.5.2/lib/rails/templates/rails/welcome/index.html.erb (1.1ms) +Completed 200 OK in 14ms (Views: 6.6ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2016-03-22 12:43:45 +0200 +Processing by Rails::WelcomeController#index as HTML + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/railties-4.2.5.2/lib/rails/templates/rails/welcome/index.html.erb (0.0ms) +Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) + + +Started GET "/things" for 127.0.0.1 at 2016-03-22 12:43:47 +0200 +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" + Rendered things/index.html.erb within layouts/application (7.8ms) +Completed 200 OK in 201ms (Views: 198.2ms | ActiveRecord: 0.6ms) + + +Started GET "/things/1" for 127.0.0.1 at 2016-03-22 12:43:49 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Rendered simple_cart/carts/_buy.html.haml (451.9ms) + Rendered things/show.html.erb within layouts/application (455.5ms) +Completed 200 OK in 475ms (Views: 467.9ms | ActiveRecord: 0.2ms) + + +Started GET "/things/1" for 127.0.0.1 at 2016-03-22 12:55:28 +0200 + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} +Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.3ms) + +NameError (undefined local variable or method `acts_as_product' for #<Class:0x007fc55886b0a8>): + app/models/thing.rb:2:in `<class:Thing>' + app/models/thing.rb:1:in `<top (required)>' + app/controllers/things_controller.rb:51:in `set_thing' + + + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.8ms) + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (17.9ms) + Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."id" ASC LIMIT 1 + Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."id" ASC LIMIT 1 + SimpleCart::OrderItem Load (0.2ms) SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."itemable_id" = ? AND "simple_cart_order_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "Thing"]] + Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."id" ASC LIMIT 1 + SimpleCart::OrderItem Load (0.2ms) SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."itemable_id" = ? AND "simple_cart_order_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "Thing"]] + Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."id" ASC LIMIT 1 + SimpleCart::OrderItem Load (0.2ms) SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."itemable_id" = ? AND "simple_cart_order_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "Thing"]] + + +Started GET "/things" for 127.0.0.1 at 2016-03-22 13:25:29 +0200 + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" + Rendered things/index.html.erb within layouts/application (7.7ms) +Completed 200 OK in 226ms (Views: 214.8ms | ActiveRecord: 0.6ms) + + +Started GET "/things/1" for 127.0.0.1 at 2016-03-22 13:25:31 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Rendered simple_cart/carts/_buy.html.haml (428.6ms) + Rendered things/show.html.erb within layouts/application (432.4ms) +Completed 200 OK in 459ms (Views: 450.1ms | ActiveRecord: 0.2ms) + + +Started POST "/shop/cart/1?klass=Thing" for 127.0.0.1 at 2016-03-22 13:25:33 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"QMbBlL/Z5fkuFlmmiNQ18JFoiyKj1EoUwRnJczcL3Bld/ypUZwbeOWrlqild+gUDM18YLLN2zWcwG/cZFBj/Mg==", "qty"=>"1", "commit"=>"Add to cartrrrr", "klass"=>"Thing", "item_id"=>"1"} +Redirected to http://localhost:3000/shop/cart +Completed 302 Found in 2ms (ActiveRecord: 0.0ms) + + +Started GET "/shop/cart" for 127.0.0.1 at 2016-03-22 13:25:33 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered simple_cart/carts/show.html.haml within layouts/simple_cart/application (18.5ms) +Completed 200 OK in 48ms (Views: 47.5ms | ActiveRecord: 0.1ms) + + +Started POST "/shop/cart/checkout" for 127.0.0.1 at 2016-03-22 13:25:34 +0200 +Processing by SimpleCart::CartsController#checkout as HTML + Parameters: {"authenticity_token"=>"cgFrKVEvf01nwIFTmsGSD7K1pwFTRkUc+UxZweTWBk5vOIDpifBEjSMzctxP76L8EII0D0Pkwm8ITmerx8UlZQ=="} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 52251.0], ["completed_date", "2016-03-22"], ["aasm_state", "in_progress"], ["created_at", "2016-03-22 11:25:34.678196"], ["updated_at", "2016-03-22 11:25:34.678196"]] + 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", 1], ["itemable_id", 1], ["itemable_type", "Thing"], ["order_id", "16"], ["created_at", "2016-03-22 11:25:34.679979"], ["updated_at", "2016-03-22 11:25:34.679979"]] +  (217.2ms) commit transaction +Redirected to http://localhost:3000/shop/orders/16/checkout +Completed 302 Found in 266ms (ActiveRecord: 218.2ms) + + +Started GET "/shop/orders/16/checkout" for 127.0.0.1 at 2016-03-22 13:25:34 +0200 +Processing by SimpleCart::CheckoutController#index as HTML + Parameters: {"order_id"=>"16"} + SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] +Redirected to http://localhost:3000/shop/orders/16/checkout/billing +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + + +Started GET "/shop/orders/16/checkout/billing" for 127.0.0.1 at 2016-03-22 13:25:34 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"16", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] + 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", 16]] + 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", 16]] + 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", 16]] + Rendered simple_cart/checkout/_progress.html.haml (2.6ms) + Rendered simple_cart/checkout/_address.html.haml (11.8ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + Rendered simple_cart/checkout/_summary.html.haml (4.1ms) + Rendered simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (30.7ms) +Completed 200 OK in 85ms (Views: 48.0ms | ActiveRecord: 1.2ms) + + +Started PATCH "/shop/orders/16/checkout/billing" for 127.0.0.1 at 2016-03-22 13:25:40 +0200 +Processing by SimpleCart::CheckoutController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"fz4n/cJpghWzBoA1PzlSjqyQHHZ04jN/0omk9SyQA5ZiB8w9Gra51ff1c7rqF2J9DqePeGRAtAwji5qfD4MgvQ==", "order"=>{"billing_address_attributes"=>{"firstname"=>"gasg", "lastname"=>"asgas", "address"=>"gasgas", "zipcode"=>"gasgasg", "city"=>"asgsag", "phone"=>"asgasg", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"16", "id"=>"billing"} + SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] +  (0.1ms) begin transaction + 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", 16]] + 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", "gasg"], ["lastname", "asgas"], ["address", "gasgas"], ["zipcode", "gasgasg"], ["city", "asgsag"], ["phone", "asgasg"], ["country", "Afghanistan"], ["order_id", 16], ["created_at", "2016-03-22 11:25:40.108368"], ["updated_at", "2016-03-22 11:25:40.108368"]] +  (66.1ms) commit transaction + 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", 16]] +  (0.1ms) begin transaction + 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", 16], ["address", "gasgas"], ["zipcode", "gasgasg"], ["city", "asgsag"], ["phone", "asgasg"], ["country", "Afghanistan"], ["created_at", "2016-03-22 11:25:40.108368"], ["updated_at", "2016-03-22 11:25:40.108368"], ["firstname", "gasg"], ["lastname", "asgas"]] +  (102.1ms) commit transaction +Redirected to http://localhost:3000/shop/orders/16/checkout/delivery +Completed 302 Found in 183ms (ActiveRecord: 169.6ms) + + +Started GET "/shop/orders/16/checkout/delivery" for 127.0.0.1 at 2016-03-22 13:25:40 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"16", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] + 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", 16]] + 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", 16]] + 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", 16]] + Rendered simple_cart/checkout/_progress.html.haml (1.1ms) + SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" + SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1 + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + Rendered simple_cart/checkout/_summary.html.haml (1.0ms) + Rendered simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (15.5ms) +Completed 200 OK in 37ms (Views: 31.9ms | ActiveRecord: 1.1ms) + + +Started GET "/shop/orders/16/checkout/payment" for 127.0.0.1 at 2016-03-22 13:25:41 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"16", "id"=>"payment"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] + 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", 16]] + 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", 16]] + 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", 16]] +Redirected to http://localhost:3000/shop/orders/16/checkout/delivery +Completed 302 Found in 4ms (ActiveRecord: 0.3ms) + + +Started GET "/shop/orders/16/checkout/delivery" for 127.0.0.1 at 2016-03-22 13:25:41 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"16", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] + 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", 16]] + 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", 16]] + 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", 16]] + Rendered simple_cart/checkout/_progress.html.haml (2.2ms) + SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1 + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + Rendered simple_cart/checkout/_summary.html.haml (2.4ms) + Rendered simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (13.0ms) +Completed 200 OK in 31ms (Views: 28.2ms | ActiveRecord: 0.6ms) + + +Started GET "/shop/orders/16/checkout/confirm" for 127.0.0.1 at 2016-03-22 13:25:42 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"16", "id"=>"confirm"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] + 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", 16]] + 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", 16]] + 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", 16]] +Redirected to http://localhost:3000/shop/orders/16/checkout/payment +Completed 302 Found in 4ms (ActiveRecord: 0.4ms) + + +Started GET "/shop/orders/16/checkout/payment" for 127.0.0.1 at 2016-03-22 13:25:42 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"16", "id"=>"payment"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] + 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", 16]] + 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", 16]] + 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", 16]] +Redirected to http://localhost:3000/shop/orders/16/checkout/delivery +Completed 302 Found in 4ms (ActiveRecord: 0.3ms) + + +Started GET "/shop/orders/16/checkout/delivery" for 127.0.0.1 at 2016-03-22 13:25:42 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"16", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] + 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", 16]] + 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", 16]] + 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", 16]] + Rendered simple_cart/checkout/_progress.html.haml (0.8ms) + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1 + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + Rendered simple_cart/checkout/_summary.html.haml (1.5ms) + Rendered simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (6.3ms) +Completed 200 OK in 25ms (Views: 22.0ms | ActiveRecord: 0.5ms) + + +Started GET "/shop/orders/16/checkout/delivery" for 127.0.0.1 at 2016-03-22 13:25:44 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"16", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] + 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", 16]] + 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", 16]] + 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", 16]] + Rendered simple_cart/checkout/_progress.html.haml (1.3ms) + SimpleCart::Delivery Load (0.3ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1 + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + Rendered simple_cart/checkout/_summary.html.haml (0.9ms) + Rendered simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (7.3ms) +Completed 200 OK in 30ms (Views: 25.0ms | ActiveRecord: 0.9ms) + + +Started GET "/shop/orders/16/checkout/payment" for 127.0.0.1 at 2016-03-22 13:25:45 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"16", "id"=>"payment"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] + 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", 16]] + 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", 16]] + 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", 16]] +Redirected to http://localhost:3000/shop/orders/16/checkout/delivery +Completed 302 Found in 4ms (ActiveRecord: 0.3ms) + + +Started GET "/shop/orders/16/checkout/delivery" for 127.0.0.1 at 2016-03-22 13:25:45 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"16", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] + 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", 16]] + 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", 16]] + 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", 16]] + Rendered simple_cart/checkout/_progress.html.haml (0.8ms) + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1 + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + Rendered simple_cart/checkout/_summary.html.haml (1.1ms) + Rendered simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (5.6ms) +Completed 200 OK in 26ms (Views: 22.5ms | ActiveRecord: 0.5ms) + + +Started GET "/shop/orders/16/checkout/delivery" for 127.0.0.1 at 2016-03-22 13:25:45 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"16", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] + 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", 16]] + 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", 16]] + 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", 16]] + Rendered simple_cart/checkout/_progress.html.haml (0.9ms) + SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1 + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + Rendered simple_cart/checkout/_summary.html.haml (1.1ms) + Rendered simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (6.0ms) +Completed 200 OK in 25ms (Views: 21.3ms | ActiveRecord: 0.7ms) + + +Started GET "/shop/orders/16/checkout/billing" for 127.0.0.1 at 2016-03-22 13:25:46 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"16", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] + 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", 16]] + 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", 16]] + 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", 16]] + Rendered simple_cart/checkout/_progress.html.haml (0.9ms) + Rendered simple_cart/checkout/_address.html.haml (7.7ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + Rendered simple_cart/checkout/_summary.html.haml (1.1ms) + Rendered simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (18.6ms) +Completed 200 OK in 51ms (Views: 47.0ms | ActiveRecord: 0.4ms) + + +Started GET "/shop/orders/16/checkout/delivery" for 127.0.0.1 at 2016-03-22 13:25:47 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"16", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] + 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", 16]] + 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", 16]] + 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", 16]] + Rendered simple_cart/checkout/_progress.html.haml (1.0ms) + SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" + SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1 + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + Rendered simple_cart/checkout/_summary.html.haml (1.1ms) + Rendered simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (7.0ms) +Completed 200 OK in 33ms (Views: 28.9ms | ActiveRecord: 0.8ms) + + +Started GET "/shop/orders/16/checkout/billing" for 127.0.0.1 at 2016-03-22 13:25:47 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"16", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] + 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", 16]] + 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", 16]] + 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", 16]] + Rendered simple_cart/checkout/_progress.html.haml (1.1ms) + Rendered simple_cart/checkout/_address.html.haml (7.5ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + Rendered simple_cart/checkout/_summary.html.haml (1.1ms) + Rendered simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (14.2ms) +Completed 200 OK in 40ms (Views: 36.1ms | ActiveRecord: 0.5ms) + + +Started PATCH "/shop/orders/16/checkout/billing" for 127.0.0.1 at 2016-03-22 13:25:49 +0200 +Processing by SimpleCart::CheckoutController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"MIbrWHQWI1rNFFYSTRquVR/34+Q1rf+XILupYZvjEz0tvwCYrMkYmonnpZ2YNJ6mvcBw6iUPeOTRuZcLuPAwFg==", "order"=>{"billing_address_attributes"=>{"firstname"=>"gasg", "lastname"=>"asgas", "address"=>"gasgas", "zipcode"=>"gasgasg", "city"=>"asgsag", "phone"=>"asgasg", "country"=>"Afghanistan", "id"=>"19"}}, "commit"=>"Save and continue", "order_id"=>"16", "id"=>"billing"} + SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] +Unpermitted parameter: id +  (0.2ms) begin transaction + 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", 16]] + SQL (0.2ms) DELETE FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."id" = ? [["id", 19]] + 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", "gasg"], ["lastname", "asgas"], ["address", "gasgas"], ["zipcode", "gasgasg"], ["city", "asgsag"], ["phone", "asgasg"], ["country", "Afghanistan"], ["order_id", 16], ["created_at", "2016-03-22 11:25:49.675009"], ["updated_at", "2016-03-22 11:25:49.675009"]] +  (205.4ms) commit transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/shop/orders/16/checkout/shipping +Completed 302 Found in 217ms (ActiveRecord: 206.5ms) + + +Started GET "/shop/orders/16/checkout/shipping" for 127.0.0.1 at 2016-03-22 13:25:49 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"16", "id"=>"shipping"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] + 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", 16]] + 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", 16]] + 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", 16]] + Rendered simple_cart/checkout/_progress.html.haml (1.5ms) + Rendered simple_cart/checkout/_address.html.haml (8.5ms) + Rendered simple_cart/checkout/_address.html.haml (8.5ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + Rendered simple_cart/checkout/_summary.html.haml (1.1ms) + Rendered simple_cart/checkout/shipping.html.haml within layouts/simple_cart/application (32.5ms) +Completed 200 OK in 61ms (Views: 57.4ms | ActiveRecord: 0.5ms) + + +Started GET "/shop/orders/16/checkout/delivery" for 127.0.0.1 at 2016-03-22 13:25:51 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"16", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] + 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", 16]] + 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", 16]] + 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", 16]] + Rendered simple_cart/checkout/_progress.html.haml (2.0ms) + SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" + SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1 + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + Rendered simple_cart/checkout/_summary.html.haml (2.0ms) + Rendered simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (10.7ms) +Completed 200 OK in 55ms (Views: 49.0ms | ActiveRecord: 1.1ms) + + +Started GET "/shop/orders/16/checkout/shipping" for 127.0.0.1 at 2016-03-22 13:25:52 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"16", "id"=>"shipping"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] + 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", 16]] + 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", 16]] + 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", 16]] + Rendered simple_cart/checkout/_progress.html.haml (1.1ms) + Rendered simple_cart/checkout/_address.html.haml (8.6ms) + Rendered simple_cart/checkout/_address.html.haml (12.7ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + Rendered simple_cart/checkout/_summary.html.haml (1.3ms) + Rendered simple_cart/checkout/shipping.html.haml within layouts/simple_cart/application (37.7ms) +Completed 200 OK in 74ms (Views: 70.4ms | ActiveRecord: 0.3ms) + + +Started GET "/shop/orders/16/checkout/delivery" for 127.0.0.1 at 2016-03-22 13:25:53 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"16", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] + 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", 16]] + 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", 16]] + 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", 16]] + Rendered simple_cart/checkout/_progress.html.haml (1.1ms) + SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" + SimpleCart::Delivery Load (0.3ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1 + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + Rendered simple_cart/checkout/_summary.html.haml (1.2ms) + Rendered simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (6.4ms) +Completed 200 OK in 30ms (Views: 25.8ms | ActiveRecord: 0.8ms) + + +Started GET "/shop/orders/16/checkout/billing" for 127.0.0.1 at 2016-03-22 13:25:55 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"16", "id"=>"billing"} + SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] + 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", 16]] + 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", 16]] + 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", 16]] + Rendered simple_cart/checkout/_progress.html.haml (1.8ms) + Rendered simple_cart/checkout/_address.html.haml (8.1ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + Rendered simple_cart/checkout/_summary.html.haml (1.3ms) + Rendered simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (17.5ms) +Completed 200 OK in 43ms (Views: 37.2ms | ActiveRecord: 0.5ms) + + +Started GET "/shop/orders/16/checkout/delivery" for 127.0.0.1 at 2016-03-22 13:25:56 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"16", "id"=>"delivery"} + SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] + 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", 16]] + 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", 16]] + 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", 16]] + Rendered simple_cart/checkout/_progress.html.haml (1.1ms) + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1 + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + Rendered simple_cart/checkout/_summary.html.haml (1.0ms) + Rendered simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (6.6ms) +Completed 200 OK in 34ms (Views: 30.2ms | ActiveRecord: 0.7ms) + + +Started GET "/shop/orders/16/checkout/billing" for 127.0.0.1 at 2016-03-22 13:25:57 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"16", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]] + 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", 16]] + 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", 16]] + 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", 16]] + Rendered simple_cart/checkout/_progress.html.haml (1.2ms) + Rendered simple_cart/checkout/_address.html.haml (8.4ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]] + Rendered simple_cart/checkout/_summary.html.haml (1.1ms) + Rendered simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (15.6ms) +Completed 200 OK in 42ms (Views: 38.2ms | ActiveRecord: 0.3ms) + + +Started GET "/shits" for 127.0.0.1 at 2016-03-22 13:26:02 +0200 + +ActionController::RoutingError (No route matches [GET] "/shits"): + actionpack (4.2.5.2) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' + railties (4.2.5.2) lib/rails/rack/logger.rb:38:in `call_app' + railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `block in call' + activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `block in tagged' + activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:26:in `tagged' + activesupport (4.2.5.2) lib/active_support/tagged_logging.rb:68:in `tagged' + railties (4.2.5.2) lib/rails/rack/logger.rb:20:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/request_id.rb:21:in `call' + rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' + rack (1.6.4) lib/rack/runtime.rb:18:in `call' + activesupport (4.2.5.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' + rack (1.6.4) lib/rack/lock.rb:17:in `call' + actionpack (4.2.5.2) lib/action_dispatch/middleware/static.rb:116:in `call' + rack (1.6.4) lib/rack/sendfile.rb:113:in `call' + railties (4.2.5.2) lib/rails/engine.rb:518:in `call' + railties (4.2.5.2) lib/rails/application.rb:165:in `call' + rack (1.6.4) lib/rack/lock.rb:17:in `call' + rack (1.6.4) lib/rack/content_length.rb:15:in `call' + rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' + /home/leksster/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' + /home/leksster/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' + /home/leksster/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' + + + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.9ms) + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms) + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.9ms) + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms) + Rendered /home/leksster/.rvm/gems/ruby-2.2.3@todo-list/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (35.2ms) + + +Started GET "/things" for 127.0.0.1 at 2016-03-22 13:26:04 +0200 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" + Rendered things/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 24ms (Views: 22.6ms | ActiveRecord: 0.1ms) + + +Started GET "/things/1" for 127.0.0.1 at 2016-03-22 13:26:06 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Rendered simple_cart/carts/_buy.html.haml (6.3ms) + Rendered things/show.html.erb within layouts/application (7.1ms) +Completed 200 OK in 20ms (Views: 18.7ms | ActiveRecord: 0.1ms) + + +Started POST "/shop/cart/1?klass=Thing" for 127.0.0.1 at 2016-03-22 13:26:07 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"gxUwGKisTpzgTHmKYMC+ypDCDRH4UwA1VO5KPIDxt5SeLNvYcHN1XKS/igW17o45MvWeH+jxh0al7HRWo+KUvw==", "qty"=>"1", "commit"=>"Add to cartrrrr", "klass"=>"Thing", "item_id"=>"1"} +Redirected to http://localhost:3000/shop/cart +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/shop/cart" for 127.0.0.1 at 2016-03-22 13:26:07 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered simple_cart/carts/show.html.haml within layouts/simple_cart/application (8.4ms) +Completed 200 OK in 26ms (Views: 25.9ms | ActiveRecord: 0.1ms) + + +Started POST "/shop/cart/checkout" for 127.0.0.1 at 2016-03-22 13:26:09 +0200 +Processing by SimpleCart::CartsController#checkout as HTML + Parameters: {"authenticity_token"=>"/Tt8BqV8Tp54975p/NospwVgXsHDGKYXGbrJBUZL52zgApfGfaN1XjwETeYp9BxUp1fNz9O6IWTouPdvZVjERw=="} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 52251.0], ["completed_date", "2016-03-22"], ["aasm_state", "in_progress"], ["created_at", "2016-03-22 11:26:09.255366"], ["updated_at", "2016-03-22 11:26:09.255366"]] + 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", 1], ["itemable_id", 1], ["itemable_type", "Thing"], ["order_id", "17"], ["created_at", "2016-03-22 11:26:09.256875"], ["updated_at", "2016-03-22 11:26:09.256875"]] +  (216.5ms) commit transaction +Redirected to http://localhost:3000/shop/orders/17/checkout +Completed 302 Found in 224ms (ActiveRecord: 217.0ms) + + +Started GET "/shop/orders/17/checkout" for 127.0.0.1 at 2016-03-22 13:26:09 +0200 +Processing by SimpleCart::CheckoutController#index as HTML + Parameters: {"order_id"=>"17"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] +Redirected to http://localhost:3000/shop/orders/17/checkout/billing +Completed 302 Found in 1ms (ActiveRecord: 0.1ms) + + +Started GET "/shop/orders/17/checkout/billing" for 127.0.0.1 at 2016-03-22 13:26:09 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"17", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] + SimpleCart::BillingAddress Load (0.0ms) 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", 17]] + 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", 17]] + 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", 17]] + Rendered simple_cart/checkout/_progress.html.haml (1.6ms) + Rendered simple_cart/checkout/_address.html.haml (7.0ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]] + Rendered simple_cart/checkout/_summary.html.haml (1.0ms) + Rendered simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (14.2ms) +Completed 200 OK in 41ms (Views: 35.6ms | ActiveRecord: 0.3ms) + + +Started PATCH "/shop/orders/17/checkout/billing" for 127.0.0.1 at 2016-03-22 13:26:15 +0200 +Processing by SimpleCart::CheckoutController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"I7ZSZRCR2dgMA9fj8Ib4rurRi6cyBbI2spW98lq+u0w+j7mlyE7iGEjwJGwlqMhdSOYYqSKnNUVDl4OYea2YZw==", "order"=>{"billing_address_attributes"=>{"firstname"=>"gasgsa", "lastname"=>"gasg", "address"=>"asgas", "zipcode"=>"asgasgasasg", "city"=>"gasgas", "phone"=>"gasg", "country"=>"Afghanistan"}}, "commit"=>"Save and continue", "order_id"=>"17", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] +  (0.1ms) begin transaction + 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", 17]] + 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", "gasgsa"], ["lastname", "gasg"], ["address", "asgas"], ["zipcode", "asgasgasasg"], ["city", "gasgas"], ["phone", "gasg"], ["country", "Afghanistan"], ["order_id", 17], ["created_at", "2016-03-22 11:26:15.426182"], ["updated_at", "2016-03-22 11:26:15.426182"]] +  (278.4ms) commit transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +Redirected to http://localhost:3000/shop/orders/17/checkout/shipping +Completed 302 Found in 287ms (ActiveRecord: 279.0ms) + + +Started GET "/shop/orders/17/checkout/shipping" for 127.0.0.1 at 2016-03-22 13:26:15 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"17", "id"=>"shipping"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] + 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", 17]] + 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", 17]] + 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", 17]] + Rendered simple_cart/checkout/_progress.html.haml (1.6ms) + Rendered simple_cart/checkout/_address.html.haml (5.9ms) + Rendered simple_cart/checkout/_address.html.haml (7.3ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]] + Rendered simple_cart/checkout/_summary.html.haml (1.1ms) + Rendered simple_cart/checkout/shipping.html.haml within layouts/simple_cart/application (23.4ms) +Completed 200 OK in 47ms (Views: 42.0ms | ActiveRecord: 0.4ms) + + +Started GET "/shop/orders/17/checkout/delivery" for 127.0.0.1 at 2016-03-22 13:26:17 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"17", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] + 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", 17]] + 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", 17]] + 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", 17]] +Redirected to http://localhost:3000/shop/orders/17/checkout/billing +Completed 302 Found in 4ms (ActiveRecord: 0.3ms) + + +Started GET "/shop/orders/17/checkout/billing" for 127.0.0.1 at 2016-03-22 13:26:17 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"17", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] + 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", 17]] + 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", 17]] + 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", 17]] + Rendered simple_cart/checkout/_progress.html.haml (0.9ms) + Rendered simple_cart/checkout/_address.html.haml (7.5ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]] + Rendered simple_cart/checkout/_summary.html.haml (1.0ms) + Rendered simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (13.5ms) +Completed 200 OK in 36ms (Views: 32.2ms | ActiveRecord: 0.3ms) + + +Started GET "/shop/orders/17/checkout/delivery" for 127.0.0.1 at 2016-03-22 13:26:19 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"17", "id"=>"delivery"} + SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] + 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", 17]] + 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", 17]] + 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", 17]] +Redirected to http://localhost:3000/shop/orders/17/checkout/billing +Completed 302 Found in 9ms (ActiveRecord: 0.5ms) + + +Started GET "/shop/orders/17/checkout/billing" for 127.0.0.1 at 2016-03-22 13:26:19 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"17", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] + 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", 17]] + 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", 17]] + 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", 17]] + Rendered simple_cart/checkout/_progress.html.haml (0.9ms) + Rendered simple_cart/checkout/_address.html.haml (7.9ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]] + Rendered simple_cart/checkout/_summary.html.haml (1.3ms) + Rendered simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (14.4ms) +Completed 200 OK in 37ms (Views: 33.1ms | ActiveRecord: 0.3ms) + + +Started GET "/shop/orders/17/checkout/payment" for 127.0.0.1 at 2016-03-22 13:26:19 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"17", "id"=>"payment"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] + 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", 17]] + 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", 17]] + 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", 17]] +Redirected to http://localhost:3000/shop/orders/17/checkout/delivery +Completed 302 Found in 4ms (ActiveRecord: 0.3ms) + + +Started GET "/shop/orders/17/checkout/delivery" for 127.0.0.1 at 2016-03-22 13:26:19 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"17", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] + 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", 17]] + 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", 17]] + 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", 17]] +Redirected to http://localhost:3000/shop/orders/17/checkout/billing +Completed 302 Found in 4ms (ActiveRecord: 0.3ms) + + +Started GET "/shop/orders/17/checkout/billing" for 127.0.0.1 at 2016-03-22 13:26:19 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"17", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] + 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", 17]] + 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", 17]] + 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", 17]] + Rendered simple_cart/checkout/_progress.html.haml (0.9ms) + Rendered simple_cart/checkout/_address.html.haml (7.1ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]] + Rendered simple_cart/checkout/_summary.html.haml (1.3ms) + Rendered simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (13.8ms) +Completed 200 OK in 37ms (Views: 32.8ms | ActiveRecord: 0.5ms) + + +Started GET "/shop/orders/17/checkout/delivery" for 127.0.0.1 at 2016-03-22 13:26:20 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"17", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] + 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", 17]] + 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", 17]] + 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", 17]] +Redirected to http://localhost:3000/shop/orders/17/checkout/billing +Completed 302 Found in 5ms (ActiveRecord: 0.4ms) + + +Started GET "/shop/orders/17/checkout/billing" for 127.0.0.1 at 2016-03-22 13:26:20 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"17", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] + 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", 17]] + 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", 17]] + 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", 17]] + Rendered simple_cart/checkout/_progress.html.haml (0.9ms) + Rendered simple_cart/checkout/_address.html.haml (7.6ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]] + Rendered simple_cart/checkout/_summary.html.haml (1.0ms) + Rendered simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (13.7ms) +Completed 200 OK in 34ms (Views: 30.9ms | ActiveRecord: 0.3ms) + + +Started GET "/shop/orders/17/checkout/billing" for 127.0.0.1 at 2016-03-22 13:26:20 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"17", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] + 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", 17]] + 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", 17]] + 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", 17]] + Rendered simple_cart/checkout/_progress.html.haml (1.0ms) + Rendered simple_cart/checkout/_address.html.haml (7.4ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]] + Rendered simple_cart/checkout/_summary.html.haml (1.3ms) + Rendered simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (14.3ms) +Completed 200 OK in 37ms (Views: 33.2ms | ActiveRecord: 0.4ms) + + +Started PATCH "/shop/orders/17/checkout/billing" for 127.0.0.1 at 2016-03-22 13:36:02 +0200 +Processing by SimpleCart::CheckoutController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"X2IT/26TnqZGz1Ro0KM4+qKBLF96JOuo0HzgGcstmR5CW/g/tkylZgI8p+cFjQgJALa/UWqGbNshft5z6D66NQ==", "order"=>{"billing_address_attributes"=>{"firstname"=>"gasgsa", "lastname"=>"gasg", "address"=>"asgas", "zipcode"=>"asgasgasasg", "city"=>"gasgas", "phone"=>"gasg", "country"=>"Afghanistan", "id"=>"22"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"17", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] +Unpermitted parameter: id +  (0.1ms) begin transaction + 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", 17]] + SQL (0.2ms) DELETE FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."id" = ? [["id", 22]] + 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", "gasgsa"], ["lastname", "gasg"], ["address", "asgas"], ["zipcode", "asgasgasasg"], ["city", "gasgas"], ["phone", "gasg"], ["country", "Afghanistan"], ["order_id", 17], ["created_at", "2016-03-22 11:36:02.153586"], ["updated_at", "2016-03-22 11:36:02.153586"]] +  (78.7ms) commit transaction + 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", 17]] +  (0.1ms) begin transaction + 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", 17], ["address", "asgas"], ["zipcode", "asgasgasasg"], ["city", "gasgas"], ["phone", "gasg"], ["country", "Afghanistan"], ["created_at", "2016-03-22 11:36:02.153586"], ["updated_at", "2016-03-22 11:36:02.153586"], ["firstname", "gasgsa"], ["lastname", "gasg"]] +  (94.9ms) commit transaction +Redirected to http://localhost:3000/shop/orders/17/checkout/delivery +Completed 302 Found in 189ms (ActiveRecord: 174.9ms) + + +Started GET "/shop/orders/17/checkout/delivery" for 127.0.0.1 at 2016-03-22 13:36:02 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"17", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] + 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", 17]] + 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", 17]] + 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", 17]] + Rendered simple_cart/checkout/_progress.html.haml (1.1ms) + SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" + SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1 + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]] + Rendered simple_cart/checkout/_summary.html.haml (1.4ms) + Rendered simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (7.0ms) +Completed 200 OK in 31ms (Views: 26.6ms | ActiveRecord: 0.8ms) + + +Started PATCH "/shop/orders/17/checkout/delivery" for 127.0.0.1 at 2016-03-22 13:36:03 +0200 +Processing by SimpleCart::CheckoutController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"7EVrt0fZ1SSbWiC4WLgXePBdML+kvTdmzX4RaCJbc97xfIB3nwbu5N+p0zeNlieLUmqjsbQfsBU8fC8CAUhQ9Q==", "order"=>{"delivery_id"=>"9"}, "commit"=>"Continue", "order_id"=>"17", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] + SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "simple_cart_orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["delivery_id", 9], ["updated_at", "2016-03-22 11:36:03.529646"], ["id", 17]] +  (216.2ms) commit transaction +Redirected to http://localhost:3000/shop/orders/17/checkout/payment +Completed 302 Found in 223ms (ActiveRecord: 216.9ms) + + +Started GET "/shop/orders/17/checkout/payment" for 127.0.0.1 at 2016-03-22 13:36:03 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"17", "id"=>"payment"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + 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", 17]] + 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", 17]] + 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", 17]] + Rendered simple_cart/checkout/_progress.html.haml (1.0ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]] + CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]] + CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]] + CACHE (0.0ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + Rendered simple_cart/checkout/_summary.html.haml (7.8ms) + Rendered simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (24.6ms) +Completed 200 OK in 54ms (Views: 47.6ms | ActiveRecord: 0.9ms) + + +Started PATCH "/shop/orders/17/checkout/payment" for 127.0.0.1 at 2016-03-22 13:36:10 +0200 +Processing by SimpleCart::CheckoutController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"gg+73VRgZvg8pX+0veR3Q38InmnNHAdonCNpSe9lrAqfNlAdjL9dOHhWjDtoykew3T8NZ92+gBttIVcjzHaPIQ==", "order"=>{"credit_card_attributes"=>{"number"=>"1111111111111111", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"252", "firstname"=>"fsa", "lastname"=>"saf"}}, "commit"=>"Continue", "order_id"=>"17", "id"=>"payment"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] +  (0.1ms) begin transaction + 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", 17]] + 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", "fsa"], ["lastname", "saf"], ["order_id", 17], ["created_at", "2016-03-22 11:36:10.289005"], ["updated_at", "2016-03-22 11:36:10.289005"]] +  (76.8ms) commit transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +Redirected to http://localhost:3000/shop/orders/17/checkout/confirm +Completed 302 Found in 87ms (ActiveRecord: 77.6ms) + + +Started GET "/shop/orders/17/checkout/confirm" for 127.0.0.1 at 2016-03-22 13:36:10 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"17", "id"=>"confirm"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] + 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", 17]] + 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", 17]] + 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", 17]] + Rendered simple_cart/checkout/_progress.html.haml (0.8ms) + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + Rendered simple_cart/checkout/_overview.html.haml (5.1ms) + 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", "17"]] + SimpleCart::OrderItem Load (0.2ms) SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "17"]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Rendered simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (23.9ms) +Completed 200 OK in 52ms (Views: 47.6ms | ActiveRecord: 0.9ms) + + +Started PATCH "/shop/orders/17" for 127.0.0.1 at 2016-03-22 13:36:12 +0200 +Processing by SimpleCart::OrdersController#update as HTML + Parameters: {"authenticity_token"=>"OJNYDDIxmHOaq2HShEnUo79tSdlk0RusKqUZqd79tUAlqrPM6u6js95Ykl1RZ+RQHVra13RznN/bpyfD/e6Waw==", "id"=>"17"} + SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] +  (0.2ms) begin transaction + SQL (0.3ms) UPDATE "simple_cart_orders" SET "aasm_state" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["aasm_state", "in_queue"], ["updated_at", "2016-03-22 11:36:12.239813"], ["id", 17]] +  (220.5ms) commit transaction + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "simple_cart_orders" SET "total_price" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["total_price", 52271.0], ["updated_at", "2016-03-22 11:36:12.465002"], ["id", 17]] +  (107.1ms) commit transaction +Redirected to http://localhost:3000/shop/orders/17 +Completed 302 Found in 339ms (ActiveRecord: 328.8ms) + + +Started GET "/shop/orders/17" for 127.0.0.1 at 2016-03-22 13:36:12 +0200 +Processing by SimpleCart::OrdersController#show as HTML + Parameters: {"id"=>"17"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]] + 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", 17]] + 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", 17]] + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]] + 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", 17]] + 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", "17"]] + SimpleCart::OrderItem Load (0.1ms) SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "17"]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Rendered simple_cart/orders/show.html.haml within layouts/simple_cart/application (20.4ms) +Completed 200 OK in 44ms (Views: 41.7ms | ActiveRecord: 0.8ms) + + +Started GET "/things" for 127.0.0.1 at 2016-03-22 13:51:22 +0200 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" + Rendered things/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 21ms (Views: 20.0ms | ActiveRecord: 0.1ms) + + +Started GET "/things/1" for 127.0.0.1 at 2016-03-22 13:51:24 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Rendered simple_cart/carts/_buy.html.haml (4.6ms) + Rendered things/show.html.erb within layouts/application (5.3ms) +Completed 200 OK in 20ms (Views: 19.3ms | ActiveRecord: 0.1ms) + + +Started POST "/shop/cart/1?klass=Thing" for 127.0.0.1 at 2016-03-22 13:51:25 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"/PcIOg3c+c/kghrSk2fFoVQHKF1/FjBXfoNa4I2XgzfhzuP61QPCD6Bx6V1GSfVS9jC7U2+0tySPgWSKroSgHA==", "qty"=>"1", "commit"=>"Add to cartrrrr", "klass"=>"Thing", "item_id"=>"1"} +Redirected to http://localhost:3000/shop/cart +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/shop/cart" for 127.0.0.1 at 2016-03-22 13:51:25 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered simple_cart/carts/show.html.haml within layouts/simple_cart/application (7.5ms) +Completed 200 OK in 24ms (Views: 23.2ms | ActiveRecord: 0.1ms) + + +Started POST "/shop/cart/clear" for 127.0.0.1 at 2016-03-22 13:51:27 +0200 +Processing by SimpleCart::CartsController#clear as HTML + Parameters: {"authenticity_token"=>"ohggwBYSA2UJiXZjlPY56udOE80+AEhnWMigT0CaScS/IcsAzs04pU16hexB2AkZRXmAwy6izxSpyp4lY4lq7w=="} +Redirected to http://localhost:3000/shop/cart +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/shop/cart" for 127.0.0.1 at 2016-03-22 13:51:27 +0200 +Processing by SimpleCart::CartsController#show as HTML + Rendered simple_cart/carts/show.html.haml within layouts/simple_cart/application (0.5ms) +Completed 200 OK in 16ms (Views: 15.5ms | ActiveRecord: 0.0ms) + + +Started GET "/things" for 127.0.0.1 at 2016-03-22 13:52:38 +0200 +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" + Rendered things/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 20ms (Views: 19.1ms | ActiveRecord: 0.2ms) + + +Started GET "/things/1" for 127.0.0.1 at 2016-03-22 13:52:40 +0200 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Rendered simple_cart/carts/_buy.html.haml (4.3ms) + Rendered things/show.html.erb within layouts/application (5.1ms) +Completed 200 OK in 20ms (Views: 18.1ms | ActiveRecord: 0.2ms) + + +Started POST "/shop/cart/1?klass=Thing" for 127.0.0.1 at 2016-03-22 13:52:41 +0200 +Processing by SimpleCart::CartsController#add as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"yJ+tKOVonIJbT3ST7bQus9ERIZX8rxD1LZj0Gsf2SMDVpkboPbenQh+8hxw4mh5Acyaym+wNl4bcmspw5OVr6w==", "qty"=>"1", "commit"=>"Add to cartrrrr", "klass"=>"Thing", "item_id"=>"1"} +Redirected to http://localhost:3000/shop/cart +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/shop/cart" for 127.0.0.1 at 2016-03-22 13:52:41 +0200 +Processing by SimpleCart::CartsController#show as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered simple_cart/carts/show.html.haml within layouts/simple_cart/application (8.4ms) +Completed 200 OK in 26ms (Views: 25.1ms | ActiveRecord: 0.1ms) + + +Started POST "/shop/cart/checkout" for 127.0.0.1 at 2016-03-22 14:51:46 +0200 +Processing by SimpleCart::CartsController#checkout as HTML + Parameters: {"authenticity_token"=>"HvSOAlGvqPOmfufGBJUhePRWzQr9EDeQ3dXSEqV5AwYDzWXCiXCTM+KNFEnRuxGLVmFeBO2ysOMs1+x4hmogLQ=="} + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + CACHE (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 52251.0], ["completed_date", "2016-03-22"], ["aasm_state", "in_progress"], ["created_at", "2016-03-22 12:51:46.800847"], ["updated_at", "2016-03-22 12:51:46.800847"]] + 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", 1], ["itemable_id", 1], ["itemable_type", "Thing"], ["order_id", "18"], ["created_at", "2016-03-22 12:51:46.803873"], ["updated_at", "2016-03-22 12:51:46.803873"]] +  (72.4ms) commit transaction +Redirected to http://localhost:3000/shop/orders/18/checkout +Completed 302 Found in 123ms (ActiveRecord: 74.2ms) + + +Started GET "/shop/orders/18/checkout" for 127.0.0.1 at 2016-03-22 14:51:46 +0200 +Processing by SimpleCart::CheckoutController#index as HTML + Parameters: {"order_id"=>"18"} + SimpleCart::Order Load (0.2ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 18]] +Redirected to http://localhost:3000/shop/orders/18/checkout/billing +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + + +Started GET "/shop/orders/18/checkout/billing" for 127.0.0.1 at 2016-03-22 14:51:46 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"18", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 18]] + 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", 18]] + 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", 18]] + 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", 18]] + Rendered simple_cart/checkout/_progress.html.haml (1.0ms) + Rendered simple_cart/checkout/_address.html.haml (7.6ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "18"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "18"]] + Rendered simple_cart/checkout/_summary.html.haml (3.1ms) + Rendered simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (16.1ms) +Completed 200 OK in 75ms (Views: 35.3ms | ActiveRecord: 1.3ms) + + +Started PATCH "/shop/orders/18/checkout/billing" for 127.0.0.1 at 2016-03-22 14:51:53 +0200 +Processing by SimpleCart::CheckoutController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"baqWM5k2eAgYx6xXF3YAXlSpKCN3dMjYfOxY6jUwDMlwk33zQelDyFw0X9jCWDCt9p67LWfWT6uN7maAFiMv4g==", "order"=>{"billing_address_attributes"=>{"firstname"=>"gasgsag", "lastname"=>"sagsag", "address"=>"sagsa", "zipcode"=>"gaagasg", "city"=>"asgsag", "phone"=>"sagsag", "country"=>"Afghanistan"}}, "commit"=>"Save and continue", "order_id"=>"18", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 18]] +  (0.0ms) begin transaction + SimpleCart::BillingAddress Load (0.0ms) 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", 18]] + 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", "gasgsag"], ["lastname", "sagsag"], ["address", "sagsa"], ["zipcode", "gaagasg"], ["city", "asgsag"], ["phone", "sagsag"], ["country", "Afghanistan"], ["order_id", 18], ["created_at", "2016-03-22 12:51:53.479737"], ["updated_at", "2016-03-22 12:51:53.479737"]] +  (222.8ms) commit transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/shop/orders/18/checkout/shipping +Completed 302 Found in 230ms (ActiveRecord: 223.5ms) + + +Started GET "/shop/orders/18/checkout/shipping" for 127.0.0.1 at 2016-03-22 14:51:53 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"18", "id"=>"shipping"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 18]] + 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", 18]] + 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", 18]] + 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", 18]] + Rendered simple_cart/checkout/_progress.html.haml (0.8ms) + Rendered simple_cart/checkout/_address.html.haml (5.7ms) + Rendered simple_cart/checkout/_address.html.haml (5.7ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "18"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "18"]] + Rendered simple_cart/checkout/_summary.html.haml (0.9ms) + Rendered simple_cart/checkout/shipping.html.haml within layouts/simple_cart/application (19.1ms) +Completed 200 OK in 41ms (Views: 36.0ms | ActiveRecord: 0.5ms) + + +Started GET "/shop/orders/18/checkout/billing" for 127.0.0.1 at 2016-03-22 14:53:14 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"18", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 18]] + 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", 18]] + 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", 18]] + 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", 18]] + Rendered simple_cart/checkout/_progress.html.haml (0.8ms) + Rendered simple_cart/checkout/_address.html.haml (5.5ms) + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "18"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "18"]] + Rendered simple_cart/checkout/_summary.html.haml (0.9ms) + Rendered simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (10.9ms) +Completed 200 OK in 28ms (Views: 25.1ms | ActiveRecord: 0.3ms) + + +Started PATCH "/shop/orders/18/checkout/billing" for 127.0.0.1 at 2016-03-22 14:53:16 +0200 +Processing by SimpleCart::CheckoutController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"S3bNjkr0V4SmqJCIMiklHhwfpeELrtnbcNOpoO1MHqlWTyZOkitsROJbYwfnBxXtvig27xsMXqiB0ZfKzl89gg==", "order"=>{"billing_address_attributes"=>{"firstname"=>"gasgsag", "lastname"=>"sagsag", "address"=>"sagsa", "zipcode"=>"gaagasg", "city"=>"asgsag", "phone"=>"sagsag", "country"=>"Afghanistan", "id"=>"25"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"18", "id"=>"billing"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 18]] +Unpermitted parameter: id +  (0.1ms) begin transaction + 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", 18]] + SQL (0.3ms) DELETE FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."id" = ? [["id", 25]] + SQL (0.1ms) INSERT INTO "simple_cart_addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "SimpleCart::BillingAddress"], ["firstname", "gasgsag"], ["lastname", "sagsag"], ["address", "sagsa"], ["zipcode", "gaagasg"], ["city", "asgsag"], ["phone", "sagsag"], ["country", "Afghanistan"], ["order_id", 18], ["created_at", "2016-03-22 12:53:16.164276"], ["updated_at", "2016-03-22 12:53:16.164276"]] +  (54.1ms) commit transaction + 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", 18]] +  (0.1ms) begin transaction + 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", 18], ["address", "sagsa"], ["zipcode", "gaagasg"], ["city", "asgsag"], ["phone", "sagsag"], ["country", "Afghanistan"], ["created_at", "2016-03-22 12:53:16.164276"], ["updated_at", "2016-03-22 12:53:16.164276"], ["firstname", "gasgsag"], ["lastname", "sagsag"]] +  (98.5ms) commit transaction +Redirected to http://localhost:3000/shop/orders/18/checkout/delivery +Completed 302 Found in 167ms (ActiveRecord: 153.8ms) + + +Started GET "/shop/orders/18/checkout/delivery" for 127.0.0.1 at 2016-03-22 14:53:16 +0200 +Processing by SimpleCart::CheckoutController#show as HTML + Parameters: {"order_id"=>"18", "id"=>"delivery"} + SimpleCart::Order Load (0.1ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 18]] + 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", 18]] + 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", 18]] + 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", 18]] + Rendered simple_cart/checkout/_progress.html.haml (8.7ms) + SimpleCart::Delivery Load (0.2ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" + SimpleCart::Delivery Load (0.1ms) SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1 + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "18"]] + CACHE (0.0ms) SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "18"]] + Rendered simple_cart/checkout/_summary.html.haml (1.3ms) + Rendered simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (16.2ms) +Completed 200 OK in 36ms (Views: 31.5ms | ActiveRecord: 1.0ms) + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_simple_cart_addresses_on_order_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_simple_cart_addresses_on_order_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_simple_cart_credit_cards_on_order_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_simple_cart_credit_cards_on_order_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_simple_cart_order_items_on_order_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_simple_cart_order_items_on_order_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_simple_cart_order_items_on_itemable_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_simple_cart_order_items_on_itemable_id' AND type='index' + + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_simple_cart_addresses_on_order_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_simple_cart_addresses_on_order_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_simple_cart_credit_cards_on_order_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_simple_cart_credit_cards_on_order_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_simple_cart_order_items_on_order_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_simple_cart_order_items_on_order_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_simple_cart_order_items_on_itemable_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_simple_cart_order_items_on_itemable_id' AND type='index' + + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +Migrating to CreateSimpleCartOrderItem (20160312121928) +  (0.1ms) begin transaction +  (0.4ms) DROP TABLE "simple_cart_order_items" +  (0.3ms) 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) +  (0.1ms) select sqlite_version(*) +  (0.1ms) CREATE INDEX "index_simple_cart_order_items_on_itemable_id" ON "simple_cart_order_items" ("itemable_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_simple_cart_order_items_on_itemable_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_simple_cart_order_items_on_itemable_id' AND type='index' + +  (0.1ms) CREATE INDEX "index_simple_cart_order_items_on_order_id" ON "simple_cart_order_items" ("order_id") + SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312121928"]] +  (78.0ms) commit transaction +Migrating to CreateSimpleCartOrder (20160312124050) +  (0.1ms) begin transaction +  (0.4ms) DROP TABLE "simple_cart_orders" +  (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)  + SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312124050"]] +  (106.7ms) commit transaction +Migrating to CreateSimpleCartAddress (20160312142534) +  (0.1ms) begin transaction +  (0.5ms) DROP TABLE "simple_cart_addresses" +  (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) +  (0.2ms) CREATE INDEX "index_simple_cart_addresses_on_order_id" ON "simple_cart_addresses" ("order_id") + SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312142534"]] +  (198.5ms) commit transaction +Migrating to CreateSimpleCartDelivery (20160312145452) +  (0.1ms) begin transaction +  (0.3ms) DROP TABLE "simple_cart_deliveries" +  (0.4ms) 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) + SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312145452"]] +  (81.2ms) commit transaction +Migrating to CreateSimpleCartCreditCard (20160312151237) +  (0.1ms) begin transaction +  (0.3ms) DROP TABLE "simple_cart_credit_cards" +  (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)  +  (0.2ms) CREATE INDEX "index_simple_cart_credit_cards_on_order_id" ON "simple_cart_credit_cards" ("order_id") + SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312151237"]] +  (90.3ms) commit transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_simple_cart_addresses_on_order_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_simple_cart_addresses_on_order_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_simple_cart_credit_cards_on_order_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_simple_cart_credit_cards_on_order_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_simple_cart_order_items_on_order_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_simple_cart_order_items_on_order_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_simple_cart_order_items_on_itemable_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_simple_cart_order_items_on_itemable_id' AND type='index' + + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_simple_cart_addresses_on_order_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_simple_cart_addresses_on_order_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_simple_cart_credit_cards_on_order_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_simple_cart_credit_cards_on_order_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_simple_cart_order_items_on_order_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_simple_cart_order_items_on_order_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_simple_cart_order_items_on_itemable_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_simple_cart_order_items_on_itemable_id' AND type='index' +